GRsetwidth: Set the width of a GRanges based on the mid point of each...

Description Methods Examples

Description

Given a GRanges, this method sets the width of a GRanges based on the mid point of each region

Methods

To be used in this form:

GRsetwidth(gr, newWidth)

where:

Examples

1
2
3
	gr <- GRanges(Rle(c('chr1','chr1')), 
		ranges=IRanges(start=c(100,200), end=c(150,250)))
	GRsetwidth(gr, 1000)

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