getGeneIDsFromTxDb {trackViewer} | R Documentation

## get gene ids by genomic location

### Description

retrieve gene ids from txdb object by genomic location.

### Usage

    getGeneIDsFromTxDb(gr, txdb)

### Arguments

`gr` | GRanges object.
`txdb` | An object of `TxDb`.

### Value

A character vector of gene ids

### Examples

    library(TxDb.Hsapiens.UCSC.hg19.knownGene)
    gr <- parse2GRanges("chr11:122,830,799-123,116,707")
    ids <- getGeneIDsFromTxDb(gr, TxDb.Hsapiens.UCSC.hg19.knownGene)

[Package trackViewer version 1.30.0 Index]