makeEnsembldbPackage
.## S3 method for class 'EnsDb':
buildQuery(x, columns=c("gene_id", "gene_biotype",
"gene_name"), filter=list(), order.by,
order.type="asc", skip.order.check=FALSE)## S3 method for class 'EnsDb':
dbconn(x)
EnsDb(x)
## S3 method for class 'EnsDb':
ensemblVersion(x)
## S3 method for class 'EnsDb':
listColumns(x, table, skip.keys=TRUE, ...)
## S3 method for class 'EnsDb':
listGenebiotypes(x, ...)
## S3 method for class 'EnsDb':
listTxbiotypes(x, ...)
## S3 method for class 'EnsDb':
listTables(x, ...)
## S3 method for class 'EnsDb':
metadata(x, ...)
## S3 method for class 'EnsDb':
organism(object)
## S3 method for class 'EnsDb':
seqinfo(x)
## S3 method for class 'EnsDb':
seqlevels(x)
## S3 method for class 'EnsDb':
updateEnsDb(x, ...)
listColumns
or listTables
method for a list of
supported columns.BasicFilter
instance(s) to
select specific entries from the database (see examples below).organism
: an EnsDb
instance.asc
, default) or descending (desc
).listColumns
: whether primary and foreign keys (not
being e.g. "gene_id"
or alike) should be returned or not. By
default these will not be returned.order.by
should be checked for allowed column
names. If TRUE
the function checks if the provided order
criteria orders on columns present in the database tables.listColumns
: optionally specify the table name for
which the columns should be returned.EnsDb
: the file name of the SQLite database.makeEnsembldbPackage
function. In addition, the
EnsDb
constructor specifying the SQLite database file can be
called to generate an instance of the object (see
makeEnsemblSQLiteFromTables
for an example).makeEnsembldbPackage
, BasicFilter
,
exonsBy
, genes
,
transcripts
,
makeEnsemblSQLiteFromTables
library(EnsDb.Hsapiens.v75)
## Display some information:
EnsDb.Hsapiens.v75
## Show the tables along with its columns
listTables(EnsDb.Hsapiens.v75)
## For what species is this database?
organism(EnsDb.Hsapiens.v75)
## What Ensembl version if the database based on?
ensemblVersion(EnsDb.Hsapiens.v75)
## Get some more information from the database
metadata(EnsDb.Hsapiens.v75)
## Get all the sequence names.
seqlevels(EnsDb.Hsapiens.v75)
###### buildQuery
##
## Join tables gene and transcript and return gene_id and tx_id
buildQuery(EnsDb.Hsapiens.v75, columns=c("gene_id", "tx_id"))
## Get all exon_ids and transcript ids of genes encoded on chromosome Y.
buildQuery(EnsDb.Hsapiens.v75, columns=c("exon_id", "tx_id"),
filter=list(SeqnameFilter( "Y")))
## List all available gene biotypes from the database:
listGenebiotypes(EnsDb.Hsapiens.v75)
## List all available transcript biotypes:
listTxbiotypes(EnsDb.Hsapiens.v75)
## Update the EnsDb; this is in most instances not necessary at all.
updateEnsDb(EnsDb.Hsapiens.v75)
Run the code above in your browser using DataLab