Skip to contents

Calculate L-R interaction strengths for all cell type pairs

Usage

calculate_interaction_strengths_cpp(
  mean_expr,
  ligand_idx,
  receptor_idx,
  method = 1L
)

Arguments

mean_expr

Mean expression matrix (genes x clusters)

ligand_idx

Ligand gene indices (0-indexed)

receptor_idx

Receptor gene indices (0-indexed)

method

Method: 1 = arithmetic, 2 = geometric

Value

3D array (n_interactions x n_clusters x n_clusters)