This function relies on the `biomaRt`` package and connects to the ENSEMBL repository to retrieve the gene symbols. If ENSEMBL cannot be reached, another solution will be used. Since it is memory intensive, users can choose not to run it.

mouse_genes_to_human(
  gene_expression_matrix,
  mirror = "www",
  other_annot = TRUE
)

Arguments

gene_expression_matrix

a m x n matrix with m genes and n samples. Gene symbols must be the rownames of the matrix.

mirror

the ensembl mirror to use. Possible choices are 'www' (default), 'uswest', 'useast', 'asia'

other_annot

boolean, wether to run the other conversion method (might be memory intensive)

Value

the same matrix, with the counts for the corresponding human genes. This matrix can directly be used with the immunedeconv methods. A message will display the ratio of original genes which were converted.