ideogram icon indicating copy to clipboard operation
ideogram copied to clipboard

Two annotations layouts combined: overlaid + histogram

Open thedam opened this issue 2 years ago • 2 comments

Hey, is it possible to combine two types of the annotations? it would be helpful to draw this: https://eweitz.github.io/ideogram/annotations-overlaid and this: https://eweitz.github.io/ideogram/annotations-histogram on the same picture

to make it more or less like this: image

Thanks for any hints:)

thedam avatar Mar 03 '23 11:03 thedam

Interesting proposal, @thedam! What are some example use cases?

eweitz avatar Mar 24 '23 11:03 eweitz

Well, for example marking ROH regions.The overlaid red regions indicate a ROH region in a sample. The histogram bars indicate how many samples have ROH in this region - and with a quick look we'd see if this ROH region is frequent.

(actually the histogram doesn't show what I wanted; ideogram seems to pile up bars, that are closer than 10k nt. But is it close to my vision).

In my case I wanted to build histogram based on such a bed file:

1	189392	494542	1  (this region is covered by 1 sample, so I'd like to see a mark/bar)
1	494542	494609	2  (this region is covered by 3 samples, so I'd like to see a mark/bar x3 bigger)
1	494609	611317	3
1	611317	872843	5
1	872843	873251	13 (this region is covered by 13 samples, so the mark/bar i 13x bigger)
1	873251	873542	54

I'd be happy with such feature :)

thedam avatar Mar 24 '23 14:03 thedam