Defect #8448

Bio::DB::BigWig throws exception when a bin is requested that contains no data

Added by Robert McLeay over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:2011-05-27
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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!

History

#1 Updated by Etienne Massip over 6 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Not the right tracker, this one is for Redmine itself !

Also available in: Atom PDF