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)

JokingHero/ORFik documentation built on Dec. 21, 2024, 12:01 a.m.