View source: R/compare_genelist.R
binarize_expr | R Documentation |
Binarize scRNAseq data
binarize_expr(mat, n = 1000, cut = 0)
mat |
single-cell expression matrix |
n |
number of top expressing genes to keep |
cut |
cut off to set to 0 |
matrix of 1s and 0s
pbmc_avg <- average_clusters(
mat = pbmc_matrix_small,
metadata = pbmc_meta,
cluster_col = "classified"
)
mat <- binarize_expr(pbmc_avg)
mat[1:3, 1:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.