Skip to contents

Function to reduce list of "Peaks" to the ones overlapping with list of "RegEl", e.g. regulatory elements, evolutionary conserved regions

Usage

peaks_in_regulatory_elements(
  Peaks,
  RegEl,
  sep_Peak1 = "-",
  sep_Peak2 = "-",
  sep_RegEl1 = "-",
  sep_RegEl2 = "-"
)

Arguments

Peaks

(character) vector of genomic coordinates of peaks

RegEl

(character) vector of genomic coordinates of regulatory elements

sep_Peak1

(character) separator between chromosome and start position of peak

sep_Peak2

(character) separator between start position and end position of peak

sep_RegEl1

(character) separator between chromosome and start position of regulatory element

sep_RegEl2

(character) separator between start position and end position of regulatory element

Value

(character) vector of genomic coordinates of peaks overlapping

Examples

peaks_in_regulatory_elements(peaks, RegEl)
#> Error: object 'peaks' not found