[BioRuby] addition of graphics classes

jan aerts (RI) jan.aerts at bbsrc.ac.uk
Wed Nov 22 15:43:20 UTC 2006

Hi all,

I've been hacking away to create two classes that allow for visualizing
mapping data:
The first class Bio::Map::ComparativeMap makes it possible to show the
relationship between different maps that have markers in common. As a
result, different maps for the same chromosome (e.g. two different
linkage maps and a radiation hybrid map) can be compared easily. A usage
example is available in the documentation (see attachment

The SVG of this particular example looks like the one in the attached
screencast (screencast_comparative_map.html). As the display can get
cluttered if more than 2 maps have to be displayed and there are common
markers between any two maps, some javascript is used to make the maps
draggable by the user.

In addition to the Bio::Map::ComparativeMap above, I've created a class
to visualize features on a map, akin to BioPerl's Bio::Graphics module.
It basically works by creating a panel that contains tracks with
features. At the moment, features can be drawn as boxes, directed-boxes
or triangles. An example is added in attachment (output.png; mind that
the quality went way down when converting from the original SVG). At the
moment, the following classes exist:

Visualizing anything else than features on a linear map is not available

My questions are:
* Would you like me to commit them to bioruby?
* If so: what about naming. Any better suggestions than the two above? I
might move ComparativeMap to Bio::Graphics, as it does nothing more than
drawing things (Bio::Graphics::ComparativeMap?).

Documentation for both modules is also attached (graphics_docs.tar.gz).

Sorry for all those attachments... If you have problems opening any of
them, please let me know.

Looking forward to your comments.

Dr Jan Aerts
Bioinformatics Group
Roslin Institute
Roslin, Scotland, UK
+44 131 527 4200

---------The obligatory disclaimer--------
The information contained in this e-mail (including any attachments) is
confidential and is intended for the use of the addressee only.   The
opinions expressed within this e-mail (including any attachments) are
the opinions of the sender and do not necessarily constitute those of
Roslin Institute (Edinburgh) ("the Institute") unless specifically
stated by a sender who is duly authorised to do so on behalf of the

More information about the BioRuby mailing list