From 135106d1a0c753f29229aed2600ef490a0947e74 Mon Sep 17 00:00:00 2001 From: Harshad Date: Wed, 1 Dec 2021 10:16:06 -0600 Subject: [PATCH] No synonyms added if name = env samples #56 --- src/ncbitaxon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ncbitaxon.py b/src/ncbitaxon.py index 2a60242..74e9ad2 100755 --- a/src/ncbitaxon.py +++ b/src/ncbitaxon.py @@ -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):