eweitz / ideogram

Chromosome visualization for the web
https://eweitz.github.io/ideogram
Other
294 stars 71 forks source link

Annotations obscured by overlaps #259

Open cmixon opened 3 years ago

cmixon commented 3 years ago

If annotations lie close together they are obscured (annotations-external-data.html, human ideogram, 850 band level). It is sometimes difficult to tell that annotations are overlapping and sometimes an annotation tooltip does not display at all. Changing the annotationHeight attribute does not solve.

For example, ACP5 and ZNF443 lie in close proximity on 19p. If the triangle shape is used, the size of the triangle does not visibly increase to indicate the annotation overlap. For example, TOP2A and RARA lie in close proximity on 17q. If the triangle shape is used, the tooltip for RARA does not show at all.

The "hidden" annotations are displayed if different shapes are used for the annotations. For example, if ERBB2(HER2), RARA, and TOP2A are mapped with the RARA shape = 'triangle' and the other two genes' shape = 'rectangle', all three annotations are visible and the tooltips display as expected.