Bio::S...:erpin(3pm)
β¨ 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::infernalobject - 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::ResultIobject - 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::ResultIobject - 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
- 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