CMIBiCondimat2mat: Normalized Conditional Mutual Information Between Two Matrices Given Two Conditions
Description
Computes the normalized conditional mutual information (CMI) between corresponding rows of two matrices,
given two condition variables, normalized by their individual information content. CMI is calculated using the specified number of bins and spline order.
Usage
CMIBiCondimat2mat(mat1, mat2, condi1, condi2, bin = 6, sp_order = 2)
Value
A numeric vector representing the normalized conditional mutual information (CMI) between pairs of rows
from `mat1` and `mat2`, conditioned on `condi1` and `condi2`.
Arguments
mat1
A numeric matrix. For example, each row represents a gene and each column represents a sample.
mat2
Another numeric matrix to compare against. Must have the same dimensions as `mat1`.
condi1
A numeric condition vector, matching the number of columns in `mat1`.
condi2
Another numeric condition vector, matching the number of columns in `mat1`.
bin
An integer specifying the number of bins. Default is 6.
sp_order
An integer specifying the spline order. Must be less than `bin`. Default is 2.