For given gene expression matrix, assign species to each cell (column) based on Ensemble IDs.

inferSpecies(exp.mat, expected.species, rep.ens.method = "orig")

Arguments

exp.mat

Expression matrix (genes x cell); row names are ensemble IDs, col names are cell IDs.

expected.species

Character vector specifying which species are expected in expression matrix.

  • "Mm" - Mouse

  • "Hs" - Human

  • c("Mm", "Hs") - Mouse and Human.

rep.ens.method

Method used to sample representative Ensemble ID for each cell (i.e., column).

  • "orig" - Original method; computation slower than alternative.

  • "alt" - Default. Alternative method;

Value

Character vector specifying species of each cell in expression matrix.