GRsetwidth-methods {compEpiTools} | R Documentation

## Set the width of a GRanges based on the mid point of each region

### 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:

- gr: a GRanges

- newWidth: a positive numeric

### Examples

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

[Package compEpiTools version 1.16.0 Index]