Bio::S...MERHSP(3pm)
π 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
- arg 1:
π 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
- arg 1:
π 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
0if 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
- arg 1:
π§ 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
- arg 1:
π percent_identity
- Title β
percent_identity - Usage β
my $percentid = $hsp->percent_identity() - Function β Returns the calculated percent identity for an HSP
- Returns β floating point between
0and100 - 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) not1-3as 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 says0-2, BLAST says1-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 saysgel_alnand notget_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
- debian bookworm: libbio-searchio-hmmer-perl 1.7.3-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbio-searchio-hmmer-perl 1.7.3-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libbio-searchio-hmmer-perl 1.7.3-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbio-searchio-hmmer-perl 1.7.3-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms