flankPerGroup: Get flanks per group

View source: R/grl_helpers.R

flankPerGroupR Documentation

Get flanks per group

Description

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

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 Nov. 13, 2024, 10 p.m.