Skip Menu |

This queue is for tickets about the Bio-Graphics CPAN distribution.

Report information
The Basics
Id: 77827
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Bio-Graphics

People
Owner: LDS [...] cpan.org
Requestors: smontgom [...] stanford.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: statistical_summary error when drawing Bio::Graphics::Wiggle object
Date: Thu, 14 Jun 2012 09:18:54 -0700 (PDT)
To: <bug-Bio-Graphics [...] rt.cpan.org>
From: "Stephen Montgomery" <smontgom [...] stanford.edu>
Hi - When using the Bio::Graphics package for loading and visualizing UCSC format WIG files with the following code my $wig_file = "read_depth.wig.txt"; ##file in UCSC WIG format my $loader = Bio::Graphics::Wiggle::Loader->new('data/', 'wib'); my $fh = IO::File->new($wig_file); $loader->load($fh); my $wig = $loader->current_track->{seqids}->{$chr}->{wig}; ## this is a confirmed Bio::Graphics::Wiggle object $panel->add_track($wig, ##Display the Bio::Graphics::Wiggle object , $panel is a Bio::Graphics::Panel object -glyph => 'wiggle_xyplot', -font2color => 'red', -key => $genotype, -bump => +1, -height => 12, -label => 1, -description => 1, ); I get this error Can't locate object method "statistical_summary" via package "Bio::Graphics::Wiggle" at /usr/local/share/perl/5.10.1/Bio/Graphics/Glyph/wiggle_data.pm line 396. An example of the data I am loading in read_depth.wig.txt is: variableStep chrom=chr11 72111918 0.0255582042800561 72111919 0.0255582042800561 72111920 0.0255582042800561 72111921 0.0255582042800561 . Any help would be much appreciated! But I think this might be a bug. All the best, Stephen PS (As an aside, another minor bug, but seqid needs to be seq_id in the Bio::Graphics::Wiggle object so that it doesn't throw an error at line 290 of Bio/SeqFeature/Lite.pm You may encounter that error.)
Subject: Re: [rt.cpan.org #77827] statistical_summary error when drawing Bio::Graphics::Wiggle object
Date: Thu, 14 Jun 2012 16:23:18 -0400
To: bug-Bio-Graphics [...] rt.cpan.org, smontgom [...] stanford.edu
From: Lincoln Stein <lincoln.stein [...] gmail.com>
Now fixed in version 2.29. After creating the loader, please use its features() method to generate the wiggle features, rather than accessing the hash directly. Lincoln On Thu, Jun 14, 2012 at 12:19 PM, Stephen Montgomery via RT < bug-Bio-Graphics@rt.cpan.org> wrote: Show quoted text
> Thu Jun 14 12:19:05 2012: Request 77827 was acted upon. > Transaction: Ticket created by smontgom@stanford.edu > Queue: Bio-Graphics > Subject: statistical_summary error when drawing Bio::Graphics::Wiggle > object > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: smontgom@stanford.edu > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77827 > > > > Hi - > > When using the Bio::Graphics package for loading and visualizing UCSC > format WIG files with the following code > my $wig_file = "read_depth.wig.txt"; ##file in UCSC WIG format > my $loader = Bio::Graphics::Wiggle::Loader->new('data/', 'wib'); > my $fh = IO::File->new($wig_file); > $loader->load($fh); > my $wig = $loader->current_track->{seqids}->{$chr}->{wig}; ## this is a > confirmed Bio::Graphics::Wiggle object > $panel->add_track($wig, ##Display the Bio::Graphics::Wiggle object , > $panel is a Bio::Graphics::Panel object > -glyph => 'wiggle_xyplot', > -font2color => 'red', > -key => $genotype, > -bump => +1, > -height => 12, > -label => 1, > -description => 1, > ); > > I get this error > Can't locate object method "statistical_summary" via package > "Bio::Graphics::Wiggle" at > /usr/local/share/perl/5.10.1/Bio/Graphics/Glyph/wiggle_data.pm line 396. > > An example of the data I am loading in read_depth.wig.txt is: > variableStep chrom=chr11 > 72111918 0.0255582042800561 > 72111919 0.0255582042800561 > 72111920 0.0255582042800561 > 72111921 0.0255582042800561 > . > > > Any help would be much appreciated! But I think this might be a bug. > > All the best, > Stephen > > > PS (As an aside, another minor bug, but seqid needs to be seq_id in the > Bio::Graphics::Wiggle object so that it doesn't throw an error at line 290 > of Bio/SeqFeature/Lite.pm You may encounter that error.) > > > > > >
-- Lincoln D. Stein Director, Informatics and Biocomputing Platform Ontario Institute for Cancer Research 101 College St., Suite 800 Toronto, ON, Canada M5G0A3 416 673-8514 Assistant: Renata Musa <Renata.Musa@oicr.on.ca>
This bug is fixed in version 2.29. In addition, the loader API has been enhanced to avoid the need of inspecting the internal hash. Please use the Bio::Graphics::Wiggle::Loader object's features() method to obtain a set of Bio::Graphics::Feature objects containing the wiggle data. These can then be passed to the add_track() method directly.