From 94adc7346753411bfde731be494763305cd7fb6b Mon Sep 17 00:00:00 2001 From: Maxime Deraspe Date: Thu, 12 Sep 2019 12:05:07 -0400 Subject: [PATCH] add pathways output in tsv format --- pkg/search/search.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/search/search.go b/pkg/search/search.go index 443c7e6..26762c7 100644 --- a/pkg/search/search.go +++ b/pkg/search/search.go @@ -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")) @@ -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 {