GRmidpoint-methods: Returns a GRanges containing the mid point of a GRanges

Description Methods Examples

Description

Returns a GRanges containing the mid point of a GRanges

Methods

To be used in this form:

GRmidpoint(Object)

where Object is a GRanges.

A GRanges with width 1 containing the mid points of each range in Object is returned.

Examples

1
2
3
gr <- GRanges(seqnames=Rle('chr1',2), 
	ranges=IRanges(start=c(10,100), end=c(50, 150)))
GRmidpoint(gr)

kamalfartiyal84/compEpiTools documentation built on May 29, 2019, 5:40 a.m.