Uses 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)

Arguments

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.

Value

A matrix with translated and summarised ids.