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

enhancer width #17

Open
ferenckata opened this issue Sep 18, 2023 · 3 comments
Open

enhancer width #17

ferenckata opened this issue Sep 18, 2023 · 3 comments

Comments

@ferenckata
Copy link

Hei,

I was using CAGEfightR enhancer calling (quickEnhancers) through CAGEr and for curiosity plotted the width of the enhancers. I can see that in all of my samples the enhancer widths show a bimodal distribution (see below) and I wonder why. Do you have an explanation maybe?

enhancer_width_SLIC_AU565

@MalteThodberg
Copy link
Owner

Hello @ferenckata ,

CAGEfightR will sometimes merge nearby bidirectional clusters if they are very close: I suspect that is what you are seeing here.

To investigate what is going on, you could use trackBalance to plot the balance score for one of the wide enhancers.

@ferenckata
Copy link
Author

Thanks, I will look into that!

Is there any way I can disable this merging functionality?

@MalteThodberg
Copy link
Owner

(late answer, but in case you are still interested).

At the moment the merging of bidirectional peaks is hard coded. This is to prevent having overlapping clusters, which messes with quantification and differential expression later.

You could directly modify the code for bidirectional clustering without too much trouble though by stopping before the reduce step: https://github.com/MalteThodberg/CAGEfightR/blob/master/R/enhancers.R

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