R/util.R
get_cl_mat.Rd
Generate a sparse matrix one-hot representation of clusters x samples
get_cl_mat(cl)
a cluster factor object
a sparse, one-hot matrix indicating which cluster(columns) each sample (rows) belongs to.