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)

CharlesJB/metagene documentation built on July 11, 2021, 11:48 a.m.