Convert genes from mouse to human, wrapper around convertGenesBetweenSpeciesHomologs. For vectors, the output is not order preserving. For matrices, order is preserved, but genes where the homolog is not found are silently dropped.

mm2hg(x, ...)

Arguments

x

Character vector or matrix with mouse gene symbols to convert. If character, provide either individual strings or one character vector. If a matrix, rownames should be gene symbols.

Examples

mm2hg("Tubb5", "Nes")
#> [1] "TUBB" "NES"
mm2hg(c("Tubb5", "Nes"))
#> [1] "TUBB" "NES"
mat1 <- matrix(seq(1, 15), nrow = 3) rownames(mat1) <- c("Gfap", "Fabp7", "Foo") mm2hg(mat1)
#> [,1] [,2] [,3] [,4] [,5] #> GFAP 1 4 7 10 13 #> FABP7 2 5 8 11 14