Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Perl script to get all the descendent in a tree !

  • Public
By LEGE 1168 days ago
use warnings; use Bio::DB::Taxonomy; #Rotifera 10190 # Get one from a NCBI taxonomy database my $dbh = Bio::DB::Taxonomy->new(-source => 'flatfile', -directory=> "taxdump", -nodesfile=> "taxdump/nodes.dmp", -namesfile=> "taxdump/names.dmp"); my $taxon = $dbh->get_taxon(-taxonid => 10190); my @taxa = $dbh->get_all_Descendents($taxon); foreach (@taxa) {print $_->id; print "\n";}