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?


Another solution using [Entrez Direct][1]

    efetch -db taxonomy -id 387462,2594474 -format xml | \
    xtract -pattern Taxon -first TaxId -element Taxon -block "*/Taxon"  \
    -unless Rank -equals "no rank" -tab "," -sep "_" -element Rank,ScientificName

    387462  superkingdom_Eukaryota,kingdom_Metazoa,phylum_Mollusca,class_Gastropoda,subclass_Caenogastropoda,order_Littorinimorpha,superfamily_Stromboidea,family_Strombidae,genus_Strombus
    2594474 superkingdom_Bacteria,phylum_Firmicutes,class_Clostridia,order_Clostridiales,family_Peptococcaceae,genus_Dehalobacter

  [1]: https://www.ncbi.nlm.nih.gov/books/NBK179288/
