![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::Block - Provides useful functions for blocks in NEXUS file (parent class). SYNOPSISThis module is the super class of all NEXUS block classes. It is not used specifically from a program; in other words, you don't create a new Bio::NEXUS::Block object. Other modules, like AssumptionsBlock, simply inherit subroutines from this module. DESCRIPTIONProvides a few useful functions for general blocks (to be used by sub-classes). COMMENTSFEEDBACKAll feedback (bugs, feature enhancements, etc.) are greatly appreciated. AUTHORSChengzhi Liang (liangc@umbi.umd.edu) Weigang Qiu (weigang@genectr.hunter.cuny.edu) Eugene Melamud (melamud@carb.nist.gov) Peter Yang (pyang@rice.edu) Thomas Hladish (tjhladish at yahoo) VERSION$Revision: 1.49 $ METHODScloneTitle : clone Usage : my $newblock = $block->clone(); Function: clone a block object (shallow) Returns : Block object Args : none get_typeTitle : get_type Usage : print $block->get_type(); Function: Returns a string containing the block type Returns : type (string) Args : none set_ntaxTitle : set_ntax Usage : print $block->set_ntax(); Function: Sets the value of Dimensions:ntax Returns : none Args : number of taxa (scalar) set_dimensionsTitle : set_dimensions Usage : $block->set_dimensions($dimensions); Function: set a dimensions command Returns : none Args : hash content of dimensions command get_dimensionsTitle : get_dimensions Usage : $block->get_dimensions($attribute); Function: get a dimensions command Returns : hash content of dimensions command, or the value for a particular attribute if specified Args : none, or a string set_commandTitle : set_command Usage : $block->set_command($command, $content); Function: Set a command Returns : none Args : comand name, and content (string) set_titleTitle : set_title Usage : $block->set_title($name); Function: Set the block name Returns : none Args : block name (string) get_titleTitle : get_title Usage : $block->get_title(); Function: Returns a string containing the block title Returns : name (string) Args : none set_linkTitle : set_link Usage : $block->set_link($link_hashref); Function: Set the block link commands Returns : none Args : block link (hash) add_linkTitle : add_link Usage : $block->add_link($linkname, $title); Function: add a link command Returns : none Args : $link, $title (of another block) get_linkTitle : get_link Usage : $block->get_link(); Function: Returns a hash containing the block links Returns : link (hash) Args : none set_taxlabelsTitle : set_taxlabels Usage : $block->set_taxlabels($labels); Function: Set the taxa names Returns : none Args : array of taxa names add_taxlabelTitle : add_taxlabel Usage : $block->add_taxlabel($label); Function: add a taxon name Returns : none Args : a taxon name get_taxlabelsTitle : get_taxlabels Usage : $block->get_taxlabels(); Function: Returns an array of taxa labels Returns : taxa names Args : none set_otusTitle : set_otus Usage : $block->set_otus($otus); Function: sets the list of OTUs Returns : none Args : array of OTUs get_otusTitle : get_otus Usage : $block->get_otus(); Function: Returns array of otus Returns : all otus Args : none set_otusetTitle : set_otuset Usage : $block->set_otuset($otuset); Function: Set the otus Returns : none Args : TaxUnitSet object get_otusetTitle : get_otuset Usage : $block->get_otuset(); Function: get the OTUs Returns : TaxUnitSet object Args : none select_otusTitle : select_otus Usage : $block->select_otus($names); Function: select a subset of OTUs Returns : array of OTUs Args : OTU names rename_otusTitle : rename_otus Usage : $block->rename_otus($names); Function: rename all OTUs Returns : none Args : hash of OTU names add_otu_cloneTitle : add_otu_clone Usage : ... Function: ... Returns : ... Args : ... set_commentsTitle : set_comments Usage : $block->set_comments($comments); Function: Set the block comments Returns : none Args : block comments (array of strings) get_commentsTitle : get_comments Usage : $block->get_comments(); Function: Returns block comments Returns : comments (array of strings) Args : none add_commentTitle : add_comment Usage : $block->add_comment($comment); Function: add a comment Returns : none Args : comment (string) equalsName : equals Usage : $block->equals($another); Function: compare if two Block objects are equal Returns : boolean Args : a Block object'
|