getGeneIDsFromTxDb: get gene ids by genomic location

View source: R/getGeneIDsFromTxDb.R

getGeneIDsFromTxDbR 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)

jianhong/trackViewer documentation built on Nov. 10, 2024, 10:33 a.m.