[Bioperl-l] A error with Bio::Graphics::Pane, help me!!!!!
Lincoln Stein
lstein at cshl.edu
Sat Jan 15 22:14:56 EST 2005
This happens when you try to create an image with height or width of
zero. Check to make sure that your sequence has positive length.
Lincoln
On Friday 14 January 2005 12:22 pm, Danielucg Sousa wrote:
> HI,
>
> I have done my code with image_and_map of
>
> Bio::Graphics::Pane Classe. So, out this message:
> > gd-png: fatal libpng error: Image width or height
>
> is zero in IHDR
>
> > gd-png error: setjmp returns error condition
>
> My code until this erro is:
> #!/usr/bin/perl -wT
>
> use strict;
> use Bio::Graphics;
> use Bio::SeqIO;
> use Bio::SeqFeature::Generic;
> #use CGI ':standard';
> use CGI::Pretty;
>
> my $file = '/var/www/cgi-bin/AL391145.gb';
> my $io = Bio::SeqIO->new(-file=>$file);
> my $seq = $io->next_seq;
> #my $wholeseq =
> Bio::SeqFeature::Generic->new(-start=>1,-end=>$seq->length);
> my @features = $seq->all_SeqFeatures;
> my $q = new CGI;
>
> # sort features by their primary tags
> my %sorted_features;
> for my $f (@features) {
> my $tag = $f->primary_tag;
> push @{$sorted_features{$tag}},$f;
> }
>
> print $q->header('text/html');
> print $q->start_html('A Vector Rendering ');
>
> my $panel =
> Bio::Graphics::Panel->new(-length=>$seq->length,
> -width => 1000, -pad_left => 10,
> -pad_right => 10, -key_color =>
> 'white', -key_spacing => 15, -key_style
> => 'bottom', -spacing => -0.25,
> -box_subparts => 'true' );
> my ($url,$map,$mapname) = $panel->image_and_map(-root
> => '/home/bioinfo/cgi-bin',-url => '/tmpimages', );
>
> ----
> I don't know what I have to do. Please somebody help
> me.
>
> By,
> Daniel
>
>
>
>
>
>
> _______________________________________________________
> Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora.
> http://br.acesso.yahoo.com/ - Internet rápida e grátis
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
--
Lincoln D. Stein
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724
NOTE: Please copy Sandra Michelsen <michelse at cshl.edu> on
all emails regarding scheduling and other time-critical topics.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://portal.open-bio.org/pipermail/bioperl-l/attachments/20050115/9c85ade9/attachment-0001.bin
More information about the Bioperl-l
mailing list