Skip to contents

Calculate cluster enrichment by csea approach

Usage

cluster_csea(
  feature_values = NULL,
  cell_clusters = NULL,
  min.cells.feature = 100,
  min.cells.cluster = 10,
  mc.cores = 1,
  csea.k = 99,
  min.k = 10,
  fract_min = 0.2
)

Arguments

feature_values

matrix, features by cells matrix

cell_clusters

array with cell values named by their cluster ID

min.cells.feature

minimum number of cells in which a feature must have value

min.cells.cluster

minimum number of cells of a cluster

mc.cores

number of cores

csea.k

number of permutations

min.k

minimum number of valid permutations to support empirical nulls

fract_min

only cluster of size less or equal to this fraction of cell with not null feature values will be analysed

Value

list with two elements: gs_table and leading_edge. See [csea()]