Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Bio::PhyloNetwork::TreUsertContributed Perl Bio::PhyloNetwork::TreeFactoryX(3)

NAME
       Bio::PhyloNetwork::TreeFactoryX - Module	to sequentially	generate
       Phylogenetic Trees

SYNOPSIS
	use strict;
	use warnings;

	use Bio::PhyloNetwork;
	use Bio::PhyloNetwork::TreeFactory;

	# Will generate	sequentially all the 15	binary phylogetic
	# trees	with 4 leaves

	my $factory=Bio::PhyloNetwork::TreeFactory->new(-numleaves=>4);

	my @nets;

	while (my $net=$factory->next_network()) {
	  push @nets,$net;
	  print	"".(scalar @nets).": ".$net->eNewick()."\n";
	}

DESCRIPTION
       Sequentially builds a (binary) phylogenetic tree	each time next_network
       is called.

AUTHOR
       Gabriel Cardona,	gabriel(dot)cardona(at)uib(dot)es

SEE ALSO
       Bio::PhyloNetwork

APPENDIX
       The rest	of the documentation details each of the object	methods.

   new
	Title	: new
	Usage	: my $factory =	new Bio::PhyloNetwork::TreeFactory();
	Function: Creates a new	Bio::PhyloNetwork::TreeFactory
	Returns	: Bio::PhyloNetwork::RandomFactory
	Args	: -numleaves =>	integer
		   OR
		  -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_network
	Usage	: my $net=$factory->next_network()
	Function: returns a tree
	Returns	: Bio::PhyloNetwork
	Args	: none

perl v5.24.1			  2017-07-08Bio::PhyloNetwork::TreeFactoryX(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | SEE ALSO | APPENDIX

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Bio::PhyloNetwork::TreeFactoryX&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help