![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::SetsBlock - Represents SETS block of a NEXUS file SYNOPSIS$block_object = new Bio::NEXUS::SetsBlock($block_type, $block, $verbose); DESCRIPTIONParses Sets block of NEXUS file and stores Sets data. FEEDBACKAll feedback (bugs, feature enhancements, etc.) are greatly appreciated. AUTHORSThomas Hladish (tjhladish at yahoo) VERSION$Revision: 1.32 $ METHODSnewTitle : new Usage : $block_object = new Bio::NEXUS::SetsBlock($block_type, $commands, $verbose) Function: Creates a new Bio::NEXUS::SetsBlock object Returns : Bio::NEXUS::SetsBlock object Args : type (string), the commands/comments to parse (array ref), and a verbose flag (0 or 1) set_taxsetsTitle : set_taxsets Usage : $block->set_taxsets($taxsets); Function: Set the taxsets hash Returns : none Args : hash of set name keys and element arrays add_taxsetsTitle : add_taxsets Usage : $block->add_taxsets($taxsets); Function: add taxa sets Returns : none Args : a reference to a hash of taxa sets get_taxsetsTitle : get_taxsets Usage : $block->get_taxsets(); Function: Returns a hash of taxa sets Returns : taxa sets Args : none get_taxsetTitle : get_taxset Usage : $block->get_taxset($setname); Function: Returns a list of OTU's Returns : OTU's Args : none get_taxset_namesTitle : get_taxset_names Usage : $block->get_taxset_names() Function: gets the names of all sets Returns : array of names Args : none print_all_taxsetsTitle : print_all_taxsets Usage : $block->print_all_taxsets($outfile) Function: prints set names and elements Returns : none Args : filename or filehandle delete_taxsetsTitle : delete_taxsets Usage : $block->delete_taxsets($set1 [$set2 $set3 ...]) Function: Removes the named sets from the Sets block Returns : none Args : Names of sets to be deleted exclude_otusTitle : exclude_otus Usage : $block->exclude_otus($otu_array_ref) Function: Finds and deletes each of the given otus from any sets they appear in Returns : none Args : Names of otus to be removed select_otusTitle : select_otus Usage : $block->select_otus($otu_array_ref) Function: Finds the given otus and removes all others from any sets they appear in Returns : none Args : Names of otus to be removed 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 : ... rename_taxsetsTitle : rename_taxsets Usage : $block->rename_taxsets($oldsetname1, $newsetname1, ...) Function: Renames sets Returns : none Args : Oldname, newname pairs equalsName : equals Usage : $setsblock->equals($another); Function: compare if two Bio::NEXUS::SetsBlock objects are equal Returns : boolean Args : a Bio::NEXUS::SetsBlock object
|