Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mapIdsToRanges

Map IDs to Genomic Ranges


Description

Map IDs to Genomic Ranges

Usage

mapIdsToRanges(x, ...)

## S4 method for signature 'TxDb'
mapIdsToRanges(x, keys, type = c("cds", "exon", "tx",
  "gene"), columns = NULL)

Arguments

x

Database to use for mapping

keys

Values to lookup, passed to transcripts et. al.

type

Types of feature to return

columns

Additional metadata columns to include in the output

...

Additional arguments passed to methods

Value

GRangesList corresponding to the keys

Methods (by class)

  • TxDb: TxDb method

Examples

fl <- system.file(package = "GenomicFeatures", "extdata", "sample_ranges.rds")
txdb <- makeTxDbFromGRanges(readRDS(fl))

keys <- list(tx_name = c("ENST00000371582", "ENST00000371588",
    "ENST00000494752", "ENST00000614008", "ENST00000496771"))
mapIdsToRanges(txdb, keys = keys, type = "tx")

GenomicFeatures

Conveniently import and query gene models

v1.42.3
Artistic-2.0
Authors
M. Carlson, H. Pagès, P. Aboyoun, S. Falcon, M. Morgan, D. Sarkar, M. Lawrence, V. Obenchain
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.