pair-to-pair
Quick Start
- Command:
pairToPair -a A.bedpe -b B.bedpe [options] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/pairToPair - Full reference: See
references/help.md
When To Use This Tool
- Compare one BEDPE pair set against another BEDPE pair set.
- Require overlap on both ends, either end, neither end, or not-both.
- Add positional tolerance to each pair footprint with
-slop. - Enforce or ignore strand agreement depending on the assay design.
Common Patterns
# 1) Require both ends of A to overlap B
pairToPair \
-a loops_A.bedpe \
-b loops_B.bedpe \
-type both
# 2) Allow either end to match with 500 bp slop
pairToPair \
-a loops_A.bedpe \
-b loops_B.bedpe \
-type either \
-slop 500
# 3) Ignore strand and avoid self-matches by name
pairToPair \
-a pairs.bedpe \
-b pairs.bedpe \
-is \
-rdn
Recommended Workflow
- Confirm both files are valid BEDPE and represent the same conceptual pair geometry.
- Choose
-typebased on whether one-end hits are sufficient or both anchors must agree. - Add
-sloponly when you intentionally want fuzzy anchor matching. - Use
-rdnwhen self-hits or same-name artifacts would pollute the comparison.
Guardrails
-aand-bare both required.- Strands are enforced by default; add
-isto ignore them. -slopexpands each footprint of A before matching, which can materially change reported overlap rates.-type bothis the default and is stricter than many users expect.- Prefer
-hfor help; GNU-style--help/--versioncalls on these wrappers are noisy.