Compute cluster proportions for each row in a matrix

get_cl_prop(mat, cl, threshold = 1)

Arguments

mat

a gene (rows) x samples(columns) sparse matrix

cl

A cluster factor object

threshold

The minimum expression value used to binarize the results

Value

a matrix of genes (rows) x cluster(columns) with proportions for each cluster