binarize_expr: Binarize scRNAseq data

Description Usage Arguments Value Examples

View source: R/compare_genelist.R

Description

Binarize scRNAseq data

Usage

1
binarize_expr(mat, n = 1000, cut = 0)

Arguments

mat

single-cell expression matrix

n

number of top expressing genes to keep

cut

cut off to set to 0

Value

matrix of 1s and 0s

Examples

1
2
3
4
5
6
7
8
pbmc_avg <- average_clusters(
    mat = pbmc_matrix_small,
    metadata = pbmc_meta,
    cluster_col = "classified"
)

mat <- binarize_expr(pbmc_avg)
mat[1:3, 1:3]

NCBI-Hackathons/RClusterCT documentation built on July 20, 2021, 3:15 p.m.