Permalink
Browse files

ignore the first group

put in fjossandon's comment.
  • Loading branch information...
1 parent 187d009 commit ab3c18b384549276ef3f231b325d209a87ee6823 yschensandiego committed Jan 27, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 Bio/SearchIO/blast.pm
View
@@ -804,7 +804,7 @@ sub next_result {
}
# move inside of a hit
- elsif (/^(Subject=|>)\s*(\S+)\s*(.*)?/) {
+ elsif (/^(?:Subject=|>)\s*(\S+)\s*(.*)?/) {
chomp;
$self->debug("blast.pm: Hit: $1\n");
@@ -823,8 +823,8 @@ sub next_result {
$self->start_element( { 'Name' => 'Iteration' } );
}
$self->start_element( { 'Name' => 'Hit' } );
- my $id = $2;
- my $restofline = $3;
+ my $id = $1;
+ my $restofline = $2;
$self->debug("Starting a hit: $1 $2\n");
$self->element(

0 comments on commit ab3c18b

Please sign in to comment.