Learn R Programming

MEDIPS (version 1.22.0)

MEDIPS.mergeFrames: Merges genomic coordinates of neighboring windows into one supersized window

Description

After having filtered the result table returned by the MEDIPS.meth function using the MEDIPS.selectSig function, there might be neighboring significant frames. For these cases it is worthwhile to merge neighbouring regions into one supersized frame.

Usage

MEDIPS.mergeFrames(frames=NULL, distance=1)

Arguments

frames
is a filtered result table received by the MEDIPS.selectSig function.
distance
allows an according number of bases as a gap between neighboring significant windows to be merged. The default value is 1 in order to merge adjacent windows.

Value

The remaining distinct frames are represented only by their genomic coordinates within the returned results table
chromosome
the chromosome of the merged frame
start
the start position of the merged frame
stop
the stop position of the merged frame
ID
a numbered ID of the merged frame
The result table does not contain any merged significant values.

Examples

Run this code

regions=as.data.frame(list(chr=c("chr22", "chr22"), start=c(1001, 1501), stop=c(1500,1750)))
regions.merged=MEDIPS.mergeFrames(regions)

regions.merged

Run the code above in your browser using DataLab