We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the taxid has to be changed only get_lineage works and not get_descendent_taxa:
get_lineage
get_descendent_taxa
from ete3 import NCBITaxa ncbi = NCBITaxa() ncbi.get_lineage(2599292)
results in:
[...]/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py:240: UserWarning: taxid 2599292 was translated into 400770 warnings.warn("taxid %s was translated into %s" %(taxid, merged_conversion[taxid])) [1, 131567, 2, 1224, 28211, 356, 45401, 46913, 400770]
Which is fine and expected.
Using the same TaxID with get_descendant_taxa does not work:
get_descendant_taxa
ncbi.get_descendant_taxa(id)
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-3-0bee07a5e060> in <module> ----> 1 ncbi.get_descendant_taxa(2599292) [...]/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py in get_descendant_taxa(self, parent, intermediate_nodes, rank_limit, collapse_subspecies, return_tree) 353 354 if not found: --> 355 raise ValueError("taxid not found:%s" %taxid) 356 elif found == 1: 357 return [taxid] ValueError: taxid not found:2599292
If one instead uses the changed taxID it works well:
ncbi.get_descendant_taxa(400770)
[400770]
The text was updated successfully, but these errors were encountered:
get_descendant_taxa is probably not reading the synonyms table. thanks for the report.
Sorry, something went wrong.
read synonyms table in get_descendant_taxa() etetoolkit#436
3d6cc06
read synonyms table in get_descendant_taxa() if taxid deprecated etet…
1324f66
…oolkit#436
98e255f
dengzq1234
No branches or pull requests
When the taxid has to be changed only
get_lineage
works and notget_descendent_taxa
:results in:
Which is fine and expected.
Using the same TaxID with
get_descendant_taxa
does not work:results in:
If one instead uses the changed taxID it works well:
The text was updated successfully, but these errors were encountered: