Bio::TreeIO::pag(3pm)
π Bio::TreeIO::pag π
okay bestie, gather round β this is the manual page for Bio::TreeIO::pag (yes, the (3pm) one), from the User Contributed Perl Documentation collection. It's the Bio::TreeIO driver for the Pagel format, and we are gonna get you fluent in it in like, one scroll. no cap. π¦
β¨ NAME β¨
Bio::TreeIO::pag β a Bio::TreeIO driver for Pagel format π
πΈ SYNOPSIS πΈ
okay so here's the vibe, code and all, exactly as it is:
use Bio::TreeIO;
my $in = Bio::TreeIO->new(-format => 'nexus',
-file => 't/data/adh.mb_tree.nexus');
my $out = Bio::TreeIO->new(-format => 'pag');
while( my $tree = $in->next_tree ) {
$out->write_tree($tree);
}
read a nexus file, write pag trees, loop, done. slay. π
π§ DESCRIPTION π§
So the whole point: this converts a Bio::TreeIO to Pagel format. That's it, that's the job. π
More info lives here, and yes this is the real link, don't @ me:
http://www.evolution.reading.ac.uk/index.html
π FEEDBACK π
π¬ Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. (like, genuinely, they love hearing from you π«Ά)
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
...rather than to the module maintainer directly. Bestie, this is not a snub, it's strategy: many experienced and reponsive experts will be able look at the problem and quickly address it. π
If you can, please include a thorough description of the problem with code and data examples if at all possible. π The more receipts you bring, the faster the fix.
π Reporting Bugs
Report bugs to the Bioperl bug tracking system so they can keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Jason Stajich π
Email: jason-at-bioperl-dot-org π
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ β that underscore is the "backstage pass only" sign, iykyk. ποΈ
π new
Title : new
Usage : my $obj = Bio::TreeIO::pag->new();
Function: Builds a new Bio::TreeIO::pag object
Returns : an instance of Bio::TreeIO::pag
Args : -file/-fh for filename or filehandles
-name_length for minimum name length (default = 10)
Builds a fresh new object, main character energy, and hands you an instance of Bio::TreeIO::pag. β¨
-file/-fhβ for filename or filehandles-name_lengthβ for minimum name length (default =10)
βοΈ write_tree
Title : write_tree
Usage :
Function: Write a tree out in Pagel format
Some options are only appropriate for bayesianmultistate and
the simpler output is only proper for discrete
Returns : none
Args : -no_outgroups => (number)
-print_header => 0/1 (leave 0 for discrete, 1 for bayesianms)
-special_node => special node - not sure what they wanted to do here
-keep_outgroup => 0/1 (keep the outgroup node in the output)
-outgroup_ancestor => Bio::Tree::Node (if we want to exclude or include the outgroup this is what we operate on)
-tree_no => a tree number label - only useful for BayesianMultistate
Writes a tree out in Pagel format. Heads up: some options are only appropriate for bayesianmultistate, and the simpler output is only proper for discrete. Returns nothing at all β no return value, no gift bag. π
The args, one by one:
-no_outgroups => (number)β a number, that's the whole spec, take it as given-print_header => 0/1β leave0for discrete,1for bayesianms-special_node => special nodeβ honestly? not sure what they wanted to do here π it's a mystery, we're all just living in it-keep_outgroup => 0/1β keep the outgroup node in the output-outgroup_ancestor => Bio::Tree::Nodeβ if we want to exclude or include the outgroup, this is what we operate on-tree_no => a tree number labelβ only useful for BayesianMultistate
π³ next_tree
Title : next_tree
Usage :
Function:
Example :
Returns :
Args :
Literally no details documented here β the fields are all blank, bestie. It exists, that's the tea. π΅
π name_length
Title : name_length
Usage : $self->name_length(20);
Function: set minimum taxon name length
Returns : integer (length of name)
Args : integer
Sets the minimum taxon name length, hands back an integer which is the length of the name, and takes an integer as its arg. Clean, simple, iconic. π
and that's the whole page, bestie!! this was perl v5.32.1, dated 2021-08-15, and it's the Bio::TreeIO::pag(3pm) manual β go forth and write some pag trees πβ¨π¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 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