Skip to content

Commit

Permalink
add pathways output in tsv format
Browse files Browse the repository at this point in the history
  • Loading branch information
zorino committed Sep 12, 2019
1 parent 7a47d82 commit 94adc73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/search/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func QueryResultResponseWriter(queryResult <-chan QueryResult, w http.ResponseWr

w.Write([]byte("QueryName\tQueryKSize\tQStart\tQEnd\tKMatch\tHit.Id"))
if searchOptions.Annotations {
w.Write([]byte("\tHit.ProteinName\tHit.Organism\tHit.EC\tHit.GO\tHit.HAMAP\tHit.KEGG\tHit.Biocyc\tHit.Taxonomy"))
w.Write([]byte("\tHit.ProteinName\tHit.Organism\tHit.EC\tHit.GO\tHit.HAMAP\tHit.KEGG_id\tHit.KEGG_pathway\tHit.Biocyc_id\tHit.Biocyc_pathway\tHit.Taxonomy"))
}
if searchOptions.ExtractPositions {
w.Write([]byte("\tQueryHit.Positions"))
Expand Down Expand Up @@ -483,8 +483,12 @@ func QueryResultResponseWriter(queryResult <-chan QueryResult, w http.ResponseWr
output += "\t"
output += strings.Join(qR.HitEntries[h.Key].KEGG, ";")
output += "\t"
output += strings.Join(qR.HitEntries[h.Key].KEGG_Pathways, ";")
output += "\t"
output += strings.Join(qR.HitEntries[h.Key].BioCyc, ";")
output += "\t"
output += strings.Join(qR.HitEntries[h.Key].Biocyc_Pathways, ";")
output += "\t"
output += qR.HitEntries[h.Key].Taxonomy
}
if searchOptions.ExtractPositions {
Expand Down

0 comments on commit 94adc73

Please sign in to comment.