calcSplineMI: Calculate mutual information

Description Usage Arguments Value Examples

View source: R/BSplineMI.R

Description

Calculate mutual information for an expression matrix using B-Spline binning.

Usage

1
calcSplineMI(x, nBins, splineOrder, threads = 1)

Arguments

x

Gene expression matrix with genes in rows and samples in columns

nBins

Number of bins

splineOrder

Spline order

threads

if >1 then run in parallel

Value

matrix of mutual information (bits)

Examples

1
2
3
4
5
6
7
data( riceEx )
calcSplineMI( riceEx[1:5, ], 7, 3)

# compare single CPU vs two CPU's
system.time( mi_1 <- calcSplineMI( riceEx, 7, 3) )
system.time( mi_2 <- calcSplineMI( riceEx, 7, 3, threads = 2) )
identical( mi_1, mi_2 )

larsgr/BSplineMI documentation built on May 20, 2019, 7:57 p.m.