compute_mi_dist: Compute mutual information distance from expression vectors

View source: R/crosstalk_funs.R

compute_mi_distR Documentation

Compute mutual information distance from expression vectors

Description

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.

Usage

compute_mi_dist(exp1, exp2, n_bins)

Arguments

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.

Value

The mututal information distance, also refered to as non-self atalk score


saezlab/liana documentation built on Nov. 8, 2023, 11:53 a.m.