[Bioperl-l] BioSVG [ Was ABI file parsing]

Malay boolda@yahoo.com
Thu, 2 May 2002 06:28:20 -0700 (PDT)


Hi Dr Stein:

> 
> Since Bio::Graphics already works very nicely
> hand-in-hand with
> BioPerl annotation objects and there is a web-based
> browser and other
> application software based on it, could I suggest
> that you have a look
> at creating a format-independent graphics layer that
> can be used by
> Bio::Graphics and your code to draw on top of either
> GD or SVG at the
> switch of a software toggle?
> 

Pastel is a format independent graphics layer that
just happens to generate SVG.

There are two ways that can be done as I can think of.

#1. Replace all the GD call with Pastel call so that
Bio::Graphics generates SVG.

#2. Let Pastel handle the call to GD or generate SVG

Here is the psedocode

User file:

use Bio::Graphics::Chromatogram;
$ch =
Bio::Graphics::Chromatogram->new(width...height...etc);

$ch->set_trace(@a);

$ch->draw_svg();
or
$ch->draw_png();

In Bio::Graphics::Chromatogram:
The first case:

use Pastel;

draw_svg {
  Pastel::Graphics->new();




__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com