Generate a sparse matrix one-hot representation of clusters x samples

get_cl_mat(cl)

Arguments

cl

a cluster factor object

Value

a sparse, one-hot matrix indicating which cluster(columns) each sample (rows) belongs to.