Interactions from a BEDPE file that would result in APA plots intersecting the diagonal (given a resolution and buffer size) are removed from the BEDPE file.

filterBedpe(bedpe, res, buffer)

Arguments

bedpe

data.frame or data.table in BEDPE format

res

integer resolution of bedpe bins

buffer

integer number of res-length bins from the center pixel

Value

Returns a filtered BEDPE