Edit the NCBI Taxonomy with ete3 toolkit ?
0
0
Entering edit mode
3.1 years ago
Pierre • 0

Hi everyone,

I want to use the whole NCBI taxonomy ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/

I found an excellent library on python called http://etetoolkit.org/

Ete3 can load NCBI taxonomy with this command:

ncbiTaxa = NCBITaxa(taxdump_file=path.abspath(localTaxdumpArchive))

Is it possible to edit the ncbiTaxa object and then extract the whole new edited ncbi taxonomy ? I would like to add nodes of custom species this way.

taxonomy taxdump ncbi ete3 toolkit • 1.0k views
ADD COMMENT
0
Entering edit mode

Take a look at the object model of the tree that ETE produces. It simply parses the NCBI taxonomy in to its standard tree representation, so you should in principle be able to do anything and everything to it that you'd do with a 'regular' tree, such as add nodes, prune leaves etc.

ADD REPLY

Login before adding your answer.

Traffic: 1953 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6