Binarize scRNAseq data
Examples
pbmc_avg <- average_clusters(
mat = pbmc_matrix_small,
metadata = pbmc_meta,
cluster_col = "classified"
)
mat <- binarize_expr(pbmc_avg)
mat[1:3, 1:3]
#> Naive CD4 T Memory CD4 T CD14+ Mono
#> PPBP 0 0 1
#> LYZ 1 1 1
#> S100A9 1 1 1