Actions
Defect #8448
closedBio::DB::BigWig throws exception when a bin is requested that contains no data
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-05-27
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
I seem to have run across a bug in Bio::DB::BigWig, where if I request a region containing no data, I get the error:
Can't call method "next_seq" on an undefined value at /usr/local/lib/perl/5.10.1/Bio/DB/BigWig.pm line 658
Sample code to produce this is:
my $bin = $bw->features(-seq_id =>"$chr",
-start => 1,
-end => 100,
-type =>'bin');
It seems that so long as I request a region encompassing at least one base for which the WIG contains data, everything works as expected.
Thanks!
Actions