get_promoters_txdb: Extract Entrez genes promoters from TxDb object.

Description Usage Arguments Value Examples

View source: R/Utilities.R

Description

Extract Entrez genes promoters from TxDb object.

Usage

1
get_promoters_txdb(txdb, upstream = 1000, downstream = 1000)

Arguments

txdb

A valid TxDb object.

upstream

The number of nucleotides upstream of TSS.

downstream

The number of nucleotides downstream of TSS.

Value

A GRanges object that contains the promoters infos.

Examples

1
2
3
4
5
6
## Not run: 
   # require(TxDb.Hsapiens.UCSC.hg19.knownGene)
   txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
   promoters_hg19 <- get_promoters_txdb(txdb)

## End(Not run)

metagene documentation built on Nov. 8, 2020, 5:37 p.m.