CreateDesignMatrix: Convert perturbation dictionary to design matrix

View source: R/data_handling.R

CreateDesignMatrixR Documentation

Convert perturbation dictionary to design matrix

Description

Convert perturbation dictionary to design matrix

Usage

CreateDesignMatrix(groups, min.cells = 10)

Arguments

groups

Perturbation dictionary (in list format) or named vector

min.cells

Min number of cells per perturbation

Value

Sparse binary matrix where rows are cells, and columns are perturbation. 1 means the cell received the perturbation.


yanwu2014/perturbLM documentation built on Aug. 24, 2023, 2:28 p.m.