Bio::S...O::waba(3pm)
๐ Bio::SearchIO::waba โ bestie edition ๐
okay so this is Bio::SearchIO::waba, a SearchIO parser for the Jim Kent WABA program alignment output. it lives in the Bio::SearchIO::waba manpage (perl v5.32.1, 2021-08-15). come sit with me, this one's short but she's got LORE. ๐ฆ
โจ NAME โจ
Bio::SearchIO::waba โ SearchIO parser for Jim Kent WABA program alignment output
like. that's the whole thing. she's a parser. she parses WABA. no cap. ๐
โจ SYNOPSIS โจ
bestie hear me LOUD: do not use this object directly, rather through Bio::SearchIO. fr fr. that's not a suggestion that's the whole vibe.
# do not use this object directly, rather through Bio::SearchIO
use Bio::SearchIO;
my $in = Bio::SearchIO->new(-format => 'waba',
-file => 'output.wab');
while( my $result = $in->next_result ) {
while( my $hit = $result->next_hit ) {
while( my $hsp = $result->next_hsp ) {
}
}
}
look at those nested whiles. result โ hit โ hsp. it's giving russian nesting dolls but make it bioinformatics. the innermost block is empty because that's where you live, bestie. that's your main character moment. โจ
โจ DESCRIPTION โจ
This parser will process the waba output (NOT the human readable format).
okay that "NOT" is in the original and it's in caps because they MEAN it. the human readable format? not it. don't even try. this parser wants the raw waba output and nothing else. she's picky. respect it. ๐
โจ FEEDBACK โจ
๐ธ Mailing Lists ๐ธ
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
ngl the way the Bioperl community genuinely wants your feedback? that's community. that's iconic. your participation is much appreciated, and they said it, not me. ๐ซถ
๐ธ Support ๐ธ
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
bestie PLEASE. do not DM the maintainer. do not slide into their inbox. go to the mailing list. there are experienced and reponsive experts there who will look at your problem and quickly address it. (yes, "reponsive" is spelled like that in the original โ we don't fix, we preserve. ๐)
and when you post? include a thorough description of the problem, with code and data examples if at all possible. help them help you. that's the assignment. ๐
๐ธ Reporting Bugs ๐ธ
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
bug reports = keeping track of bugs AND their resolution. it's a whole system. it's organized. we love a process. ๐โจ
โจ AUTHOR - Jason Stajich โจ
Email jason-at-bioperl.org
shoutout Jason. ๐ (also note: jason-at-bioperl.org โ the "at" is written out like that, that's the anti-spam vibe, keep it exact.)
โจ APPENDIX โจ
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
iykyk: if it starts with an underscore, it's internal. that's the tell. peek behind the curtain all you want, just know she's private. ๐
๐ new ๐
Title : new
Usage : my $obj = Bio::SearchIO::waba->new();
Function: Builds a new Bio::SearchIO::waba object
Returns : Bio::SearchIO::waba
Args : see Bio::SearchIO
- Title โ
new - Usage โ
my $obj = Bio::SearchIO::waba->new(); - Function โ Builds a new Bio::SearchIO::waba object
- Returns โ Bio::SearchIO::waba
- Args โ see
Bio::SearchIO
building a whole new object. fresh start. new era. โจ
๐ next_result ๐
Title : next_result
Usage : my $hit = $searchio->next_result;
Function: Returns the next Result from a search
Returns : Bio::Search::Result::ResultI object
Args : none
- Title โ
next_result - Usage โ
my $hit = $searchio->next_result; - Function โ Returns the next Result from a search
- Returns โ
Bio::Search::Result::ResultIobject - Args โ none
(notice the usage line names it $hit even though it's a result. we don't question. we copy verbatim. ๐)
๐ start_element ๐
Title : start_element
Usage : $eventgenerator->start_element
Function: Handles a start element event
Returns : none
Args : hashref with at least 2 keys 'Data' and 'Name'
- Title โ
start_element - Usage โ
$eventgenerator->start_element - Function โ Handles a start element event
- Returns โ none
- Args โ hashref with at least 2 keys
'Data'and'Name'
two keys minimum: 'Data' and 'Name'. that's the bare minimum. don't show up with one. ๐
๐ end_element ๐
Title : start_element
Usage : $eventgenerator->end_element
Function: Handles an end element event
Returns : none
Args : hashref with at least 2 keys 'Data' and 'Name'
- Title โ
start_element - Usage โ
$eventgenerator->end_element - Function โ Handles an end element event
- Returns โ none
- Args โ hashref with at least 2 keys
'Data'and'Name'
okay yes the Title saysstart_elementforend_element. that's in the original. it's a lil typo and it's our typo now. keeping it. ๐ญ
๐ element ๐
Title : element
Usage : $eventhandler->element({'Name' => $name, 'Data' => $str});
Function: Convience method that calls start_element, characters, end_element
Returns : none
Args : Hash ref with the keys 'Name' and 'Data'
- Title โ
element - Usage โ
$eventhandler->element({'Name' => $name, 'Data' => $str}); - Function โ Convience method that calls
start_element,characters,end_element - Returns โ none
- Args โ Hash ref with the keys
'Name'and'Data'
she's a convenience method (spelled "Convience" in the original โ we preserve, we don't correct) that does three things in one. start, characters, end. combo move. ๐
๐ characters ๐
Title : characters
Usage : $eventgenerator->characters($str)
Function: Send a character events
Returns : none
Args : string
- Title โ
characters - Usage โ
$eventgenerator->characters($str) - Function โ Send a character events
- Returns โ none
- Args โ string
one string in, character events out. (yes "a character events". plural energy. we keep.) ๐
๐ _mode ๐
Title : _mode
Usage : $obj->_mode($newval)
Function:
Example :
Returns : value of _mode
Args : newvalue (optional)
- Title โ
_mode - Usage โ
$obj->_mode($newval) - Function โ (blank in the original, so it stays blank here bestie)
- Example โ (also blank, we don't invent)
- Returns โ value of
_mode - Args โ newvalue (optional)
the underscore! she's internal. and her Function is literally empty. mystery mode. enigmatic. we stan an unbothered queen who says nothing. ๐
๐ within_element ๐
Title : within_element
Usage : if( $eventgenerator->within_element($element) ) {}
Function: Test if we are within a particular element
This is different than 'in' because within can be tested
for a whole block.
Returns : boolean
Args : string element name
- Title โ
within_element - Usage โ
if( $eventgenerator->within_element($element) ) {} - Function โ Test if we are within a particular element. This is different than 'in' because within can be tested for a whole block.
- Returns โ boolean
- Args โ string element name
okay so the KEY tea here: this is different than 'in' because within can be tested for a whole block. whole block, bestie. that's the distinction. don't mix them up. ๐ฅ
๐ in_element ๐
Title : in_element
Usage : if( $eventgenerator->in_element($element) ) {}
Function: Test if we are in a particular element
This is different than 'in' because within can be tested
for a whole block.
Returns : boolean
Args : string element name
- Title โ
in_element - Usage โ
if( $eventgenerator->in_element($element) ) {} - Function โ Test if we are in a particular element. This is different than 'in' because within can be tested for a whole block.
- Returns โ boolean
- Args โ string element name
same description text as within_element, copy-pasted right down to the wording. that's the original's choice, not mine, and I am not editing it. ๐
๐ start_document ๐
Title : start_document
Usage : $eventgenerator->start_document
Function: Handles a start document event
Returns : none
Args : none
- Title โ
start_document - Usage โ
$eventgenerator->start_document - Function โ Handles a start document event
- Returns โ none
- Args โ none
no args. no returns. just vibes and document-starting. โจ
๐ end_document ๐
Title : end_document
Usage : $eventgenerator->end_document
Function: Handles an end document event
Returns : Bio::Search::Result::ResultI object
Args : none
- Title โ
end_document - Usage โ
$eventgenerator->end_document - Function โ Handles an end document event
- Returns โ
Bio::Search::Result::ResultIobject - Args โ none
and she RETURNS something! unlike start_document who returns none. end_document understood the assignment. ๐
๐ result_count ๐
Title : result_count
Usage : my $count = $searchio->result_count
Function: Returns the number of results we have processed
Returns : integer
Args : none
- Title โ
result_count - Usage โ
my $count = $searchio->result_count - Function โ Returns the number of results we have processed
- Returns โ integer
- Args โ none
counting results. keeping score. math girlie. ๐งฎ๐
that's the whole page, bestie. every option, every arg, every blank Function field, every typo โ preserved with love and a lil glitter on top. go parse some WABA. ๐ฆ
perl v5.32.1 ยท 2021-08-15 ยท Bio::S...O::waba(3pm) โ mwah, that's the sign-off, thanks for reading the docs with me ๐ ๐โจ
๐ฆ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 ยท Perl
- debian trixie: libbio-perl-perl 1.7.8-1 ยท Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 ยท Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 ยท Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms