To retrieve bacterial Phylum and Class information from a set of tax id
3
0
Entering edit mode
6.6 years ago

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?

RNA-Seq SNP next-gen sequence gene • 2.4k views
ADD COMMENT
1
Entering edit mode
6.6 years ago
Joseph Hughes ★ 3.0k

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
ADD COMMENT
0
Entering edit mode

ERROR: No -pattern in command-line arguments

ADD REPLY
1
Entering edit mode

Try searching with the -pattern parameter.

esearch -db taxonomy -query "txid11053 [Organism]" | efetch -format xml | xtract  -pattern Lineage -element Lineage
ADD REPLY
0
Entering edit mode
6.6 years ago

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

ADD COMMENT
0
Entering edit mode

It contains several files with .dmp extension. Can i join all these

ADD REPLY
0
Entering edit mode
6.6 years ago

You can also query this URL with a comma-delimited list of numbers. For example:

http://taxonomy.jgi-psf.org/tax/id/9606,1234

ADD COMMENT

Login before adding your answer.

Traffic: 1487 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