Skip to content

Commit

Permalink
No synonyms added if name = env samples #56
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Dec 1, 2021
1 parent e7b7234 commit 135106d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ncbitaxon.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ def convert(taxdmp_path, output_path, taxa=None):
print("WARN: Duplicate unique names", tax_ids, uniques)
for tax_id, unique in values:
labels[tax_id] = unique
synonyms[tax_id].append([name, unique, "scientific name"])
if name != 'environmental samples':
synonyms[tax_id].append(
[name, unique, "scientific name"]
)

with taxdmp.open("merged.dmp") as dmp:
for line in io.TextIOWrapper(dmp):
Expand Down

0 comments on commit 135106d

Please sign in to comment.