![]() |
![]()
| ![]() |
![]()
NAMEBio::NEXUS::SpanBlock - Represent SPAN block in a NEXUS file (contains meta data). SYNOPSISif ( $type =~ /spanblock/i ) { $block_object = new Bio::NEXUS::SpanBlock($type, $block, $verbose); } DESCRIPTIONThis module representing a SPAN block in a NEXUS file for meta data. FEEDBACKAll feedback (bugs, feature enhancements, etc.) are greatly appreciated. AUTHORSChengzhi Liang (liangc@umbi.umd.edu) Thomas Hladish (tjhladish at yahoo) CONTRIBUTORSMETHODSnewTitle : new Usage : block_object = new Bio::NEXUS::SpanBlock($block_type, $commands, $verbose); Function: Creates a new Bio::NEXUS::SpanBlock object Returns : Bio::NEXUS::SpanBlock object Args : type (string), the commands/comments to parse (array ref), and a verbose flag (0 or 1; optional) get_spandexTitle : get_spandex Usage : $hash_ref = $span_block->get_spandex(; Function: Gets the SPANDEX command contents as hash_reference Returns : hash reference of the SPANDEX command contents Args : none add_spandexTitle : add_spandex Usage : $span_block->add_spandex(; Function: Adds the SPANDEX command contents as hash_reference Returns : none Args : hash reference of the SPANDEX command contents get_addTitle : get_add Usage : $hash_ref = $span_block->get_add(); Function: gets ADD command content to the span block Returns : hash reference of ADD command's attributes and values Args : none add_addTitle : add_add Usage : $span_block->add_add($hash_ref); Function: Adds ADD command contents to the span block Returns : none Args : hash reference of ADD command's attributes and values get_methodTitle : get_method Usage : $hash_ref = $span_block->get_method(); Function: gets METHOD command content to the span block Returns : hash reference of METHOD command's attributes and values Args : none add_methodTitle : add_method Usage : $span_block->add_method($string); Function: Adds METHOD command content to the span block Returns : none Args : hash reference of METHOD command's attributes and values get_attributesTitle : get_attributes Usage : $attr_array_ref = $span_block->get_attributes($name); Function: get the attributes of a particular identifier name Returns : array reference of attributes. Args : identifier name get_dataTitle : get_data Usage : $data_array_ref = $span_block->get_data($name); Function: get the data of a particular identifier Returns : array reference of data Args : identifier name 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 : ... equalsName : equals Usage : $span->equals($another); Function: compare if two Bio::NEXUS::SpanBlock objects are equal Returns : boolean Args : a Bio::NEXUS::SpanBlock object
|