So I would like to calculate the consensus of differential binding sites from 3 different histone marks. I am getting a few (not so many) false overlapping H3k4me3 and the rest overlapping areas that are not as expected. The issue is probably, due to the fact that the algorythm expands the peaks.
So, I would like to know if there is a way to:
A. first merge H3k27ac and H3k4me3 peaks, that will also post peaks from both sides that do not overlap/intersect, I assume this can be done with bedtools intersect (BUT, I can not make it post both -a or -b even with -wao
B. and then intersect the produced bed file and output these that overlap 100% as common, but not what is not overlapping as 100%. These peaks should be separated like in the images.
Thank you all
Thank you Kevin, Is bedtools multiinter the successor of join? I remember that there was a bedttols tools that I can not find any more that I was also using it for venn or upset plots. The files are here:
I performed your recommendation and not getting exactly what I was looking for:
I ended up shrinking with removing something like 500 bps (with bedtools slop) of the H3k27me3 peaks and manually remove some that were not correctly called. It looks a bit better like that , and the intersected peaks make more sense based on the RNAseq and also the peak quality of the H3K27me3 landscape Vs the H3K27ac and H3k4me3.