gr.mid: Get the midpoints of 'GRanges' ranges

View source: R/gUtils.R

gr.midR Documentation

Get the midpoints of GRanges ranges

Description

Get the midpoints of GRanges ranges

Usage

gr.mid(x)

Arguments

x

GRanges object to operate on

Value

GRanges of the midpoint, calculated from floor(width(x)/2)

Examples

gr.mid(GRanges(1, IRanges(1000,2000), seqinfo=Seqinfo("1", 2000)))

mskilab/gUtils documentation built on June 15, 2025, 2:52 p.m.