Skip to contents

Derive communication features from a kernel

Usage

compute_kernel_features(
  kernel,
  unifKernel = NULL,
  celltypes,
  communication_type = "D",
  bundle = TRUE,
  patient_names = NULL,
  Dcell = NULL,
  norm = FALSE,
  patient_idx = NULL
)

Arguments

kernel

Kernel array from compute_kernel().

unifKernel

Optional normalized baseline kernel.

celltypes

Character vector of cell-type labels.

communication_type

Feature family to compute ("D", "W", "TT", or "GSCC").

bundle

Logical; if TRUE, merge directionally equivalent features where appropriate.

patient_names

Optional patient labels.

Dcell

Optional abundance matrix required for "GSCC".

norm

Logical; if TRUE, compute normalized features when a baseline is supplied.

patient_idx

Optional patient index subset.

Value

A data frame of feature values for the selected patients.