BP_TAXONOMY2TREE(1p)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

okay so bestie, gather round πŸ’– this is bp_taxonomy2tree β€” the 1p Perl manual page for building a taxonomic tree based on the full lineages of a set of species names. yes. that's the whole vibe. 🌸


🌈 DESCRIPTION 🌈

So here's the tea: this script takes the species names you hand it, goes and looks them up in the NCBI Taxonomy database, pulls their full lineage, and then drops them into a Newick taxonomic tree that it just… shows you on screen. iconic behaviour honestly πŸ‘‘

Like so:

bp_taxonomy2tree.pl -s Orangutan -s Gorilla -s Chimpanzee -s Human
bp_taxonomy2tree.pl -s Orangutan -s Gorilla -s Chimpanzee -s "Homo Sapiens"

Two examples, both slay, both -s-heavy. πŸ’…

You can also throw in -d to say where the index files should live, -o to point at your NCBI nodes file, and -a for the NCBI names file. OR β€” if you don't have the NCBI flatfiles installed at all β€” you can use -e to hit up the web-based Entrez taxonomy database instead. no flatfiles, no problem πŸ¦‹

Heads up bestie: this script needs the bioperl-run pkg installed too. not optional. it's a requirement. 🫢

Okay and now the part that actually matters: handing over the nodes.dmp and names.dmp files from the NCBI Taxonomy dump (peep Bio::DB::Taxonomy::flatfile for more info on that) is only necessary the first time you run it. After that? You're free. ✨

But lowkey, that first run? It creates the local indexes and it may take quite a long time. Like, go make a snack long. 😭 However β€” and this is the payoff β€” once those indexes exist, they give you fast access for species β†’ taxon id lookups OR taxon id β†’ species name lookups. both directions, bestie. ate. πŸ”₯


πŸ’œ AUTHOR β€” Gabriel Valiente, reimplemented by Sendu Bala πŸ’œ

Email valiente@lsi.upc.edu Β· Email bix@sendu.me.uk


and that's a wrap on the group chat 🌸 this page was brought to you by perl v5.32.1, dated 2021-08-15 β€” mwah, take care of her, she's a classic πŸŽ€πŸ’–

πŸ“¦ where this page comes from