File: mapIdsToRanges.Rd

package info (click to toggle)
r-bioc-genomicfeatures 1.50.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,056 kB
  • sloc: makefile: 6; sh: 2
file content (40 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\docType{methods}
\name{mapIdsToRanges}
\alias{mapIdsToRanges}
\alias{mapIdsToRanges,TxDb-method}
\title{Map IDs to Genomic Ranges}
\usage{
mapIdsToRanges(x, ...)

\S4method{mapIdsToRanges}{TxDb}(x, keys, type = c("cds", "exon", "tx",
  "gene"), columns = NULL)
}
\arguments{
\item{x}{Database to use for mapping}

\item{keys}{Values to lookup, passed to \code{\link{transcripts}} et. al.}

\item{type}{Types of feature to return}

\item{columns}{Additional metadata columns to include in the output}

\item{...}{Additional arguments passed to methods}
}
\value{
\code{\link[GenomicRanges]{GRangesList}} corresponding to the keys
}
\description{
Map IDs to Genomic Ranges
}
\section{Methods (by class)}{
\itemize{
\item \code{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")
}