| rangeBasedAccessors {OrganismDbi} | R Documentation |
Generic functions to extract genomic features from an object. This page documents the methods for OrganismDb objects only.
## S4 method for signature 'OrganismDb'
transcripts(x, vals=NULL, columns=c("TXID", "TXNAME"))
## S4 method for signature 'OrganismDb'
exons(x, vals=NULL, columns="EXONID")
## S4 method for signature 'OrganismDb'
cds(x, vals=NULL, columns="CDSID")
## S4 method for signature 'OrganismDb'
transcriptsBy(x, by, columns)
## S4 method for signature 'OrganismDb'
exonsBy(x, by, columns)
## S4 method for signature 'OrganismDb'
cdsBy(x, by, columns)
x |
A TranscriptDb object. |
... |
Arguments to be passed to or from methods. |
by |
One of |
columns |
The columns or kinds of metadata that can be retrieved from the
database. All possible columns are returned by using the |
vals |
Either |
These are the range based functions for extracting transcript information from a OrganismDb object.
a GRanges or GRangesList object
M. Carlson
OrganismDb-class for how to use the
simple "select" interface to extract information from a
OrganismDb object.
transcripts for the original
transcripts method and related methods.
transcriptsBy for the original
transcriptsBy method and related methods.
## extracting all transcripts from Homo.sapiens with some extra metadata
library(Homo.sapiens)
cols = c("TXNAME","SYMBOL")
res <- transcripts(Homo.sapiens, columns=cols)
## extracting all transcripts from Homo.sapiens, grouped by gene and
## with extra metadata
res <- transcriptsBy(Homo.sapiens, by="gene", columns=cols)
## list possible values for columns argument:
columns(Homo.sapiens)