![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::CharactersBlock - Represents a CHARACTERS Block (Data or Characters) of a NEXUS file SYNOPSIS$block_object = new Bio::NEXUS::CharactersBlock($type, $block, $verbose, $taxlabels_ref); DESCRIPTIONThis is a class representing a Characters Block in a NEXUS file. Characters Blocks generally contain state data for a set of characters for each taxon in the Taxa Block. One common use of a Characters Block is to house multiple sequence alignments. FEEDBACKAll feedbacks (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.82 $ METHODSnewTitle : new Usage : block_object = new Bio::NEXUS::CharactersBlock($block_type, $commands, $verbose, $taxa); Function: Creates a new Bio::NEXUS::CharactersBlock object Returns : Bio::NEXUS::CharactersBlock object Args : type (string), the commands/comments to parse (array ref), and a verbose flag (0 or 1) add_states_to_charstatesTitle : add_states_to_charstates Usage : $self->add_states_to_charstates($states); Function: Adds states to the character states Returns : None Args : states create_charstatesTitle : create_charstates Usage : my $char_state_hash = $self->create_charstates($id,$label,$states); Function: Converts the input id, label, states to an hash ref for processing. Returns : Hash reference with (id, charlabel,states as keys) Args : id, label, states find_taxonTitle : find_taxon Usage : my $is_taxon_present = $self->find_taxon($taxon_name); Function: Finds whether the input taxon name is present in the taxon label. Returns : 0 (not present) or 1 (if present). Args : taxon label (as string) set_otusetTitle : set_otuset Usage : $block->set_otuset($otuset); Function: Set the otus Returns : none Args : TaxUnitSet object add_otu_cloneTitle : add_otu_clone Usage : ... Function: ... Returns : ... Args : ... set_charstatelabelsTitle : set_charstatelabels Usage : $block->set_charstatelabels($labels); Function: Set the character names and states Returns : none Args : array of character states get_charstatelabelsTitle : get_charstatelabels Usage : $set->get_charstatelabels(); Function: Returns an array of character states Returns : character states Args : none set_charlabelsTitle : set_charlabels Usage : $set->set_charlabels($labels); Function: Set the character names Returns : none Args : array of character names get_charlabelsTitle : get_charlabels Usage : $set->get_charlabels(); Function: Returns an array of character labels Returns : character names Args : none set_statelabelsTitle : set_statelabels Usage : $set->set_statelabels($labels); Function: Set the state names Returns : none Args : array of state names get_statelabelsTitle : get_statelabels Usage : $set->get_statelabels(); Function: Returns an array of stateacter labels Returns : stateacter names Args : none get_ncharTitle : get_nchar Usage : $block->get_nchar(); Function: Returns the number of characters of the block Returns : # charaters Args : none select_columnsTitle : select_columns Usage : $block->select_columns($columns); Function: select a subset of characters Returns : new $self with subset of columns of characters Args : column numbers rename_otusTitle : rename_otus Usage : $block->rename_otus(\%translation); Function: Renames all the OTUs to something else Returns : none Args : hash containing translation equalsName : equals Usage : $block->equals($another); Function: compare if two Bio::NEXUS::CharactersBlock objects are equal Returns : boolean Args : a Bio::NEXUS::CharactersBlock object
|