BP_TAXONOMY2TREE(1p)
β¨ 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
- debian bookworm: bioperl 1.7.8-1 Β· Perl
- debian trixie: bioperl 1.7.8-1 Β· Perl
- ubuntu jammy: bioperl 1.7.8-1 Β· Perl
- ubuntu noble: bioperl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms