Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
blackrim committed Feb 27, 2024
1 parent 9b53505 commit 038fc76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/get_ncbi_tax_tree_no_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
else:
import node

exclude_un_en = True

def clean_name(name):
return name.replace(" ", "_").replace("&","_").replace(":","_").replace("(","_").replace(")","_")

Expand Down Expand Up @@ -70,6 +72,8 @@ def construct_tree(taxon, db, taxalist = None):
continue
childs.append(tid)
stack.append(tid)
if "unclassified" in str(j[1]) or "environmental" in str(j[1]):
continue
if str(j[2]) == "scientific name":
name = str(j[1])
edname = str(j[3])
Expand Down

0 comments on commit 038fc76

Please sign in to comment.