flankPerGroup: Get flanks per group

View source: R/grl_region.R

flankPerGroupR Documentation

Get flanks per group

Description

For a GRangesList, get start and end site, return back as GRangesList.

Usage

flankPerGroup(grl)

Arguments

grl

a GRangesList

Value

a GRangesList, 1 GRanges per group with: start as minimum start of group and end as maximum per group.

Examples

grl <- GRangesList(tx1 = GRanges("1", IRanges(c(1,5), width = 2), "+"),
                   tx2 = GRanges("2", IRanges(c(10,15), width = 2), "+"))
flankPerGroup(grl)

Roleren/ORFik documentation built on Dec. 18, 2024, 11:39 p.m.