Skip to content

Commit

Permalink
Merge pull request #161 from eggnogdb/v2
Browse files Browse the repository at this point in the history
complete column names in result header. Fixes #152
  • Loading branch information
Cantalapiedra authored Oct 24, 2019
2 parents 41a8498 + d805097 commit 9196018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ If you use this software, please cite:
J Jensen, Christian von Mering, Peer Bork Nucleic Acids Res. 2019 Jan 8;
47(Database issue): D309–D314. doi: 10.1093/nar/gky1085
```

7 changes: 5 additions & 2 deletions emapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,10 @@ def annotate_hits_file(seed_orthologs_file, annot_file, hmm_hits_file, args):
"seed_ortholog_evalue",
"seed_ortholog_score",
"best_tax_level", ]


HIT_OG_HEADER = ["taxonomic scope", "eggNOG OGs", "best eggNOG OG",
"COG Functional cat.", "eggNOG free text desc."]

start_time = time.time()
seq2bestOG = {}
if pexists(hmm_hits_file):
Expand All @@ -721,7 +724,7 @@ def annotate_hits_file(seed_orthologs_file, annot_file, hmm_hits_file, args):
print >>OUT, '# emapper version:', get_version(), 'emapper DB:', get_db_version()
print >>OUT, '# command: ./emapper.py ', ' '.join(sys.argv[1:])
print >>OUT, '# time: ' + time.ctime()
print >>OUT, '\t'.join(HIT_HEADER + ANNOTATIONS_HEADER)
print >>OUT, '\t'.join(HIT_HEADER + ANNOTATIONS_HEADER + HIT_OG_HEADER)
qn = 0

pool = multiprocessing.Pool(args.cpu)
Expand Down

0 comments on commit 9196018

Please sign in to comment.