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

grl.pivotR Documentation

Pivot a GRangesList, inverting "x" and "y"

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

grl.pivot(x)

Arguments

x

GRangesList object to pivot

Value

GRangesList with inverted 'x' and 'y'

Examples

grl.pivot(grl.hiC)

mskilab/gUtils documentation built on June 6, 2023, 12:08 a.m.