Dear Alex, Thank your for your detailed answer. I followed the protocol at http://bedops.readthedocs.org/en/latest/content/usage-examples/multiple-inputs.html#multiple-inputs
Which gave me peaks within groups. I guess it will give me the same results. However, I did understand the part where we compare both groups.
Should I merge all peak files in a same bed and do the line below?
$bedmap --count --echo --delim '\t' all_bed_files.bed
Also, You used bedops -elemen of 1 for finding overlaps but I used bedmap. Would there be a significant difference?
Thank you very much for your patient while helping with me.
"2bp region of overlap which makes no sense" --> why does it make no sense? 1bp overlap is still an overlap if you do not set a minimum number of bp
Tool: bedtools multiinter (aka multiIntersectBed)
This is the help of multi inter. Now please tell me how to specify that? Thank you