Bio::S...O::waba(3pm)

๐Ÿ“ฆ
version 1.7.8 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

๐Ÿ’– 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::ResultI object
  • 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 says start_element for end_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::ResultI object
  • 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