findInteractions.single: Calculate the Interaction Strength for Single Interaction

View source: R/models.R

findInteractions.singleR Documentation

Calculate the Interaction Strength for Single Interaction

Description

Calculate the Interaction Strength for a single interaction pairs.

Usage

findInteractions.single(
  data,
  idents,
  ligand,
  receptor,
  stats = c("mean", "median"),
  pair.fxn = c("+", "*"),
  threshold = 0,
  cutoff = NA
)

Arguments

data

Expression data. A d x M matrix with d rows of features and M columns of data points (cells).

idents

Cell type identity in characters or factors.

ligand

Name or index for ligand.

receptor

Name or index for receptor.

stats

Method used to calculate strength.

  • mean, using mean (Default).

  • medain, using median.

pair.fxn

Functions used to calculate pair strength.

  • +, using sum of the pairs (Default).

  • *, using product of the pairs.

cutoff

Cutoff used to calculate the statistics (mean or median). Default is NA. If set to 0, all 0 values will be removed when calculating mean or median.

Value

Returns Earth Mover's Distance.


stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.