gintervals.filter: Filter intervals set by distance to another. A wrapper around...

View source: R/intervals.R

gintervals.filterR Documentation

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

Description

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

Usage

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

intervals1 filtered to only intervals that are closer than max_distance to intervals2.


tanaylab/misha.ext documentation built on Oct. 1, 2024, 10:55 a.m.