NAME
Bio::Search::HSP::BlastPullHSP - A parser and HSP object for BlastN hsps
SYNOPSIS
# generally we use Bio::SearchIO to build these objectsuse Bio::SearchIO;my $in = Bio::SearchIO->new(-format => 'hmmer_pull',-file => 'result.blast');while (my $result = $in->next_result) {while (my $hit = $result->next_hit) {print $hit->name, "\n";print $hit->score, "\n";print $hit->significance, "\n";while (my $hsp = $hit->next_hsp) {# process HSPI objects}}}
DESCRIPTION
This object implements a parser for BlastN hsp output.
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 - Sendu Bala
Email [email protected]
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::BlastNHSP->new();Function: Builds a new Bio::Search::HSP::BlastNHSP object.Returns : Bio::Search::HSP::BlastNHSPArgs : -chunk => [Bio::Root::IO, $start, $end] (required if no -parent)-parent => Bio::PullParserI object (required if no -chunk)where the array ref provided to -chunk contains an IO objectfor a filehandle to something representing the raw data of thehsp, and $start and $end define the tell() position within thefilehandle that the hsp data starts and ends (optional; defaultsto start and end of the entire thing described by the filehandle)
query
Title : queryUsage : my $query = $hsp->queryFunction: Returns a SeqFeature representing the query in the HSPReturns : L<Bio::SeqFeature::Similarity>Args : none
hit
Title : hitUsage : my $hit = $hsp->hitFunction: Returns a SeqFeature representing the hit in the HSPReturns : L<Bio::SeqFeature::Similarity>Args : [optional] new value to set
gaps
Title : gapsUsage : my $gaps = $hsp->gaps( ['query'|'hit'|'total'] );Function : Get the number of gap characters in the query, hit, or total alignment.Returns : Integer, number of gap characters or 0 if noneArgs : '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'
strand
Title : strandUsage : $hsp->strand('query')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'query' to retrieve the query strand (default)'list' or 'array' to retrieve both query and hit together
start
Title : startUsage : $hsp->start('query')Function: Retrieves the start for the HSP component requestedReturns : integer, or list of two integers (query start and subject start) inlist contextArgs : 'hit' or 'subject' or 'sbjct' to retrieve the start of the subject'query' to retrieve the query start (default)
end
Title : endUsage : $hsp->end('query')Function: Retrieves the end for the HSP component requestedReturns : integer, or list of two integers (query end and subject end) inlist contextArgs : 'hit' or 'subject' or 'sbjct' to retrieve the end of the subject'query' to retrieve the query end (default)
pvalue
Title : pvalueUsage : my $pvalue = $hsp->pvalue();Function: Returns the P-value for this HSPReturns : undef (Hmmpfam reports do not have p-values)Args : none