get_cl_mat: Generate a sparse matrix one-hot representation of clusters x...

Description Usage Arguments Value

View source: R/util.R

Description

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

Usage

1

Arguments

cl

a cluster factor object

Value

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


AllenInstitute/scrattch.hicat documentation built on Nov. 6, 2018, 9:47 p.m.