getGeneIDsFromTxDb: get gene ids by genomic location

Description Usage Arguments Value Examples

View source: R/getGeneIDsFromTxDb.R

Description

retrieve gene ids from txdb object by genomic location.

Usage

1

Arguments

gr

GRanges object.

txdb

An object of TxDb.

Value

A character vector of gene ids

Examples

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

trackViewer documentation built on Feb. 11, 2021, 2 a.m.