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

View source: R/util.R

get_cl_matR Documentation

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

Description

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

Usage

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.


AllenInstitute/scrattch.hicat documentation built on June 6, 2024, 5:31 a.m.