Bio::T...iteScan(3pm)
π NAME π
Bio::Tools::PrositeScan β bestie, it's a parser for ps_scan result. That's the whole vibe. β¨
π SYNOPSIS π
okay so here's how you actually use her:
use Bio::Tools::PrositeScan;
my $factory = Bio::Tools::PrositeScan->new(
-file => 'out.PrositeScan',
-format => 'fasta'
);
while(my $match = $factory->next_prediction){
# $match is a Bio::SeqFeature::FeaturePair
# Sequence ID
my $seq_id = $match->seq_id;
# PROSITE accession number
my $psac = $match->hseq_id;
# Coordinates
my @coords = ( $match->start, $match->end );
# Subsequence
my $seq = $match->feature1->seq;
}
likeβ¦ look at her go. she ate. π
πΈ DESCRIPTION πΈ
so basically this is a parser for the output of the ps_scan program. you hand her either a file handle or a file name β she's not picky, she's flexible β and she hands you back a Bio::SeqFeature::FeaturePair object. iconic behavior, honestly. π¦
β οΈ heads up bestie: the current implementation parses the entire file at once. no streaming, no nibbling, she's eating the whole plate in one sitting. plan accordingly. π
π AUTHOR π
Juguang Xiao, juguang@tll.org.sg β the legend who wrote her. we stan. π«Ά
β¨ SEE ALSO β¨
ps_scansoftware <ftp://ftp.expasy.org/databases/prosite/ps_scan>- PROSITE User Manual <http://prosite.expasy.org/prosuser.html>
π new π
TitleβnewUsageβ
Bio::Tools::PrositeScan->new(-file => 'out.PrositeScan');
Bio::Tools::PrositeScan->new(-fh => \*FH);
ReturnsβL<Bio::Tools::PrositeScan>Argsβ-format => string representing the format type for the ps_scan output, REQUIRED
the -format argument has to be set to "fasta" right now, because that is literally the only parser implemented. fr fr. and that lines up with using the ps_scan arguments -o fasta. π
π¦ next_prediction π¦
Titleβnew
π yes bestie, it really does say new up there in the original. not my typo. i am merely the messenger. π
Usageβ
while($result = $factory->next_prediction){
;
}
Returnsβ aBio::SeqFeature::FeaturePairobject wherefeature1is the matched subsequence andfeature2is the PROSITE accession number. See <http://prosite.expasy.org/prosuser.html#conv_ac>.
like, feature1 is the actual sequence bit she matched, feature2 is the PROSITE accession number β that's the pair, that's the whole point, that's the main character energy. β
and that's the page, bestie!! this lil manual came from perl v5.32.1, dated 2021-08-15, and it lives in the Bio::T...iteScan(3pm) manpage. go forth and parse some PROSITE hits πβ¨π
π¦ 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