NAME
Bio::Search::HSP::ModelHSP - A HSP object for model-based searches
SYNOPSIS
use Bio::Search::HSP::ModelHSP;# us it just like a Bio::Search::HSP::ModelHSP object
DESCRIPTION
This object is a specialization of Bio::Search::HSP::ModelHSP and is used for searches which involve a query model, such as a Hidden Markov Model (HMM), covariance model (CM), descriptor, or anything else besides a sequence. Note that results from any HSPI class methods which rely on the query being a sequence are unreliable and have thus been overridden with warnings indicating they have not been implemented at this time.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Chris Fields
Email cjfields at bioperl dot org
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $obj = Bio::Search::HSP::ModelHSP->new();Function: Builds a new Bio::Search::HSP::ModelHSP objectReturns : Bio::Search::HSP::ModelHSPArgs :
Plus Bio::Seach::HSP::ModelHSP methods
-algorithm => algorithm used (Infernal, RNAMotif, ERPIN, etc)-evalue => evalue-pvalue => pvalue-bits => bit value for HSP-score => score value for HSP (typically z-score but depends onanalysis)-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)-meta => optional meta data (sec structure, markup, etc)-custom_score=> custom score data
meta
Title : metaUsage : my $meta = $hsp->meta();Function: Returns meta data for this HSP or undefReturns : string of meta data or undefArgs : [optional] string to set valueNote : At some point very soon this will likely be a Bio::AnnotationI.Don't get used to a simple string!
noncanonical_string
Title : noncanonical_stringUsage : my $nc_seq = $hsp->noncanonical_string();Function: Returns noncanonical string (NC) data for this HSP or undefReturns : string of noncanonical data or undefArgs : [optional] string to set value
custom_score
Title : custom_scoreUsage : my $data = $hsp->custom_score();Function: Returns custom_score data for this HSP, or undefReturns : custom_score data or undefArgs : [optional] custom_scoreNote : This is a Get/Set used to deal with odd score-like data generatedfrom RNAMotif (and other programs) where the score sectioncan be customized to include non-standard data, including sequencedata, user-based scores, and other values.
Bio::Search::HSP::HSPI methods
Implementation of Bio::Search::HSP::HSPI methods follow
algorithm
Title : algorithmUsage : my $r_type = $hsp->algorithmFunction: Obtain the name of the algorithm used to obtain the HSPReturns : string (e.g., BLASTP)Args : [optional] scalar string to set value
strand
Title : strandUsage : $hsp->strand('hit')Function: Retrieves the strand for the HSP component requestedReturns : +1 or -1 (0 if unknown)Args : 'hit' or 'subject' or 'sbjct' to retrieve the strand of the subject.There is no strand available for 'query', as the query is a modeland not a true sequence.
seq
Usage : $hsp->seq( [seq_type] );Purpose : Get the query or sbjct sequence as a Bio::Seq.pm object.Example : $seqObj = $hsp->seq('sbjct');Returns : Object reference for a Bio::Seq.pm object.Argument : seq_type = 'query' or 'hit' or 'sbjct' (default = 'sbjct').: ('sbjct' is synonymous with 'hit'): default is 'sbjct': Note: if there is no sequence available (eg for a model-based: search), this returns a LocatableSeq object w/o a sequenceThrows : Propagates any exception that occurs during construction: of the Bio::Seq.pm object.Comments : The sequence is returned in an array of strings corresponding: to the strings in the original format of the Blast alignment.: (i.e., same spacing).
See Also : seq_str(), Bio::Seq
pvalue
Title : pvalueUsage : my $pvalue = $hsp->pvalue();Function: Returns the P-value for this HSP or undefReturns : float or exponential (2e-10)P-value is not defined with NCBI Blast2 reports.Args : [optional] numeric to set value
evalue
Title : evalueUsage : my $evalue = $hsp->evalue();Function: Returns the e-value for this HSPReturns : float or exponential (2e-10)Args : [optional] numeric to set value
gaps
Title : gapsUsage : 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 noneArgs : arg 1: 'query' = num gaps in query seq'hit' = num gaps in hit seq'total' = num gaps in whole alignmentdefault = 'total'arg 2: [optional] integer gap value to set for the type requested
query_string
Title : query_stringUsage : my $qseq = $hsp->query_string;Function: Retrieves the query sequence of this HSP as a stringReturns : stringArgs : [optional] string to set for query sequence
hit_string
Title : hit_stringUsage : my $hseq = $hsp->hit_string;Function: Retrieves the hit sequence of this HSP as a stringReturns : stringArgs : [optional] string to set for hit sequence
homology_string
Title : homology_stringUsage : 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 : stringArgs : [optional] string to set for homology sequence
length
Title : lengthUsage : 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 : integerArgs : 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
frame
Title : frameUsage : my ($qframe, $hframe) = $hsp->frame('list',$queryframe,$subjectframe)Function: Set the Frame for both query and subject and insure thatthey agree.This overrides the frame() method implementation inFeaturePair.Returns : array of query and subject frame if return type wants an arrayor query frame if defined or subject frame if not definedArgs : '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 togetherNote : Frames are stored in the GFF way (0-2) not 1-3as they are in BLAST (negative frames are deduced by checkingthe strand of the query or hit)
get_aln
Title : get_alnUsage : my $aln = $hsp->gel_alnFunction: Returns a Bio::SimpleAlign representing the HSP alignmentReturns : Bio::SimpleAlignArgs : none
Inherited from Bio::SeqFeature::SimilarityPair
These methods come from Bio::SeqFeature::SimilarityPair
query
Title : queryUsage : my $query = $hsp->queryFunction: Returns a SeqFeature representing the query in the HSPReturns : Bio::SeqFeature::SimilarityArgs : [optional] new value to set
hit
Title : hitUsage : my $hit = $hsp->hitFunction: Returns a SeqFeature representing the hit in the HSPReturns : Bio::SeqFeature::SimilarityArgs : [optional] new value to set
significance
Title : significanceUsage : $evalue = $obj->significance();$obj->significance($evalue);Function: Get/Set the significance valueReturns : numericArgs : [optional] new value to set
score
Title : scoreUsage : my $score = $hsp->score();Function: Returns the score for this HSP or undefReturns : numericArgs : [optional] numeric to set value
bits
Title : bitsUsage : my $bits = $hsp->bits();Function: Returns the bit value for this HSP or undefReturns : numericArgs : none
ModelHSP methods overridden in ModelHSP
The following methods have been overridden due to their current reliance on sequence-based queries. They may be implemented in future versions of this class.