Skip to content
New issue

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

NCBI - taxid to names - newick tree #754

Open
kullrich opened this issue Aug 2, 2024 · 1 comment
Open

NCBI - taxid to names - newick tree #754

kullrich opened this issue Aug 2, 2024 · 1 comment
Assignees

Comments

@kullrich
Copy link

kullrich commented Aug 2, 2024

Hi,
this is a feature request.
In the documentation there is the following example:

from ete3 import NCBITaxa
ncbi = NCBITaxa()

tree = ncbi.get_topology([9606, 9598, 10090, 7707, 8782])
print tree.get_ascii(attributes=["sci_name", "rank"])

The question for me is now how to change the original tree that it will use the sci_name insead of the taxid printing or writing a newick tree.

The get_ascii is not helping here since it does not output in newick format.

An easy way how to e.g. combine "sci_name", "taxid", with a delimiter would be a nice feature.

Thank you in anticipation

Best regards

Kristian

@dengzq1234
Copy link
Contributor

Hi!
Indeed we tried not to change the original tree newick format. That sounds like a interesting feature, I will see what I can do!

Best,
Ziqi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants