connect_biomart()
creates a connection object of class ConnectionBiomart
which contains
the biomaRt
object of class biomaRt::Mart
and the prefix of the object
which is used downstream for the query.
Usage
connect_biomart(prefix = c("ENSG", "GeneID"), version = NULL)
Details
This connects to the Ensembl
data base of BioMart
for human genes.
A specific version can be optionally chosen to ensure reproducibility of results
once a new release is available, as accessed data might then change.
Examples
if (interactive()) {
connection <- connect_biomart("ENSG")
}