Description Usage Arguments Value
View source: R/pairwise.interaction.KL.R
Expected interaction score distribution is that all cell types express the same level of ligand and receptor genes, thus the normalized probability is 1/n^2. Observed distribution is the interaction scores based on actual expression values. This is a helper function called by make_expressed_net.R or make_expressed_net_specify_expressed_genes.R
1 | pairwise.interaction.KL(ligand_mat, receptor_mat, method)
|
ligand_mat |
expression matrix for ligands |
receptor_mat |
expression matrix for receptors. The same ligand-receptor pair should be in the same order as ligand_mat. |
method |
"product" or "min": ligand-receptor interaction score is either defined by multiplying ligand and receptor expression values or take the minimum |
KL divergence for all expressed ligand-receptor pairs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.