View source: R/makeEpiTxDbFromGRanges.R
makeEpiTxDbFromGRanges | R Documentation |
EpiTxDb
object from a GRanges
objectmakeEpiTxDbFromGRanges
extracts informations from a
GRanges
object. The following
metadata columns can be used:
mod_id
, mod_type
, mod_name
and tx_ensembl
.
The first three are mandatory, whereas tx_ensembl
is optional.
rx_genename
, rx_rank
, rx_ensembl
,
rx_ensembltrans
and rx_entrezid
spec_type
, spec_genename
, spec_ensembl
,
spec_ensembltrans
and spec_entrezid
ref_type
and ref
... and passed on the makeEpiTxDb
.
makeEpiTxDbFromGRanges(gr, metadata = NULL, reassign.ids = FALSE)
gr |
A |
metadata |
A 2-column |
reassign.ids |
= FALSE |
a EpiTxDb
object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.