Filter intervals set by distance from another intervals set

gpatterns.filter_by_dist(intervals, annot_intervs = NULL,
  annot_intervs_dist = 0, orientation = "upstream", use_tss = FALSE,
  tss_max_dist = 1000)

Arguments

intervals
intervals to filter
annot_intervs
annotation intervals to filter by
annot_intervs_dist
maximal distance from annot_intervs
orientation
orientation (upstream, downstream or both)
use_tss
use TSS as annot intervs
tss_dist
annot_intervs_dist for TSS