Bio::T...iteScan(3pm)

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

πŸ’– 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 ✨


πŸ’œ new πŸ’œ

  • Title β€” new
  • Usage β€”
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){
    ;
}

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