Bio::S...owseGFF(3pm)
π NAME π
Bio::SearchIO::Writer::GbrowseGFF β bestie, it's the interface for spitting out your parsed search results in Gbrowse GFF format. That's it. That's the whole job. And it does it gorgeously. β¨
Oh also, hi, you're reading the page for Bio::S...owseGFF(3pm) β yeah the name got truncated in the header, it's giving β¨mysteriousβ¨, but it's us. π«Ά
π SYNOPSIS π
okay so here's the vibe, copy-paste this energy:
use Bio::SearchIO;
my $in = Bio::SearchIO->new(-file => 'result.blast',
-format => 'blast');
my $out = Bio::SearchIO->new(-output_format => 'GbrowseGFF',
-output_cigar => 1,
-output_signif => 1,
-file => ">result.gff");
while( my $r = $in->next_result ) {
$out->write_result($r);
}
like. read the blast, write the gff, loop. main character pipeline behavior fr fr. π₯
πΈ DESCRIPTION πΈ
This writer takes a Search::Result object and turns it into Gbrowse flavour GFF. That's the whole personality. Lowkey iconic. π
π AUTHOR π
Mark Wilkinson
Email: markw-at-illuminae-dot-com
(yeah, the -at- and -dot- are intentional, we're being cute about spam bots, respect it π)
π¦ CONTRIBUTORS π¦
- Susan Miller β
sjmiller at email-DOT-arizon-DOT-edu - Jason Stajich β
jason at bioperl-dot-org
shoutout to the girlies who made this happen π
π FEEDBACK π
π¬ Mailing Lists
ngl, user feedback is a whole integral part of how this module and the other Bioperl modules evolve. So 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
π«Ά Support
okay so listen β please direct usage questions and support issues to the mailing list:
bioperl-l@bioperl.org
...rather than sliding into the module maintainer's DMs directly. The way that so many experienced and responsive experts will be able to look at the problem and quickly address it β that's the whole point. And please include a thorough description of the problem with code and data examples if at all possible. give us the β¨loreβ¨, not just "it broke". π
π 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
π 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::Writer::GbrowseGFF->new(@args);
Function: Builds a new Bio::SearchIO::Writer::GbrowseGFF object
Returns : an instance of Bio::SearchIO::Writer::GbrowseGFF
Args : -e_value => 10 : set e_value parsing cutoff (default undef)
(note the -e_value flag is deprecated.)
builds you a whole new writer object, slay. the args are:
-e_value => 10β sets the e_value parsing cutoff, default isundef.
π¨ heads up bestie: the -e_value flag is deprecated. still there, still works, but it's giving legacy. π
π« to_string
Purpose : Produce the Gbrowse format GFF lines for a Result
Usage : print $writer->to_string( $result_obj, @args);
Argument : $result_obj = A Bio::Search::Result::ResultI object
-version => 1|2|2.5|3 ; the GFF format you want to output (default 3)
-match_tag => match|cDNA_match|EST_match|translated_nucleotide_match
nucleotide_to_protein_match|nucleotide_motif
This is the SO term to be placed in GFF column 3.
-prefix => String to prefix the group by, default is EST
(see %Defaults class variable) A default can also
be set on object init
Returns : String containing data for each search Result or any of its
: sub-objects (Hits and HSPs).
Throws : n/a
breaking that down for you bestie:
$result_objβ a Bio::Search::Result::ResultI object. that's the input, that's the main character.-version => 1|2|2.5|3β the GFF format you want to output. default is3.-match_tagβ one ofmatch,cDNA_match,EST_match,translated_nucleotide_match,nucleotide_to_protein_match, ornucleotide_motif. This is the SO term that gets placed in GFF column 3. yes, column three specifically. very precise of her. π-prefixβ a String to prefix the group by, default isEST(peep the%Defaultsclass variable). A default can also be set on object init, if you're fancy like that. β¨
Returns: a String containing data for each search Result or any of its sub-objects (Hits and HSPs).
Throws: n/a. nothing. she's chill. π
π start_report
Title : start_report
Usage : $self->start_report()
Function: has no function, returns nothing
Returns : empty string
Args : none
no cap, this one has no function. it returns nothing. it returns an empty string. there are no args. it's literally just there. and honestly? we respect the commitment. π
πΈ end_report
Title : end_report
Usage : $self->end_report()
Function: has no function, returns nothing
Returns : empty string
Args : none
same situation bestie β no function, returns nothing, returns an empty string, no args. a matching set. πβ¨
π§ 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
Note : GbrowseGFF.pm makes no changes to the default filter code
filters stuff out at the HSP, Hit, or Result level. you pass it a string for the data type and a CODE reference. returns none.
π note: GbrowseGFF.pm makes no changes to the default filter code. so whatever the default filter does, that's what you're getting. no surprises. π
and that's the page bestie!!! π¦π this was documented with perl v5.32.1, dated 2021-08-15, and it's the Bio::S...owseGFF(3pm) page from the User Contributed Perl Documentation. go forth and write some GFF, you absolute icon. periodt. ππ
π¦ 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