This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Get phylum name from species name

Hi,

I have a list of 250 species name for which I want to get the phylum that each species belongs to...

I was wondering if there was a program or a way to use NCBI taxonomy browser to automate this.

Many thanks,

IsmailM

genome sequencing

1 answer

To expand on the comment from piet, that link points to a previous post in which one answer uses Entrez Direct. Example usage for your case:

esearch -db taxonomy -query "Homo sapiens[Scientific Name]" | efetch -format xml | xtract -pattern Taxon -element ScientificName,Rank -tab "\n" | grep -P ';\tphylum'

Chordata    phylum

Log in to answer this question.