CreateCategoryMatrix: Create one hot matrix for a given label

View source: R/utilities.R

CreateCategoryMatrixR Documentation

Create one hot matrix for a given label

Description

Create one hot matrix for a given label

Usage

CreateCategoryMatrix(
  labels,
  method = c("aggregate", "average"),
  cells.name = NULL
)

Arguments

labels

A vector of labels

method

Method to aggregate cells with the same label. Either 'aggregate' or 'average'

cells.name

A vector of cell names


satijalab/seurat documentation built on May 11, 2024, 4:04 a.m.