Hello,
I've reread the docs and still cannot find why I'm getting labels printing
twice for each glyph I create like so:
BOXNAME
BOXNAME
<glyph>
This happens even with bumping. All glyphs sort to their respective places
correctly, just with extra space for the additional label.
I've got this to attach the tracks:
$track = $panel->add_track(
-glyph => 'segments',
-linewidth => 2,
-height => 8,
-fontcolor => $txtCol,
-label => 1,
-description => 0,
-bgcolor => sub {
my($feat) = shift;
my($score) = $feat->score;
return ($cols[$score]); },
-bump => 1
);
and attach glyphs using
foreach $ure (keys %ureLocs) {
foreach $instance (sort(keys %{$ureLocs{$ure}})) {
<snip>
my($featureId) = "Name: $SEQname<br />Sequence: $SEQseq<br />Location:
$SEQstart → $trueEnd";
my($feature) =
Bio::SeqFeature::Generic->new(-display_name => $SEQname,
-score => $SEQcol,
-start => $SEQstart,
-end => $SEQend,
-tag => { new => 1,id => $featureId }
);
$track->add_feature($feature);
} ## end foreach $instance (sort(keys...
} ## end foreach $ure (keys %ureLocs)
I'm thinking possibly I'm adding each glyph twice so one is overwriting the
other instance of itself but on one line below. I didn't think this could
happen with bump =1 though.
Any information on how to fix this so only one label is output I'd be much
obliged.
Thanks
Mark
ps. Any information on using negative base locations with this lib would
also be brilliant.
--
mq
mindrail.net
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse