convert.bm {convertid} | R Documentation |
Retrieve Additional Annotations from Biomart
Description
convert.bm()
is a wrapper for get.bm()
which in turn makes use of getBM()
from the biomaRt package.
It takes a matrix or data frame with the IDs to be converted in one column or as row names as input and returns a data frame with additional
annotations after cleaning the fetched annotations and merging them with the input data frame.
Usage
convert.bm(
dat,
id = "ID",
biom.data.set = c("human", "mouse"),
biom.mart = c("ensembl", "mouse", "snp", "funcgen", "plants"),
host = "https://www.ensembl.org",
biom.filter = "ensembl_gene_id",
biom.attributes = c("ensembl_gene_id", "hgnc_symbol", "description"),
biom.cache = rappdirs::user_cache_dir("biomaRt"),
use.cache = TRUE,
sym.col = "hgnc_symbol",
rm.dups = FALSE,
verbose = FALSE
)
Arguments
dat |
|
id |
|
biom.data.set |
|
biom.mart |
|
host |
|
biom.filter |
|
biom.attributes |
|
biom.cache |
|
use.cache |
( |
sym.col |
|
rm.dups |
|
verbose |
( |
Details
Wrapped around 'get.bm'.
Value
A data frame with the retrieved information.
Author(s)
Vidal Fey
See Also
Examples
## Not run:
dat <- data.frame(ID=c("ENSG00000111199", "ENSG00000134121", "ENSG00000176102", "ENSG00000171611"))
bm <- convert.bm(dat)
bm
## End(Not run)