[Bioperl-l] Re: blast.pl parsing
Seth Redmond
seth_redmond@hotmail.com
Tue, 29 Jan 2002 17:26:51 +0000
I'm trying to parse from an NCBI blast file such that I can get the
positions of hsp's on the subject strand.
$blast = Bio::Tools::Blast->new('-file' => $infile,
'-signif' => 1e-5,
'-parse' => 1,
'-stats' => 1,
'-check_all_hits' => 1, );
$num_hits = $blast->num_hits;
for ($j=0; $j<=($num_hits-1); $j++)
{
@matches = $hits[$j]->hsp->seq_inds('sbjct', 'id');
...etc
Although I can get to each hit (that is, each different matching strand in
my database) I am having problems where there is more than one match on the
same sequence, in that the script only parses out the first match.
any advice would be much appreciated.
Seth Redmond
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com