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)

compEpiTools documentation built on Nov. 8, 2020, 5:32 p.m.