Hello,

I know the following question have been asked many times by now, but the suggested solutions were not helpful.
I have a set of taxIDs and I want to convert them to taxonomies, but I do not want to download any extra databases. Is there any simple way to do this via terminal?


Using [Entrezdirect][1]:

    $ esearch -db taxonomy -query "4932 [taxID]" | efetch -format nativemode xml | xtract -pattern Taxon -block "*/Taxon" -unless Rank -equals "no rank" -tab "\n" -element Rank,ScientificName
    superkingdom	Eukaryota
    kingdom	Fungi
    subkingdom	Dikarya
    phylum	Ascomycota
    subphylum	Saccharomycotina
    class	Saccharomycetes
    order	Saccharomycetales
    family	Saccharomycetaceae
    genus	Saccharomyces

OR

    $ esearch -db taxonomy -query "4932 [taxID]" | efetch -format native -mode xml | grep ScientificName | awk -F ">|<" 'BEGIN{ORS=", ";}{print $3;}'
    Saccharomyces cerevisiae, cellular organisms, Eukaryota, Opisthokonta, Fungi, Dikarya, Ascomycota, saccharomyceta, Saccharomycotina, Saccharomycetes, Saccharomycetales, Saccharomycetaceae, Saccharomyces


  [1]: http://bit.ly/entrez-direct