threshold_gRNA_matrix.RdThresholds a gRNA count matrix, producing a perturbation matrix.
threshold_gRNA_matrix(gRNA_matrix, threshold = 3)a gRNA-by-cell expression matrix; the matrix can be represented as a sparse matrix (as implemented by the Matrix package) or a dense matrix (as implemented by base R)
the threshold used to assign perturbation indicators to cells; counts above the threshold are set to 1 (indicating "perturbed"), and counts below the threshold are set to 0 (indicating "unperturbed")
a binary matrix of perturbation assignments
data(gRNA_matrix)
perturbation_matrix <- threshold_gRNA_matrix(gRNA_matrix)