transcriptsByOverlaps | R Documentation |
Generic functions to extract genomic features for specified genomic locations. This page documents the methods for TxDb objects only.
transcriptsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"), ...)
## S4 method for signature 'TxDb'
transcriptsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"),
columns = c("tx_id", "tx_name"))
exonsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"), ...)
## S4 method for signature 'TxDb'
exonsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"),
columns = "exon_id")
cdsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"), ...)
## S4 method for signature 'TxDb'
cdsByOverlaps(x, ranges,
maxgap = -1L, minoverlap = 0L,
type = c("any", "start", "end"),
columns = "cds_id")
x |
A TxDb object. |
ranges |
A GRanges object to restrict the output. |
maxgap , minoverlap , type |
Used in the internal call to |
... |
Arguments to be passed to or from methods. |
columns |
Columns to include in the output.
See |
These functions subset the results of transcripts
,
exons
, and cds
function calls with
using the results of findOverlaps
calls based on the specified ranges
.
a GRanges object
P. Aboyoun
transcripts
and transcriptsBy
for more ways to extract genomic features
from a TxDb-like object.
transcriptLengths
for extracting the transcript
lengths (and other metrics) from a TxDb object.
exonicParts
and intronicParts
for
extracting non-overlapping exonic or intronic parts from a
TxDb-like object.
extractTranscriptSeqs
for extracting transcript
(or CDS) sequences from chromosome sequences.
coverageByTranscript
for computing coverage by
transcript (or CDS) of a set of ranges.
select-methods for how to use the simple "select" interface to extract information from a TxDb object.
id2name
for mapping TxDb internal ids
to external names for a given feature type.
The TxDb class.
txdb <- loadDb(system.file("extdata", "hg19_knownGene_sample.sqlite",
package="GenomicFeatures"))
gr <- GRanges(Rle("chr1", 2),
IRanges(c(500,10500), c(10000,30000)),
strand = Rle("-", 2))
transcriptsByOverlaps(txdb, gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.