[Bioperl-l] Bio::Graphics::Panel

Lincoln Stein lstein at cshl.edu
Wed Sep 29 13:58:14 EDT 2004

Yes, you can open multiple panels and print out their GIFs (or JPEGs 
or PNGs).  The problem you're seeing is that you're printing them out 
as a single continuous file, and the image rendering program only 
recognizes the first image in the file.  You should instead open up 
separate output files and print into them:

	open OUT,">picture1.gif";
	print $panel1->gd->gif;
	close OUT;

	open OUT,">picture2.gif";
	print $panel2->gd->gif;
	close OUT:


On Thursday 05 August 2004 08:52 am, Miroslava Cuperlovic-Culf wrote:
> Dear All,
> I would like to use Bio::Graphics to present exons  mapped to dna
> in a gff file.  I get nice figure for exact lengths of exons and
> introns. But as exons are much shorter than introns it is
> impossible to see their lengths. Thus I would like to either
> present exons in correct lengths and introns only as "..." or as a
> number of bases  or alternatively as several figures, one for each
> exon. Is either of these possible? From perldoc for Bio::Graphics I
> understood that it is possible to open several pictures from one
> program so I tried to use:
> ..
>  my $panel = Bio::Graphics::Panel->new( ...
> ..
> print $panel->gd->gif;
> $panel ->finished;...
> my $panel1 = Bio::Graphics::Panel->new( ...
> ..
> print $panel1->gd->gif;
> $panel1 ->finished;
> but in this way I only got the first panel opened.
> What am I doing wrong?
> Thanks very much for the ongoing help
> Mira
> -

Lincoln D. Stein
Cold Spring Harbor Laboratory
1 Bungtown Road
Cold Spring Harbor, NY 11724

More information about the Bioperl-l mailing list