gene_pct_markerm: pct of cells in every cluster that express a series of...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

pct of cells in every cluster that express a series of genelists

Usage

1
gene_pct_markerm(matrix, marker_m, metadata, cluster_col = NULL, norm = NULL)

Arguments

matrix

expression matrix

marker_m

matrixized markers

metadata

data.frame or vector containing cluster assignments per cell. Order must match column order in supplied matrix. If a data.frame provide the cluster_col parameters.

cluster_col

column in metadata with cluster number

norm

whether and how the results are normalized

Value

matrix of numeric values, clusters from mat as row names, cell types from marker_m as column names

Examples

1
2
3
4
5
6
gene_pct_markerm(
    matrix = pbmc_matrix_small,
    marker_m = cbmc_m,
    metadata = pbmc_meta,
    cluster_col = "classified"
)

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