Skip to content
Browse files

Better 0-length sequence support for Bio::DB::Qual as well

  • Loading branch information...
1 parent 92673e2 commit 95d1f9452110855abb1e519325ed66ba1f103c72 @fangly fangly committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/DB/Qual.pm
View
2 Bio/DB/Qual.pm
@@ -404,8 +404,8 @@ sub new {
@args);
$self->{db} = $db;
$self->{id} = $id;
- $self->{start} = $start || 1;
$self->{stop} = $stop || $db->length($id);
+ $self->{start} = $start || ($self->{stop} > 0 ? 1 : 0); # handle 0-length seqs
return $self;
}

0 comments on commit 95d1f94

Please sign in to comment.
Something went wrong with that request. Please try again.