Filter intervals set by distance to another. A wrapper around gintervals.neighbours and filter(dist <= max_distance)

gintervals.filter(
  intervals1,
  intervals2,
  max_distance = 0,
  abs_dist = TRUE,
  bind_intervals2 = FALSE,
  ...
)

Arguments

intervals1

intervals set

intervals2

intervals set by which to filter intervals1

max_distance

maximal distance of every interval in intervals1 from intervals2 (defualt 0)

abs_dist

take the absolute distance

bind_intervals2

cbind add intervals2 to result

...

additional parameters to gintervals.neighbours1

Value