calculatePvalue: Calculate the p-value for the interactions.

View source: R/calculatePvalue_CellComm.R

calculatePvalueR Documentation

Calculate the p-value for the interactions.

Description

Calculate the rate of values which mean expression value for each ligand-receptor pair is greater than the mean expression value for each pairwise cell type.

Usage

calculatePvalue(p, nPerm = 100, interactions2)

Arguments

p

list; the interaction data frame for the permutations calculated by the clusterPermutation function.

nPerm

numeric; the number of permutations.

interactions2

data frame; the interactions as calculated by the calculateObservedMean function, with the mean expression for ligands, receptors and pairs.

Value

matrix?; the interactions for each pair, plus the pvalue column.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.