Hi ,
I wanted to get the phylum and class information of set of species , its about 1000 . I have each tax id . Is there any possibility to get the phylum and class information by uploading the tax id file in a batch search?
Hi ,
I wanted to get the phylum and class information of set of species , its about 1000 . I have each tax id . Is there any possibility to get the phylum and class information by uploading the tax id file in a batch search?
You could use NCBI eutilities with esarch and efetch. From the xml output you can extract the full lineage:
esearch -db taxonomy -query "txid11053 [Organism]" | efetch -format xml | xtract -element Lineage
download the NCBI taxdump file from ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdmp.zip , unzip the content , sort, and join the files & get the result.
see ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump_readme.txt for a description of the content of the zip file
You can also query this URL with a comma-delimited list of numbers. For example:
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
ERROR: No -pattern in command-line arguments
Try searching with the
-pattern
parameter.