Senanu | 16 Nov 09:08 2013
Picon

Eliminating foreground color in Bio::Graphics

Hi all,

I am using the Bio::Graphics module to draw pictures of alignments. However, the glyphs (both 'generic'
and 'graded_segments') take up more space than they should because the 'foreground' extends beyond the
actual coordinates. This makes it so that 2 adjacent regions appear to overlap slightly even if the
genomic coordinates indicate that they do not. Do any of you know if its possible to eliminate the
foreground? My code uses:

my $panel = Bio::Graphics::Panel->new(
 …etc...
);
 my $track = $panel->add_track(
       -glyph       => 'graded_segments',
    #   -vary_fg     => 1,
       -bgcolor     => 'blue',
       -fgcolor     => 'blue:127',
       -bump        => 1,
   );
    $track->add_feature( <at> features);

I have tried using "-fgcolor => 'transparent' ". Making fgcolor => 'white' doesn't do the trick either,
because then it is too narrow, I suspect because the foreground border covers up a bit of the (desired) background.

Any pointers as to how to get the glyph exactly the right size would be much appreciated,
Thanks in advance,
Senanu

Gmane