Convert gene symbols to ENSEMBL gene IDs
symbols2ensembl(x, sp = "hg")
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 |
mat1 <- matrix(seq(1, 15), nrow = 3) rownames(mat1) <- c("Gfap", "Fabp7", "Foo") symbols2ensembl(mat1)#> [,1] [,2] [,3] [,4] [,5]#> [1] "ENSMUSG00000020932" "ENSMUSG00000019874"