Hey, I have been trying to solve this but I can't and I am desperate at this point. I have a bed file with enhancer regions that I want. They look like this:
chr6 3592685 3593043 chr6:3592685-3593043 0 .
chr10 3900999 3901229 chr10:3900999-3901229 0 .
chr11 4413870 4414271 chr11:4413870-4414271 0 .
I also have another bed file with ChIP-seq peaks where I have transcription factors. This looks like this:
chr1 184549136 184549586 SETDB1 434 . 184549136 184549586 0 1 450, 0,
chr1 226492413 226492769 CTCF 81 . 226492413 226492769 0 1 356, 0,
I want to overlap the enhancers with these ChIP results. How do I know the 10 transcription factors whose ChIP-sites overlap the most with my enhancers?
Thank you! Please someone.
what did you try ? (... and your answer will contain
bedtools intersect
)That is what I am doing but it does not seem to be working. I am doing:
and I get something like this:
but I want to know the transcription factor that is overlapping which it is in column 4 of the chip bed file
have a look at options
-wa
and-wb
I am trying this:
bedtools intersect -a enhancer_liver2.bed -b chip_tfbs.bed -wb
because the transcription factor is in my second bed file. I get this:but how can I be sure these are actually overlapping? Please I don't understand what to do
uh ?