![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::Matrix - Provides functions for handling blocks that have matrices SYNOPSISThis module is the super class of Characters, Unaligned, and Distances block classes, and indirectly it is a super-class of Data and History blocks, which are both sub-classes of Characters blocks. These sub-classes inherint the methods within this module. There is no constructor, as a Matrix should not exist that is not also one of the sub-class block types. DESCRIPTIONProvides functions used for handling blocks that have matrices. COMMENTSFEEDBACKAll feedback (bugs, feature enhancements, etc.) are greatly appreciated. AUTHORSThomas Hladish (tjhladish at yahoo) VERSION$Revision: 1.23 $ METHODSget_ntaxTitle : get_ntax Usage : $block->get_ntax(); Function: Returns the number of taxa in the block Returns : # taxa Args : none set_ncharTitle : set_nchar Usage : print $block->set_nchar(); Function: Sets the value of Dimensions:nchar Returns : none Args : number of char(scalar) get_ncharTitle : get_nchar Usage : $block->get_nchar(); Function: Returns the number of characters in the block (Note: In Distances Blocks, this is the number of characters used to infer distances.) Returns : # taxa Args : none set_formatTitle : set_format Usage : $block->set_format(\%format); Function: set the format of the characters Returns : none Args : hash of format values get_formatTitle : get_format Usage : $block->get_format($attribute); Function: Returns the format of the characters Returns : hash of format values, or if $attribute (a string) is supplied, the value of that attribute in the hash Args : none add_taxlabelsTitle : add_taxlabels Usage : $block->add_taxlabels($new_taxlabels); Function: Adds new taxa to taxlabels if they aren't already there Returns : none Args : taxa to be added
|