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

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

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

okay bestie, so the manual page header here is Bio::S...MERHSP(3pm) β€” that's the User Contributed Perl Documentation version, and yes the title got the classic manpage squeeze. We're talking about Bio::Search::HSP::HMMERHSP today and honestly? she's a specialist. πŸ‘‘


✨ NAME ✨

Bio::Search::HSP::HMMERHSP β€” an HSP object built for HMMER results 🧬


🌸 SYNOPSIS 🌸

okay so here's the vibe, literally just:

use Bio::Search::HSP::HMMERHSP;
# use it just like a Bio::Search::HSP::GenericHSP object

that's it. that's the whole entrance. no secret handshake. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so Bio::Search::HSP::HMMERHSP is a specialization of Bio::Search::HSP::GenericHSP. like, she inherited the whole family personality and then went and made it HMMER-specific. it's giving nepo baby but make it useful, iykyk. πŸ’…


πŸ’Œ FEEDBACK πŸ’Œ

πŸ“¬ Mailing Lists πŸ“¬

user feedback is, like, an integral part of the evolution of this module and all the other Bioperl modules, no cap. so if you've got comments or suggestions, pls pls send them to the Bioperl mailing list. your participation is so much appreciated, fr fr. πŸ₯Ή

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

🫢 Support 🫢

okay important: for usage questions and support issues, direct them to the mailing list:

bioperl-l@bioperl.org

and not straight to the module maintainer, bestie. there are so many experienced and responsive experts on there who can look at your problem and get it addressed quickly. πŸ™ˆ

if at all possible, pls include a thorough description of the problem along with code and data examples. the more context you give, the faster someone can help you out. πŸ’–

πŸ› Reporting Bugs πŸ›

found a bug? report it to the Bioperl bug tracking system so they can actually keep track of the bugs and their resolutions. you can submit bug reports via the web at:

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

go off, be the hero. πŸ”₯


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

Email: jason-at-bioperl.org ✨


more parts incoming, don't go anywhere πŸ’œ

🌈 APPENDIX 🌈

okay bestie the main event is done but there's SO much more. the rest of this documentation spills every single object method detail. and heads up: internal methods usually start with an underscore _ so you can spot them like a little name tag πŸ‘€


🫢 new

  • Title β€” new
  • Usage β€” my $obj = Bio::Search::HSP::HMMERHSP->new();
  • Function β€” Builds a new Bio::Search::HSP::HMMERHSP object
  • Returns β€” Bio::Search::HSP::HMMERHSP
  • Args β€” (nothing, it's giving low-maintenance ✨)

Plus Bio::Search::HSP::GenericHSP methods, and here's the whole arg menu, verbatim, no substitutions:

-algorithm    => algorithm used (BLASTP, TBLASTX, FASTX, etc)
-evalue       => evalue
-pvalue       => pvalue
-bits         => bit value for HSP
-score        => score value for HSP (typically z-score but depends on
                                                 analysis)
-hsp_length   => Length of the HSP (including gaps)
-identical    => # of residues that that matched identically
-conserved    => # of residues that matched conservatively
                 (only protein comparisons -
                 conserved == identical in nucleotide comparisons)
-hsp_gaps     => # of gaps in the HSP
-query_gaps   => # of gaps in the query in the alignment
-hit_gaps     => # of gaps in the subject in the alignment
-query_name   => HSP Query sequence name (if available)
-query_start  => HSP Query start (in original query sequence coords)
-query_end    => HSP Query end (in original query sequence coords)
-hit_name     => HSP Hit sequence name (if available)
-hit_start    => HSP Hit start (in original hit sequence coords)
-hit_end      => HSP Hit end (in original hit sequence coords)
-hit_length   => total length of the hit sequence
-query_length => total length of the query sequence
-query_seq    => query sequence portion of the HSP
-hit_seq      => hit sequence portion of the HSP
-homology_seq => homology sequence for the HSP
-hit_frame    => hit frame (only if hit is translated protein)
-query_frame  => query frame (only if query is translated protein)

✨ Bio::Search::HSP::HSPI methods ✨

Implementation of Bio::Search::HSP::HSPI methods follow, babes. all of them. let's go πŸ’…

🌸 algorithm

  • Title β€” algorithm
  • Usage β€” my $r_type = $hsp->algorithm
  • Function β€” Obtain the name of the algorithm used to obtain the HSP
  • Returns β€” string (e.g., BLASTP)
  • Args β€” [optional] scalar string to set value

πŸ¦‹ pvalue

  • Title β€” pvalue
  • Usage β€” my $pvalue = $hsp->pvalue();
  • Function β€” Returns the P-value for this HSP or undef
  • Returns β€” float or exponential (2e-10)
  • Args β€” [optional] numeric to set value
⚠️ real talk: P-value is not defined with NCBI Blast2 reports. it's just not there, don't come for her πŸ’€

πŸŽ€ evalue

  • Title β€” evalue
  • Usage β€” my $evalue = $hsp->evalue();
  • Function β€” Returns the e-value for this HSP
  • Returns β€” float or exponential (2e-10)
  • Args β€” [optional] numeric to set value

πŸ’œ frac_identical

  • Title β€” frac_identical
  • Usage β€” my $frac_id = $hsp->frac_identical( ['query'|'hit'|'total'] );
  • Function β€” Returns the fraction of identitical positions for this HSP
  • Returns β€” Float in range 0.0 -> 1.0
  • Args β€”
    • arg 1:
      • 'query' = num identical / length of query seq (without gaps)
      • 'hit' = num identical / length of hit seq (without gaps)
      • 'total' = num identical / length of alignment (with gaps)
      • default = 'total'
    • arg 2: [optional] frac identical value to set for the type requested

πŸ“ frac_conserved

  • Title β€” frac_conserved
  • Usage β€” my $frac_cons = $hsp->frac_conserved( ['query'|'hit'|'total'] );
  • Function β€” Returns the fraction of conserved positions for this HSP. This is the fraction of symbols in the alignment with a positive score.
  • Returns β€” Float in range 0.0 -> 1.0
  • Args β€”
    • arg 1:
      • 'query' = num conserved / length of query seq (without gaps)
      • 'hit' = num conserved / length of hit seq (without gaps)
      • 'total' = num conserved / length of alignment (with gaps)
      • default = 'total'
    • arg 2: [optional] frac conserved value to set for the type requested

🌈 gaps

  • Title β€” gaps
  • Usage β€” my $gaps = $hsp->gaps( ['query'|'hit'|'total'] );
  • Function β€” Get the number of gaps in the query, hit, or total alignment.
  • Returns β€” Integer, number of gaps or 0 if none
  • Args β€”
    • arg 1:
      • 'query' = num gaps in query seq
      • 'hit' = num gaps in hit seq
      • 'total' = num gaps in whole alignment
      • default = 'total'
    • arg 2: [optional] integer gap value to set for the type requested

🧚 query_string

  • Title β€” query_string
  • Usage β€” my $qseq = $hsp->query_string;
  • Function β€” Retrieves the query sequence of this HSP as a string
  • Returns β€” string
  • Args β€” [optional] string to set for query sequence

πŸ‘‘ hit_string

  • Title β€” hit_string
  • Usage β€” my $hseq = $hsp->hit_string;
  • Function β€” Retrieves the hit sequence of this HSP as a string
  • Returns β€” string
  • Args β€” [optional] string to set for hit sequence

πŸ’– homology_string

  • Title β€” homology_string
  • Usage β€” my $homo_string = $hsp->homology_string;
  • Function β€” Retrieves the homology sequence for this HSP as a string. The homology sequence is the string of symbols in between the query and hit sequences in the alignment indicating the degree of conservation (e.g., identical, similar, not similar).
  • Returns β€” string
  • Args β€” [optional] string to set for homology sequence

⭐ length

  • Title β€” length
  • Usage β€” my $len = $hsp->length( ['query'|'hit'|'total'] );
  • Function β€” Returns the length of the query or hit in the alignment (without gaps) or the aggregate length of the HSP (including gaps; this may be greater than either hit or query)
  • Returns β€” integer
  • Args β€”
    • arg 1:
      • 'query' = length of query seq (without gaps)
      • 'hit' = length of hit seq (without gaps)
      • 'total' = length of alignment (with gaps)
      • default = 'total'
    • arg 2: [optional] integer length value to set for specific type

πŸŽ€ percent_identity

  • Title β€” percent_identity
  • Usage β€” my $percentid = $hsp->percent_identity()
  • Function β€” Returns the calculated percent identity for an HSP
  • Returns β€” floating point between 0 and 100
  • Args β€” none

🌸 frame

  • Title β€” frame
  • Usage β€” my ($qframe, $hframe) = $hsp->frame('list',$queryframe,$subjectframe)
  • Function β€” Set the Frame for both query and subject and insure that they agree. This overrides the frame() method implementation in FeaturePair.
  • Returns β€” array of query and subject frame if return type wants an array, or query frame if defined, or subject frame if not defined
  • Args β€”
    • 'hit' or 'subject' or 'sbjct' to retrieve the frame of the subject (default)
    • 'query' to retrieve the query frame
    • 'list' or 'array' to retrieve both query and hit frames together
  • Note β€” Frames are stored in the GFF way (0-2) not 1-3 as they are in BLAST (negative frames are deduced by checking the strand of the query or hit)
πŸ™ˆ yes this is a whole vibe check on your frame math. GFF says 0-2, BLAST says 1-3, and negative frames? deduced by peeking at the strand. iykyk.

πŸ¦‹ get_aln

  • Title β€” get_aln
  • Usage β€” my $aln = $hsp->gel_aln
  • Function β€” Returns a Bio::SimpleAlign representing the HSP alignment
  • Returns β€” Bio::SimpleAlign
  • Args β€” none
πŸ’€ not me pointing out that the Usage literally says gel_aln and not get_aln. keeping it exactly as the ancestors wrote it, no cap.

πŸ’… num_conserved

  • Title β€” num_conserved
  • Usage β€” $obj->num_conserved($newval)
  • Function β€” returns the number of conserved residues in the alignment
  • Returns β€” inetger (yes bestie, the original really says inetger, we stan a typo πŸ‘‘)
  • Args β€” integer (optional)

✨ num_identical

  • Title β€” num_identical
  • Usage β€” $obj->num_identical($newval)
  • Function β€” returns the number of identical residues in the alignment
  • Returns β€” integer
  • Args β€” integer (optional)

πŸ”₯ seq_inds

  • Title β€” seq_inds
  • Purpose β€” Get a list of residue positions (indices) for all identical or conserved residues in the query or sbjct sequence.
  • Example β€”
@s_ind = $hsp->seq_inds('query', 'identical');
@h_ind = $hsp->seq_inds('hit', 'conserved');
@h_ind = $hsp->seq_inds('hit', 'conserved', 1);
  • Returns β€” List of integers. May include ranges if collapse is true.
  • Argument β€”
    • seq_type = 'query' or 'hit' or 'sbjct' (default = query)
      • ('sbjct' is synonymous with 'hit')
    • class = 'identical' or 'conserved' or 'nomatch' or 'gap' (default = identical) (can be shortened to 'id' or 'cons')
    • collapse = boolean, if true, consecutive positions are merged using a range notation, e.g., "1 2 3 4 5 7 9 10 11" collapses to "1-5 7 9-11". This is useful for consolidating long lists. Default = no collapse.
  • Throws β€” n/a.
  • Comments β€” (nothing here, she's mysterious πŸŒ™)

See Also β€” Bio::Search::BlastUtils::collapse_nums(), Bio::Search::Hit::HitI::seq_inds()


πŸ’œ Inherited from Bio::SeqFeature::SimilarityPair πŸ’œ

These methods come from Bio::SeqFeature::SimilarityPair, and they're all yours for free, bestie. periodt.

🌈 query

  • Title β€” query
  • Usage β€” my $query = $hsp->query
  • Function β€” Returns a SeqFeature representing the query in the HSP
  • Returns β€” Bio::SeqFeature::Similarity
  • Args β€” [optional] new value to set

🫢 hit

  • Title β€” hit
  • Usage β€” my $hit = $hsp->hit
  • Function β€” Returns a SeqFeature representing the hit in the HSP
  • Returns β€” Bio::SeqFeature::Similarity
  • Args β€” [optional] new value to set

πŸ“ significance

  • Title β€” significance
  • Usage β€”
$evalue = $obj->significance();
$obj->significance($evalue);
  • Function β€” Get/Set the significance value
  • Returns β€” numeric
  • Args β€” [optional] new value to set

⭐ score

  • Title β€” score
  • Usage β€” my $score = $hsp->score();
  • Function β€” Returns the score for this HSP or undef
  • Returns β€” numeric
  • Args β€” [optional] numeric to set value

πŸŽ€ bits

  • Title β€” bits
  • Usage β€” my $bits = $hsp->bits();
  • Function β€” Returns the bit value for this HSP or undef
  • Returns β€” numeric
  • Args β€” none

and that's the whole page, bestie, you ate it 🍽️✨ this absolute icon of a manual page is perl v5.30.0, dated 2019-10-29, and it lives under the name Bio::S...MERHSP(3pm). go forth and parse your HSPs, main character πŸ’…πŸ‘‘

πŸ“¦ where this page comes from