Bio::PhyloNetwork::TreeFactoryMulti3pm
Module to sequentially generate phylogenetic trees
Usage
use strict;use warnings;use Bio::PhyloNetwork;use Bio::PhyloNetwork::TreeFactory;# Will generate sequentially all the 15 binary phylogetic# trees with 4 leavesmy $factory=Bio::PhyloNetwork::TreeFactory->new(-numleaves=>4);my @nets;while (my $net=$factory->next_network()) {push @nets,$net;print "".(scalar @nets).": ".$net->eNewick()."\n";}
Overview
Sequentially builds a (binary) phylogenetic tree each time next_network is called.
Appendix
The rest of the documentation details each of the object methods.
new
Title : newUsage : my $factory = new Bio::PhyloNetwork::TreeFactory();Function: Creates a new Bio::PhyloNetwork::TreeFactoryReturns : Bio::PhyloNetwork::RandomFactoryArgs : -numleaves => integerOR-leaves => reference to an array (of leaves names)
Returns a Bio::PhyloNetwork::TreeFactory object. Such an object will sequentially create binary phylogenetic trees each time next_network is called.
If the parameter -leaves=>\@leaves is given, then the set of leaves of these networks will be @leaves. If it is given the parameter -numleaves=>$numleaves, then the set of leaves will be "l1"..."l$numleaves".
next_network
Title : next_networkUsage : my $net=$factory->next_network()Function: returns a treeReturns : Bio::PhyloNetworkArgs : none
Releases
5 releases since Debian 6.0 (Squeeze); the text changed 4 times.