Use when you need to find overlaps between paired-end read intervals (BEDPE or BAM) and genomic features in BED, GFF, or VCF format.
pairToBed -a pairs.bedpe -b features.bed [options]/home/vimalinx/miniforge3/envs/bio/bin/pairToBedreferences/help.mdeither, both, xor, neither, or notboth.ispan) or outer span (ospan) of a pair.-abam when you have not materialized BEDPE.# 1) Report pairs where either end overlaps a feature
pairToBed \
-a pairs.bedpe \
-b peaks.bed \
-type either
# 2) Keep only pairs where both ends overlap annotation
pairToBed \
-a pairs.bedpe \
-b exons.bed \
-type both
# 3) Test whether the outer span of each pair overlaps a region set
pairToBed \
-a pairs.bedpe \
-b blacklist.bed \
-type ospan
either, both, xor) or about the fragment span (ispan, ospan).-abam with query-grouped BAM input.-f only when a minimal fractional overlap is biologically justified.-a or -abam plus -b is required.-abam requires BAM grouped or sorted by query name.ispan, ospan, notispan, and notospan ignore records whose mates are on different chromosomes.-s and -S do not apply to ispan / ospan modes.-bedpe or -ubam.