10 Sep 13:31
phylogeny-trait association methods into BioPerl
From: Heikki Lehvaslaiho <heikki <at> sanbi.ac.za>
Subject: phylogeny-trait association methods into BioPerl
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-10 11:32:06 GMT
Subject: phylogeny-trait association methods into BioPerl
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-10 11:32:06 GMT
FYI,
I've been recently writing code to analyse phylogeny-trait associations. These
traits are typically geographical location of the sequence but they can be any
phenotypic characters associated with the sequences.
This involves trees, i.e. Bio::Tree::Tree and Bio::Tree::Node objects and
strings describing the traits. I've been using tags to store trait values
within nodes. The tag methods are:
Bio::Tree::Node::add_tag_value
Bio::Tree::Node::get_all_tags
Bio::Tree::Node::get_tag_values
Bio::Tree::Node::has_tag
Bio::Tree::Node::remove_all_tags
Bio::Tree::Node::remove_tag
Question: Is there any particular reason why there is no
set_tag_value(scalar|@array) method?
I am getting tired of writing:
$node->remove_tag($key);
map {$node->add_tag_value($key)} @values ;
so I am going to implement that unless there is are strong objections.
Otherwise it has been smooth sailing. I am going to add
Bio::Tree::TreeFunctions::is_binary() and start populating
Bio::Tree::Statistics soon with these methods:
ps() - Parsimony Score (PS) from Fitch 1971
(Continue reading)
RSS Feed