GRanges2RSE: GRanges2RSE()

View source: R/GRanges2RSE.R

GRanges2RSER Documentation

GRanges2RSE()

Description

Convert objects from the old input format (GRanges object) to the new recommanded input format RangedSummarizedExperiment.

Usage

GRanges2RSE(gr, patterns, names = patterns)

Arguments

gr

a GRanges object with matrix embeded as metadata columns.

patterns

A character vector of column prefixes (can be regular expressions) that should match columns of gr.

names

specify the desired names of the assays (if different from patterns).

Details

Mostly used for backward compatibilities and unit testing.

Value

a RangedSummarizedExperiment.

Examples

data("stackepi_gr")
GRanges2RSE(stackepi_gr, patterns = c("window"))
GRanges2RSE(stackepi_gr, patterns = c("^window_"), names = c("DNAme"))

GenEpi-GenPhySE/epistack documentation built on July 27, 2023, 1:09 a.m.