Reference Code backup Executable files
Report overlaps between two paired-end BED files (BEDPE).
bedtools pairtopair [OPTIONS] -a <BEDPE> -b <BEDPE>
This tool is part of the bedtools
suite and it's also known as pairToPair
.
pairToPair
compares two BEDPE files in search of overlaps where each end of a BEDPE feature in A overlaps with the ends of a feature in B. For example, using pairToPair
, one could screen for the exact same discordant paired-end alignment in two files. This could suggest (among other things) that the discordant pair suggests the same structural variation in each file/sample. If you want to get the overlaps between a BEDPE and a bed file, consider using pairToBed
.
Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BEDPE/BAM A *****.................................***** BEDPE B ^^^^^^^^.................................^^^^^^ Result =====.................................=====
Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BEDPE/BAM A *****.................................***** BEDPE B ^^^^^^^^......................................^^^^^^ Result BEDPE/BAM A *****.................................***** BEDPE B ^^^^................................................^^^^^^ Result =====.................................=====
$ pairToPair-a 1.sv.bedpe
-b 2.sv.bedpe
| cut -f 1-10 > 1.sv.in2.bedpe
$ pairToPair-a 1.sv.bedpe
-b 2.sv.bedpe
-type neither
| cut -f 1-10 >