I have a list of NCBI taxon ids for which I would like to have both the full lineage and common name information. That is, say, for 9606, the desired output would look like as follows:
Lineage: root; cellular organisms; Eukaryota; Fungi/Metazoa group; Metazoa; Eumetazoa; Bilateria; Coelomata; Deuterostomia; Chordata; Craniata; Vertebrata; Gnathostomata; Teleostomi; Euteleostomi; Sarcopterygii; Tetrapoda; Amniota; Mammalia; Theria; Eutheria; Euarchontoglires; Primates; Haplorrhini; Simiiformes; Catarrhini; Hominoidea; Hominidae; Homininae; Homo
Common name: human
I checked the NCBI taxonomy FTP to see whether there is a mapping database but I could not find any.
Any help with this one?
PS. I recall that I came across a solution to this problem at BioStar (using taxdump), but I could not find that thread.