Bio::Tools::BPlite::HSP - Blast report High Scoring Pair (HSP)
use Bio::Tools::BPlite;my $report = new Bio::Tools::BPlite(-fh=>\*STDIN);{while(my $sbjct = $report->nextSbjct) {while (my $hsp = $sbjct->nextHSP) {$hsp->score;$hsp->bits;$hsp->percent;$hsp->P;$hsp->match;$hsp->positive;$hsp->length;$hsp->querySeq;$hsp->sbjctSeq;$hsp->homologySeq;$hsp->query->start;$hsp->query->end;$hsp->hit->start;$hsp->hit->end;$hsp->hit->seq_id;$hsp->hit->overlaps($exon);}}
# the following line takes you to the next report in the stream/file# it will return 0 if that report is empty,# but that is valid for an empty blast report.# Returns -1 for EOF.
last if $report->_parseHeader == -1;
redo}
This object handles the High Scoring Pair data for a Blast report. This is where the percent identity, query and hit sequence length, P value, etc are stored and where most of the necessary information is located when building logic around parsing a Blast report. See Bio::Tools::BPlite for more detailed information on the entire BPlite Blast parsing system.
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
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 email the web:
http://bugzilla.open-bio.org/
Email: [email protected] Jason Stajich, [email protected] The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
report_type
Title : report_typeUsage : $type = $sbjct->report_type()Function : Returns the type of report from which this hit was obtained.This usually pertains only to BLAST and friends reports, for whichthe report type denotes what type of sequence was aligned againstwhat (BLASTN: dna-dna, BLASTP prt-prt, BLASTX translated dna-prt,TBLASTN prt-translated dna, TBLASTX translated dna-translated dna).Example :Returns : A string (BLASTN, BLASTP, BLASTX, TBLASTN, TBLASTX, UNKNOWN)Args : a string on set (you should know what you are doing)
EXP
Title : EXPUsage : my $exp = $hsp->EXP;Function: returns the EXP value for the HSPReturns : string valueArgs : noneNote : Patch provided by Sami Ashour for BTK parsing
P
Title : PUsage : $hsp->P();Function : returns the P (significance) value for a HSPReturns : (double) significance valueArgs :
percent
Title : percentUsage : $hsp->percent();Function : returns the percent matchingReturns : (double) percent matchingArgs : none
match
Title : matchUsage : $hsp->match();Function : returns the matchExample :Returns : (double) frac_identicalArgs :
hsplength
Title : hsplengthUsage : $hsp->hsplength();Function : returns the HSP length (including gaps)Returns : (integer) HSP lengthArgs : none
positive
Title : positiveUsage : $hsp->positive();Function : returns the number of positive matches (symbols in the alignmentwith a positive score)Returns : (int) number of positive matches in the alignmentArgs : none
gaps
Title : gapsUsage : $hsp->gaps();Function : returns the number of gaps or 0 if noneReturns : (int) number of gaps or 0 if noneArgs : none
querySeq
Title : querySeqUsage : $hsp->querySeq();Function : returns the query sequenceReturns : (string) the Query SequenceArgs : none
sbjctSeq
Title : sbjctSeqUsage : $hsp->sbjctSeq();Function : returns the Sbjct sequenceReturns : (string) the Sbjct SequenceArgs : none
homologySeq
Title : homologySeqUsage : $hsp->homologySeq();Function : returns the homologous sequenceReturns : (string) homologous sequenceArgs : none
qs
Title : qsUsage : $hsp->qs();Function : returns the Query Sequence (same as querySeq)Returns : (string) query SequenceArgs : none
ss
Title : ssUsage : $hsp->ss();Function : returns the subject sequence ( same as sbjctSeq)Returns : (string) Sbjct SequenceArgs : none
hs
Title : hsUsage : $hsp->hs();Function : returns the Homologous Sequence (same as homologySeq )Returns : (string) Homologous SequenceArgs : none