Bio::NEXUS::WeightSet - Represents column weights in alignment ( for each character)
new Bio::NEXUS::WeightSet($name, \@weights, $iswt);
A module representing column weights in alignment (for each character)
All feedback (bugs, feature enhancements, etc.) are all greatly appreciated.
Chengzhi Liang (liangc@umbi.umd.edu) Weigang Qiu (weigang@genectr.hunter.cuny.edu) Thomas Hladish (tjhladish at yahoo)
Peter Yang (pyang@rice.edu)
Title : new Usage : $node = new Bio::NEXUS::WeightSet($name, \@weights); Function: Creates a new Bio::NEXUS::WeightSet object Returns : Bio::NEXUS::WeightSet object Args : none
Title : set_weights Usage : $weight->set_weights(\@weights); Function: stores it in the list weights Returns : none Args : list of weights
Title : get_weights Usage : @wts=@{$weightset->get_weights()}; Function: Returns the weights array Returns : reference to array containing weights Args : none
Title : select_weights Usage : $set->select_weights($columns); Function: select a subset of characters Returns : new self with subset of weights Args : column numbers
Title : is_wt Usage : croak unless $weight->is_wt(); Function: Returns if object has weights (1 yes, 0 no) Returns : weight existence (integer) Args : none
Title : set_name Usage : $weight->set_name($name); Function: Sets the name of the weightset Returns : none Args : name (string)
Title : get_name Usage : $name=$weight->get_name(); Function: Returns the name of the weightset Returns : name (string) Args : none
Name : equals Usage : $set->equals($another); Function: compare if two WeightSet objects are equal Returns : boolean Args : an WeightSet object
To install Bio::NEXUS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::NEXUS
CPAN shell
perl -MCPAN -e shell install Bio::NEXUS
For more information on module installation, please visit the detailed CPAN module installation guide.