genomic_corr_nintersect: Intersections between two sets of genomic regions

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

Description

Intersections between two sets of genomic regions

Usage

1
genomic_corr_nintersect(query, reference, ...)

Arguments

query

genomic region 1, a GRanges object

reference

genomic region 2, a GRanges object

...

pass to countOverlaps

Details

It calculates number of regions in query that overlap with reference.

Please note this value is not equal to the number of intersections betweenn two sets of regions, because one region in query may overlap with more than one regions in reference

Be careful with the strand in your GRanges object!

Value

A single correlation value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

genomic_regions_correlation

Examples

1
2
3
gr1 = GRanges(seqnames = "chr1", ranges = IRanges(c(1, 5), c(3, 8)))
gr2 = GRanges(seqnames = "chr1", ranges = IRanges(c(2, 6), c(4, 8)))
genomic_corr_nintersect(gr1, gr2)

eilslabs/epic documentation built on May 16, 2019, 1:24 a.m.