Debian Codegraph @

docs/content/tools/pairtopair.rst

raw
1 .. _pairtopair:
2
3 ###############
4 *pairtopair*
5 ###############
6 **pairToPair** compares two BEDPE files in search of overlaps where each end of a BEDPE feature in A
7 overlaps with the ends of a feature in B. For example, using pairToPair, one could screen for the exact
8 same discordant paired-end alignment in two files. This could suggest (among other things) that the
9 discordant pair suggests the same structural variation in each file/sample.
10
11
12 ================================
13 Usage and option summary
14 ================================
15 **Usage:**
16
17 ::
18
19 pairToPair [OPTIONS] -a <BEDPE> -b <BEDPE>
20
21
22 =========================== =========================================================================================================================================================
23 Option Description
24 =========================== =========================================================================================================================================================
25 **-a** BEDPE file A. Each feature in A is compared to B in search of overlaps. Use "stdin" if passing A with a UNIX pipe.
26 **-b** BEDPE file B. Use "stdin" if passing B with a UNIX pipe.
27 **-f** Minimum overlap required as a fraction of A. Default is 1E-9 (i.e. 1bp).
28 **-is** Force "strandedness". That is, only report hits in B that overlap A on the same strand. By default, overlaps are reported without respect to strand.
29 **-type** Approach to reporting overlaps between BEDPE and BED.
30 | **either** Report overlaps if either ends of A overlap B.
31
32
33 | **neither** Report A if neither end of A overlaps B.
34
35
36 | **both** Report overlaps if both ends of A overlap B. -*Default behavior.*
37 =========================== =========================================================================================================================================================
38
39
40
41
42
43 ================================
44 Default behavior
45 ================================
46 By default, a BEDPE feature from A will be reported if *both* ends overlap a feature in the BEDPE B
47 file. If strand information is present for the two BEDPE files, it will be further required that the
48 overlaps on each end be on the same strand. This way, an otherwise overlapping (in terms of genomic
49 locations) F/R alignment will not be matched with a R/R alignment.
50
51 Default: Report A if *both* ends overlaps B.
52
53 ::
54
55 Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
57 BEDPE/BAM A *****.................................*****
58
59 BED File B ^^^^^^^^ ^^^^^^
60
61 Result =====.................................=====
62
63
64 Default when strand information is present in both BEDPE files: Report A if *both* ends overlaps B *on
65 the same strands*.
66
67 ::
68
69 Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70
71 BEDPE A >>>>>.................................>>>>>
72
73 BEDPE B <<<<<.............................>>>>>
74
75 Result
76
77
78
79 BEDPE A >>>>>.................................>>>>>
80
81 BEDPE B >>>>>.............................>>>>>
82
83 Result >>>>>.................................>>>>>
84
85
86
87 ==================================================
88 ``-type neither`` Optional overlap requirements
89 ==================================================
90 Using then **-type neither, pairToPair** will only report A if *neither* end overlaps with a BEDPE
91 feature in B.
92
93 **-type neither**: Report A only if *neither* end overlaps B.
94
95 ::
96
97 Chromosome ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
98
99 BEDPE/BAM A *****.................................*****
100
101 BED File B ^^^^^^^^......................................^^^^^^
102
103 Result
104
105
106
107 BEDPE/BAM A *****.................................*****
108
109 BED File B ^^^^................................................^^^^^^
110
111 Result =====.................................=====
112
113