grl.pivot: Pivot a 'GRangesList', inverting "x" and "y"

Description Usage Arguments Value Examples

View source: R/gUtils.R

Description

"Pivots" GRangesList object "x" by returning a new GRangesList "y" whose kth item is GRanges object of ranges x[[i]][k] for all i in 1:length(x)

e.g. If the length of a GRangesList 'grl' is 50, 'length(grl)=50 and length of each GRanges element inside is 2, then the function grl.pivot will produce a length 3 GRangesList with 50 elements per GRanges

Note: Assumes all GRanges in "x" are of equal length

Usage

1

Arguments

x

GRangesList object to pivot

Value

GRangesList with inverted 'x' and 'y'

Examples

1

mskilab/gUtils documentation built on Sept. 1, 2018, 8:21 p.m.