Bio::S...:erpin(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

Bio::SearchIO::erpin β€” it's a SearchIO-based parser for ERPIN, bestie πŸ’…


🌸 SYNOPSIS 🌸

  # do not call this module directly. Use Bio::SearchIO.
okay so real talk: do NOT call this module directly, bestie 😭 use Bio::SearchIO. That's the whole vibe. Periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this is an experimental SearchIO-based parser that reads output from the erpin program ✨

Right now it parses erpin output for ERPIN versions 4.2.5 and above. Older versions? They might work, but like... nobody's supporting that, ngl. πŸ™ˆ


πŸ’– FEEDBACK πŸ’–

πŸ’Œ Mailing Lists

User feedback is literally 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 so much appreciated, no cap.

  bioperl-l@bioperl.org                  - General discussion
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

πŸŽ€ Support

Please direct usage questions or support issues to the mailing list:

  bioperl-l@bioperl.org

...rather than to the module maintainer directly πŸ™ That way many experienced and responsive experts can look at the problem and quickly address it. And please include a thorough description of the problem, with code and data examples if at all possible. Give us the whole story, not just the vibes πŸ’…

πŸ› Reporting Bugs

Report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution πŸ‘‘ Bug reports can be submitted via the web:

  https://github.com/bioperl/bioperl-live/issues

πŸ‘‘ AUTHOR - Chris Fields πŸ‘‘

Email cjfields-at-uiuc-dot-edu


🌈 APPENDIX 🌈

The rest of the documentation details each of the object methods 🧚 Internal methods are usually preceded with a _ (iykyk).

⭐ new

  • Title β€” new
  • Usage β€” my $obj = Bio::SearchIO::infernal->new();
  • Function β€” Builds a new Bio::SearchIO::infernal object
  • Returns β€” Bio::SearchIO::infernal
  • Args β€”
    • -fh/-file => cmsearch (infernal) filename
    • -format => 'erpin'
    • -algorithm => algorithm (default 'Infernal')
    • -query_acc => query accession, eg. Rfam accession (default undef)
    • -hsp_minscore => minimum HSP score cutoff
    • -version => ERPIN version (not reported in output)

πŸ“ 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

✨ 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'

🌸 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'
yes bestie, the Title on this one literally says start_element in the original too. We don't fix, we report. πŸ’€

πŸ’œ element

  • Title β€” element
  • Usage β€” $eventhandler->element({'Name' => $name, 'Data' => $str});
  • Function β€” Convenience method that calls start_element, characters, end_element
  • Returns β€” none
  • Args β€” Hash ref with the keys 'Name' and 'Data'

πŸ¦‹ element_hash

  • Title β€” element
  • Usage β€”
  $eventhandler->element_hash({'Hsp_hit-from' => $start,
                               'Hsp_hit-to'   => $end,
                               'Hsp_score'    => $lastscore});
  • Function β€” Convenience method that takes multiple simple data elements and maps to appropriate parameters
  • Returns β€” none
  • Args β€” Hash ref with the mapped key (in %MAPPING) and value

πŸŽ€ characters

  • Title β€” characters
  • Usage β€” $eventgenerator->characters($str)
  • Function β€” Send a character events
  • Returns β€” none
  • Args β€” string

🌈 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

⭐ in_element

  • Title β€” in_element
  • Usage β€” if( $eventgenerator->in_element($element) ) {}
  • Function β€” Test if we are in a particular element. This is different than 'within' because 'in' only tests its immediate parent.
  • Returns β€” boolean
  • Args β€” string element name

πŸ”₯ start_document

  • Title β€” start_document
  • Usage β€” $eventgenerator->start_document
  • Function β€” Handle a start document event
  • Returns β€” none
  • Args β€” none

πŸ’– end_document

  • Title β€” end_document
  • Usage β€” $eventgenerator->end_document
  • Function β€” Handles an end document event
  • Returns β€” Bio::Search::Result::ResultI object
  • Args β€” none

🧚 result_count

  • Title β€” result_count
  • Usage β€” my $count = $searchio->result_count
  • Function β€” Returns the number of results we have processed
  • Returns β€” integer
  • Args β€” none

πŸ’… query_accession

  • Title β€” query_accession
  • Usage β€” my $acc = $parser->query_accession();
  • Function β€” Get/Set query (model) accession; Infernal currently does not output the accession number (Rfam accession #)
  • Returns β€” String (accession)
  • Args β€” [optional] String (accession)

πŸ“ hsp_minscore

  • Title β€” hsp_minscore
  • Usage β€” my $cutoff = $parser->hsp_minscore();
  • Function β€” Get/Set min bit score cutoff (for generating Hits/HSPs)
  • Returns β€” score (number)
  • Args β€” [optional] score (number)

πŸ‘‘ algorithm_version

  • Title β€” algorithm_version
  • Usage β€” my $ver = $parser->algorithm_version();
  • Function β€” Get/Set algorithm version (not defined in RNAMotif output)
  • Returns β€” String (accession)
  • Args β€” [optional] String (accession)

and that's the whole page, bestie 🫢 this one's Bio::SearchIO::erpin from the User Contributed Perl Documentation, running on perl v5.32.1, dated 2021-08-15 ✨ go forth and parse responsibly πŸ’œ

πŸ“¦ where this page comes from