Convert genes from human to mouse, 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.

hg2mm(x, ...)

Arguments

x

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

Examples

hg2mm("TUBB", "NES")
#> [1] "Nes" "Tubb5"
hg2mm(c("TUBB", "NES"))
#> [1] "Nes" "Tubb5"