Bio::Gonzales::Phylo::Util - utility functions for phylogenetic analysis
use Bio::Gonzales::Phylo::Util qw(leaf_mapper consensus_tree);
Example for a code reference:
my $map; my $handler = sub { my ($id) = @_; return $map->{$id} // $id . '.NA'; }; my $map_iterator = leaf_mapper($handler); my $mapped_tree = $map_iterator->($tree);
The iterator takes a Bio::Phylo::Forest::Tree object and remaps it. The mapping takes place directly on the tree, thus alters it.
Parses the $input_tree_file, builds a consensus tree and writes it to $consensus_tree_file.
$input_tree_file
$consensus_tree_file
jw bargsten, <joachim.bargsten at wur.nl>
<joachim.bargsten at wur.nl>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.