R/translate_matrix.R
translateMatrixWithDb.RdUses an annotation package like org.Hs.eg.db or org.Mm.eg.db to translate the rownames of the input matrix using translateMatrix.
translateMatrixWithDb(mat, db, sourceKey, targetKey, summariseFun)
| mat | Input matrix. |
|---|---|
| db | Annotation package object to use for the translation. |
| sourceKey | Source key in the DB. |
| targetKey | Target key in the DB. |
| summariseFun | Function used to resolve multi-mapping situations. |
A matrix with translated and summarised ids.