Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two annotations layouts combined: overlaid + histogram #340

Open
thedam opened this issue Mar 3, 2023 · 2 comments
Open

Two annotations layouts combined: overlaid + histogram #340

thedam opened this issue Mar 3, 2023 · 2 comments

Comments

@thedam
Copy link

thedam commented Mar 3, 2023

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

@eweitz
Copy link
Owner

eweitz commented Mar 24, 2023

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

@thedam
Copy link
Author

thedam commented Mar 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants