Skip to content

Commit

Permalink
https://ncbiinsights.ncbi.nlm.nih.gov/2024/06/04/changes-ncbi-taxonom…
Browse files Browse the repository at this point in the history
…y-classifications/
  • Loading branch information
muffato committed Jul 18, 2024
1 parent f339fda commit aa82abc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def get_classification(taxon_info: TaxonInfo) -> typing.Dict[str, str]:
anc_taxon_info = make_taxon_info(anc_taxon_id)
if anc_taxon_info.rank:
ancestors[anc_taxon_info.rank.lower()] = anc_taxon_info.organism_name
# https://ncbiinsights.ncbi.nlm.nih.gov/2024/06/04/changes-ncbi-taxonomy-classifications/
# "superkingdom" will be called "domain"
if "superkingdom" not in ancestors:
ancestors["superkingdom"] = ancestors["domain"]
return {r: ancestors[r] for r in RANKS if r in ancestors}


Expand Down

0 comments on commit aa82abc

Please sign in to comment.