So I have a pretty simple question that I actually can't seem to be able to figure out. So far I have been using bedtools to find overlaps between two bed files using intersectBed. Example:
Now I have three generated bed files that I want to overlap to find peaks/regions common among all three.
The multiintersect option doesn't seem to have any documentation besides the information found here Bedtools Compare Multiple Bed Files? but the function itself doesn't seem to give me the information i'm looking for. Specifically I want to feed in three bed files and find only the common regions between ALL three, not AB, AC, BC, and ABC in one large file which seems to be the output shown in the linked example.
I believe that intersectBed -a A -b B C does something similar to the above, but perhaps i'm simply running it wrong and my attempts are errors on my part.
Can this be done using bedtools? If not, what other similar software is out there that can accomplish this?
I appreciate any help,