In this case, we have a matrix of expression values, and a character vector of samples in the reference set. What we want to do is calculate the rowMeans from just the samples in the reference set

calculate_reference_set_mean_expression(expr.mat, reference_set)

Arguments

expr.mat

A matrix of expression values

reference_set

The reference set

Value

A transformed matrix