<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">We have features displayed on a xyplot
track. When two features have the same position, it's impossible for users
to see the details (link and balloon hover) of one of those features because
their link/hover rectangles on the imagemap entirely overlap each other.</font>
<br>
<br><font size=2 face="sans-serif">For example, these two features:</font>
<br><tt><font size=2>chr &nbsp; &nbsp; &nbsp; &nbsp;lineA &nbsp;
&nbsp; &nbsp; &nbsp;association &nbsp; &nbsp; &nbsp; &nbsp;4719228
&nbsp; &nbsp; &nbsp; &nbsp;4719228 &nbsp; &nbsp; &nbsp; &nbsp;1.716993287
&nbsp; &nbsp; &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp;.
&nbsp; &nbsp; &nbsp; &nbsp;Name=Male_feature_123;ID=10987;Ptype=0.05;Datatype=Male;P_value=0.020</font></tt>
<br><tt><font size=2>chr &nbsp; &nbsp; &nbsp; &nbsp;lineA &nbsp;
&nbsp; &nbsp; &nbsp;association &nbsp; &nbsp; &nbsp; &nbsp;4719228
&nbsp; &nbsp; &nbsp; &nbsp;4719228 &nbsp; &nbsp; &nbsp; &nbsp;2.716472047
&nbsp; &nbsp; &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp;.
&nbsp; &nbsp; &nbsp; &nbsp;Name=Female_feature_123;ID=65432;Ptype=0.01;Datatype=Female;P_value=0.003<br>
</font></tt>
<br><font size=2 face="sans-serif">This is how the features are displayed
on our track (gbrowse2_1-features.gif):</font>
<br><img src=cid:_1_04B5FA3C04B5F79C005FE553852576DD><font size=2 face="sans-serif">&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">This is the rectangle on the imagemap
that shows the balloon on mouse hover and that links to both features'
link (it's actually 2 pixels wide, but I drew it 3 pixels wide for better
visibility). It covers the whole height of the track, but only 2 pixels
wide even though the glyph's radius is 5 pixels (gbrowse2_2-actual-imagemap.gif):</font>
<br><img src=cid:_1_04B611FC04B60AC4005FE553852576DD>
<br>
<br><font size=2 face="sans-serif">I think it would be better if the imagemap's
rectangles actually fit the glyphs' height and width like this (gbrowse2_3-right-imagemap-female.gif
and gbrowse2_4-right-imagemap-male.gif):</font>
<br><img src=cid:_1_04C69CEC04B61064005FE553852576DD><font size=2 face="sans-serif">&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;</font><img src=cid:_1_04C69EF004B61064005FE553852576DD>
<br>
<br>
<br><font size=2 face="sans-serif">Also, the scales are repeated for each
feature, which can mess up the display of a track (gbrowse2_5-actual-scale-repeated.gif):</font>
<br><img src=cid:_1_04C6AA0C04C6A7E4005FE553852576DD>
<br>
<br><font size=2 face="sans-serif">Could it be possible to have scale settings
like leftmargin, rightmargin, bothmargin in addition to none, left, right,
and both? (gbrowse2_6-actual-scale-repeated.gif and gbrowse2_7-scale-leftmargin.gif):</font>
<br><img src=cid:_1_04C6AF1804B5EE3C005FE553852576DD><font size=2 face="sans-serif">&nbsp;
&nbsp; &nbsp; &nbsp; </font><img src=cid:_1_04C6B11C04B5EE3C005FE553852576DD>
<br>
<br><font size=2 face="sans-serif">For example, I did a quick fix by adding
#JA lines in Bio::Graphics::Glyph::xyplot::_draw_scale() and it does show
only one scale in the left margin:</font>
<br><tt><font size=2>my $x0 = 20; &nbsp; &nbsp;#JA (should get some value
from GBrowse's margin settings)</font></tt>
<br><tt><font size=2>...</font></tt>
<br><tt><font size=2>$gd-&gt;line($x0,$y1,$x0,$y2,$fg) if $side eq 'leftmargin';
&nbsp; &nbsp;#JA</font></tt>
<br><tt><font size=2>...</font></tt>
<br><tt><font size=2>for (sort {$a-&gt;[0]&lt;=&gt;$b-&gt;[0]} @points)
{</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; ...</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; $gd-&gt;line($x0-3,$_-&gt;[0],$x0,$_-&gt;[0],$fg)
if $side eq 'leftmargin'; &nbsp; &nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; ...</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; if ($side eq 'leftmargin') { &nbsp;
&nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; $gd-&gt;string($font, &nbsp;
&nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $x0 - $font-&gt;width
* length($_-&gt;[1]) - 3,$font_pos, &nbsp; &nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_-&gt;[1], &nbsp;
&nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fg); &nbsp; &nbsp;#JA</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; }</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; ...</font></tt>
<br><tt><font size=2>}</font></tt>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks!</font>
<br>
<br><font size=2><b>_______</b> <b><br>
Jonathan Arvisais</b> <br>
Programmeur Informatique</font>
<p><font size=2>T: (450) 358-2621 x224 <br>
DNA Landmarks Inc. <br>
84 Richelieu <br>
St.-Jean-sur-Richelieu, J3B 6X3<br>
Québec, Canada </font><font size=2 color=blue><u><br>
</u></font><a href=mailto:arvisaisj@dnalandmarks.ca><font size=2 color=blue><u>arvisaisj@dnalandmarks.ca</u></font></a><font size=2 color=blue><u><br>
</u></font><a href=http://www.dnalandmarks.ca/><font size=2 color=blue><u>www.dnalandmarks.ca</u></font></a><font size=2>
</font>
<p><font size=2 face="Arial"><b>DNA LandMarks</b></font><font size=2> </font><font size=1 face="Arial"><i><br>
une compagnie de</i> </font><font size=1 face="Arial Black">BASF Plant
Science </font><font size=1 face="Arial"><i><br>
a</i> </font><font size=1 face="Arial Black">BASF Plant Science </font><font size=1 face="Arial"><i>company</i></font><font size=2>
</font>