makeEpiTxDbFromGRanges: Create a 'EpiTxDb' object from a 'GRanges' object

Description Usage Arguments Value Examples

View source: R/makeEpiTxDbFromGRanges.R

Description

makeEpiTxDbFromGRanges extracts informations from a GRanges object. The following metadata columns can be used:

... and passed on the makeEpiTxDb.

Usage

1
makeEpiTxDbFromGRanges(gr, metadata = NULL, reassign.ids = FALSE)

Arguments

gr

A GRanges object, which contains at least the mandatory columns.

metadata

A 2-column data.frame containing meta information to be included in the EpiTxDb object. This data.frame is just passed to makeEpiTxDb. See makeEpiTxDb for more information about the format of metadata. (default: metadata = NULL)

reassign.ids

= FALSE

Value

a EpiTxDb object.

Examples

1
2
3
4
5
6
7
8
library(GenomicRanges)
gr <- GRanges(seqnames = "test",
              ranges = IRanges::IRanges(1,1),
              strand = "+",
              DataFrame(mod_id = 1L,
                        mod_type = "Am",
                        mod_name = "Am_1"))
etdb <- makeEpiTxDbFromGRanges(gr)

EpiTxDb documentation built on March 26, 2021, 6 p.m.