Bio::S...riterI(3pm)
π Bio::S...riterI(3pm) π
okay so bestie, welcome to the manual page for Bio::SearchIO::SearchWriterI, straight out of the User Contributed Perl Documentation section. this one is a vibe, not a real object β it's an interface, and she is iconic for it. π
β¨ NAME β¨
Bio::SearchIO::SearchWriterI β the Interface for outputting parsed Search results. yes queen, she's the blueprint. π
πΈ SYNOPSIS πΈ
Bio::SearchIO::SearchWriterI objects cannot be instantiated since this module defines a pure interface. like, she's an idea, not a person. no new() for you, sorry bestie. π
but ngl, if you've got an object that implements the Bio::SearchIO::SearchWriterI interface, here's the lil thing you can do with it:
print $writer->to_string( $result_obj, @args );
slay. that's the whole move. β¨
π¦ DESCRIPTION π¦
so like, this module defines abstract methods that all subclasses must implement to be used for outputting results from Bio::Search::Result::ResultI objects. it's giving "contract", it's giving "you WILL implement these, no cap". the way that every subclass has to show up and do the work? obsessed. π
π AUTHOR π
Steve Chervitz <sac-at-bioperl.org> β the main character who wrote this. π«Ά
π DISCLAIMER π
This software is provided "as is" without warranty of any kind. read that again, fr fr. no promises, no takebacks, no warranty of any kind. π
π APPENDIX π
The rest of the documentation details each of the object methods. buckle up, we're going method by method, and every single one matters. π
π to_string
- Purpose β Produces data for each
Search::Result::ResultIin a string. This is an abstract method. For some useful implementations, seeResultTableWriter.pm,HitTableWriter.pm, andHSPTableWriter.pm. - Usage β
print $writer->to_string( $result_obj, @args ); - Argument β
$result_obj= ABio::Search::Result::ResultIobject;@args= any additional arguments used by your implementation. - Returns β String containing data for each search Result or any of its sub-objects (Hits and HSPs).
- Throws β n/a
like, n/a on throws? we love a low-drama method. π
π§ start_report
- Title β
start_report - Usage β
$self->start_report() - Function β The method to call when starting a report. You can override it to make a custom header.
- Returns β string
- Args β none
custom header?? the personalization era. go off. β¨
πΈ end_report
- Title β
end_report - Usage β
$self->end_report() - Function β The method to call when ending a report, this is mostly for cleanup for formats which require you to have something at the end of the document (
</BODY></HTML>) for HTML - Returns β string
- Args β none
she's the "okay bye gotta go" text at the end of the group chat. required by some formats, lowkey essential. π«Ά
π filter
- Title β
filter - Usage β
$writer->filter('hsp', \&hsp_filter); - Function β Filter out either at HSP, Hit, or Result level
- Returns β none
- Args β string => data type, CODE reference
three whole levels of filtering?? HSP, Hit, and Result? she contains multitudes. π₯
quick reminder bestie: Bio::SearchIO::SearchWriterI is a pure interface, so don't try to instantiate her directly. implement the methods in a subclass, then go feral. π
and that's the page!! this gorgeous piece of documentation comes to you via perl v5.32.1, dated 2021-08-15, and it's the Bio::S...riterI(3pm) manual page. mwah. π π β π
π¦ 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