R/util.R
get_cl_prop.Rd
Compute cluster proportions for each row in a matrix
get_cl_prop(mat, cl, threshold = 1)
a gene (rows) x samples(columns) sparse matrix
A cluster factor object
The minimum expression value used to binarize the results
a matrix of genes (rows) x cluster(columns) with proportions for each cluster