Bio::DB::BigWig throws exception when a bin is requested that contains no data
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,
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.