[Bioperl-l] Bio::Graphics - Is there anyway of having multipletop-level glyphs overlaying each other

Crabtree, Jonathan crabtree at tigr.org
Fri Jun 18 11:40:34 EDT 2004


Allen-

> Is there anyway of having multiple top-level glyphs 
> overlaying each other? If so, that would make drawing protein 
> domains a lot easier.

Sure, just set "-bump => 0" when you create the track (see attached code
and png).  The only problems with this approach are 1. the use of a
whitespace label to center the 'line' glyph correctly and 2. since bump
== 0 there's nothing to stop the labels of the domain glyphs from
overlapping if the domains are close together (but this is an inherent
drawback of the particular layout you want to achieve.)

Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prog.pl
Type: application/octet-stream
Size: 2811 bytes
Desc: prog.pl
Url : http://portal.open-bio.org/pipermail/bioperl-l/attachments/20040618/51aba71f/prog.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 1679 bytes
Desc: test.png
Url : http://portal.open-bio.org/pipermail/bioperl-l/attachments/20040618/51aba71f/test.png


More information about the Bioperl-l mailing list