Learn R Programming

compEpiTools (version 1.6.3)

GRsetwidth-methods: 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

Arguments

Methods

To be used in this form: GRsetwidth(gr, newWidth) where:
  • gr: a GRanges
  • newWidth: a positive numeric

Examples

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

Run the code above in your browser using DataLab