[Bioperl-l] Bio::Graphics and different Glyph sizes
Aaron Mackey
ajmackey at gmail.com
Sun Dec 20 18:41:14 UTC 2009
You can set the height as a callback sub, rather than a constant -- the
callback will get passed the feature about to be drawn, from which you can
calculate the "importance", and return the desired height, dynamically.
-Aaron
On Sun, Dec 20, 2009 at 1:19 PM, Emanuele Osimo <e.osimo at gmail.com> wrote:
> Hello everyone,
> I have a very particular problem: I'd like to draw in a single track
> different SNPs with a glyph that allows me to see graphically their
> importance.
> For example, if I have 10 SNPs 1 to 10 in importance, I'd like to have the
> first depicted small, and the last one big, with the ones in between with
> according sizes.
> I'd be satisfied also with a color gradient.
> What I cannot do is to set the option -height , for example, instead than
> in
> the add_track section, in the Bio::SeqFeature::Generic->new that I use for
> each of my objects.
> If I set it in the add_track section, all the glyphs are then of the same
> size (or color).
> If, otherwise, I add a different track for each object, my picture becomes
> too big.
>
> Please, help!
> Thanks
> Emanuele
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
More information about the Bioperl-l
mailing list