![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::UnalignedBlock - Represents an UNALIGNED block of a NEXUS file SYNOPSISif ( $type =~ /unaligned/i ) { $block_object = new Bio::NEXUS::UnalignedBlock($type, $block, $verbose); } DESCRIPTIONThis is a class representing an unaligned block in NEXUS file FEEDBACKAll feedback (bugs, feature enhancements, etc.) is greatly appreciated. AUTHORSThomas Hladish (tjhladish at yahoo) VERSION$Id: UnalignedBlock.pm,v 1.25 2012/02/10 13:28:28 astoltzfus Exp $ METHODSnewTitle : new Usage : block_object = new Bio::NEXUS::UnalignedBlock($block_type, $commands, $verbose, $taxlabels); Function: Creates a new Bio::NEXUS::UnalignedBlock object Returns : Bio::NEXUS::UnalignedBlock object Args : type (string), the commands/comments to parse (array ref), and a verbose flag (0 or 1) 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_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(); Function: Returns the format of the characters Returns : hash of format values Args : none set_otusetTitle : set_otuset Usage : $block->set_otuset($otuset); Function: Set the otus Returns : none Args : TaxUnitSet object 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 get_ntaxTitle : get_ntax Usage : $block->get_ntax(); Function: Returns the number of taxa of the block Returns : # taxa Args : none rename_otusTitle : rename_otus Usage : $block->rename_otus(\%translation); Function: Renames all the OTUs to something else Returns : none Args : hash containing translation add_otu_cloneTitle : add_otu_clone Usage : ... Function: ... Returns : ... Args : ... equalsName : equals Usage : $block->equals($another); Function: compare if two Bio::NEXUS::UnalignedBlock objects are equal Returns : boolean Args : a Bio::NEXUS::CharactersBlock object
|