[Bioperl-l] Bio::Tree:Statistics parsimony question

Chris coldmeadow at gmail.com
Fri Oct 23 01:10:12 EDT 2009

I have been able to use the ps() method in Bio::Tree::Statistics to calulate
the parsimony for tag values from a tree if they are strings.

This is the way I have been implementing the method:

my $obj = Bio::Tree::Statistics->new();
my $pars = $obj->ps($tree,'seq');
print "Parsimony = $pars \n";

Is it possible to do so if they are an array?

say I have an array @seq = qw(A,A,C,G), I can add these as values to a leaf
node of a tree using;

foreach my $char (@seq){

Does anybody have a suggestion to get the parsimony for each label of the
array of labels for such a tree ?

Thanks in advance,

More information about the Bioperl-l mailing list