View source: R/crosstalk_funs.R
compute_mi_dist | R Documentation |
Given two normalized gene expression vectors, and a given number of bins, this function uses the entropy package to compute the mutual information between the two vectors. Values passed to this function should be log-transformed.
compute_mi_dist(exp1, exp2, n_bins)
exp1 |
A vector containing the normalized gene expression for the first gene (ligand) |
exp2 |
A vector containing the normalized gene expression for the first gene (receptor) |
n_bins |
Number of bins to discretize the expression values. |
The mututal information distance, also refered to as non-self atalk score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.