Convert gene symbols to ENSEMBL gene IDs

symbols2ensembl(x, sp = "hg")

Arguments

x

Character vector of genes, or matrix (e.g. of counts) where rownames are genes.

sp

Character, one of "mm" or "hg", specifying the species for which data is given in mat. Default: "hg".

Examples

mat1 <- matrix(seq(1, 15), nrow = 3) rownames(mat1) <- c("Gfap", "Fabp7", "Foo") symbols2ensembl(mat1)
#> [,1] [,2] [,3] [,4] [,5]
symbols2ensembl(c("Gfap", "Fabp7"), "mm")
#> [1] "ENSMUSG00000020932" "ENSMUSG00000019874"