Skip to contents

Compute null distribution of mean expression per cluster

Usage

calculate_cluster_mean_distribution(
  counts_dt,
  labels_dt,
  n_fft = NULL,
  mode = "continuous",
  parallel = FALSE,
  n_cores = NULL
)

Arguments

counts_dt

data.table of expression (cells x genes)

labels_dt

data.table with cell_type column

n_fft

Maximum n for exact convolution. NULL = auto (30 for continuous, 100 for digit)

mode

Distribution mode ("continuous" or "digit")

parallel

Whether to use parallel computation

n_cores

Number of cores for parallel

Value

data.table where each cell contains a Distribution object