I have two dataframes: cnv_1
chr start end
3 62860387 63000898
12 31296219 31406907
14 39762575 39769146
19 43372386 43519442
19 56419263 56572829
cnv_2
chr start end
6 30994163 30995078
19 43403531 44608011
18 1731154 1833682
3 46985863 47164711
with aprox 150000 entries each. I would like to know which fragments of cnv_1
overlap in any way with cnv_2
, and -this is the most important for me- to obtain the specific region that overlap.
For example, doing that to the data.frames of the example, to obtain:
chr start end
19 43403531 43519442
thank you very much