Skip to contents

Compute p-values for L-R interactions

Usage

calculate_interactions_pvalue(
  mean_pmf_dt,
  interactions,
  interactions_strength,
  percents_analysis,
  method = "Arithmetic",
  parallel = FALSE,
  n_cores = NULL
)

Arguments

mean_pmf_dt

data.table of cluster distributions (clusters x genes)

interactions

data.table of interactions

interactions_strength

data.table of interaction strengths

percents_analysis

data.table of logical (passes threshold)

method

"Arithmetic" or "Geometric"

parallel

Whether to use parallel processing (reserved for future)

n_cores

Number of cores for parallel processing (reserved for future)

Value

data.table of p-values (cell type pairs x interactions)