Bio::S...staHSP(3pm)

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

πŸ’– Bio::Search::HSP::FastaHSP πŸ’–

okay so bestie, this is a page from the User Contributed Perl Documentation collection, and it's all about Bio::Search::HSP::FastaHSP β€” the HSP object that carries around FASTA-specific data. yes, we're doing bioinformatics AND perl today. we contain multitudes. 🧬✨


🌸 NAME 🌸

Bio::Search::HSP::FastaHSP β€” it's the HSP object for FASTA specific data. that's it, that's the name, no notes. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

the classic move: pull a FastaHSP out of a SearchIO stream, like so πŸ‘‡

# get a FastaHSP from a SearchIO stream
my $in = Bio::SearchIO->new(-format => 'fasta', -file => 'filename.fasta');

while( my $r = $in->next_result) {
    while( my $hit = $r->next_result ) {
         while( my $hsp = $hit->next_hsp ) {
            print "smith-waterman score (if available): ",
                  $hsp->sw_score(),"\n";
         }
    }
}

nested while loops going three deep? it's giving archaeology dig but honestly it's the standard SearchIO walk. you go result β†’ hit β†’ hsp. 🫢


✨ DESCRIPTION ✨

"Describe the object here"

yeah. that's the whole description. the module author left us a little sticky note and honestly? iconic. 😭 i'm not gonna invent lore that isn't there β€” the original literally just says to describe the object here. consider the object described. moving on. πŸ’€


πŸ“¬ FEEDBACK πŸ“¬

πŸ’Œ Mailing Lists

user feedback is, like, a whole pillar of how this module and the rest of the Bioperl modules evolve, and the devs genuinely want your thoughts and suggestions. participation is very much appreciated. send them to the Bioperl mailing list:

bioperl-l@bioperl.org                  - General discussion
http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

πŸ›Ÿ Support

important: send your usage questions and support issues to the mailing list

bioperl-l@bioperl.org

and not straight to the module maintainer's DMs (metaphorically speaking). there are lots of experienced and responsive experts on there who can look at your problem and sort it out fast. and pls include a thorough description of the problem, with code and data examples if at all possible β€” the more context, the better. ✨

πŸ› Reporting Bugs

found a bug? report it to the Bioperl bug tracking system so they can keep track of what's broken and how it got fixed. bug reports go through the web here:

https://github.com/bioperl/bioperl-live/issues

πŸ‘‘ AUTHOR - Jason Stajich πŸ‘‘

shoutout to Jason Stajich for writing this. email: jason-at-bioperl.org (you know the drill, swap the -at- for an @, anti-spam queen behavior). πŸ’œ


πŸ“– APPENDIX πŸ“–

the rest of this documentation details every single object method, one by one. internal methods are usually prefixed with a _, so if you see that underscore you know it's an inside-job method. πŸ”

πŸŽ€ new

  • Title: new
  • Usage: my $obj = Bio::Search::HSP::FastaHSP->new();
  • Function: Builds a new Bio::Search::HSP::FastaHSP object
  • Returns: Bio::Search::HSP::FastaHSP
  • Args: -swscore => smith-waterman score

fresh object, just dropped. pass it the smith-waterman score via -swscore and you're off. 🌈

πŸŽ€ sw_score

  • Title: sw_score
  • Usage: $obj->sw_score($newval)
  • Function: Get/Set Smith-Waterman score
  • Returns: value of sw_score
  • Args: newvalue (optional)

getter AND setter in one, the classic perl two-for-one. call it with no args to read the Smith-Waterman score, hand it a value to set one. ⭐

πŸŽ€ evalue2

  • Title: evalue2
  • Usage: $obj->evalue2($newval)
  • Function: Get/Set E2() expectation value
  • Returns: value of evalue2
  • Args: newvalue (optional)

same energy, different stat: this one gets/sets the E2() expectation value. optional arg, so it flexes both ways. πŸ¦‹


and that's the whole page, bestie β€” every method, every arg, every mailing list, nothing skipped. 🫢

this was written by perl v5.32.1, dated 2021-08-15, and it lives in the Bio::S...staHSP(3pm) corner of the manual. take care of her. πŸ’…βœ¨

πŸ“¦ where this page comes from