GRsetwidth-methods {compEpiTools} | R Documentation |
Given a GRanges, this method sets the width of a GRanges based on the mid point of each region
To be used in this form:
GRsetwidth(gr, newWidth)
where:
gr: a GRanges
newWidth: a positive numeric
gr <- GRanges(Rle(c('chr1','chr1')), ranges=IRanges(start=c(100,200), end=c(150,250))) GRsetwidth(gr, 1000)