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.
connect_biomart(prefix = c("ENSG", "GeneID"), version = NULL)(string)
gene ID prefix.
(string or NULL)
optional Ensembl version to use. If NULL
the latest available release is used.
ConnectionBiomart object.
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.
if (interactive()) {
connection <- connect_biomart("ENSG")
}