filterRgn: Filter Genomic Regions

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Filter genomic regions with reference genomic regions

Usage

1
filterRgn(region, ref)

Arguments

region

Data.frame of input genomic regions.

ref

Data.frame of reference genomic regions needed to be filtered.

Details

This function calls findOverlaps and select the first entry from reference genomic regions if multiple input genomic regions overlapped with the reference genomic regions.

Value

Entries in the reference genomic regions overlapped with the input.

Author(s)

Qi Wang

See Also

filterRgn

Examples

1
2
3
testBed <- data.frame(chr="chr1", start=c(1,4,7), end=c(2,5,8))
control <- data.frame(chr="chr1", start=c(1,7,10), end=c(2,8,11))
filterRgn(makeGRangesFromDataFrame(testBed),makeGRangesFromDataFrame(control))

qwang-big/irene documentation built on May 23, 2019, 1:47 p.m.