eweitz / ideogram

Chromosome visualization for the web

Home Page:https://eweitz.github.io/ideogram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two annotations layouts combined: overlaid + histogram

thedam opened this issue · comments

commented

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:)

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

commented

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 :)