computeMultivariateBinaryMatrix: Compute the binary matrix with digitized divergence coding

Description Usage Arguments Value Examples

View source: R/main.R

Description

Function for obtaining the binary form for a matrix for multivariate divergence of data given a baseline range

Usage

1

Arguments

Mat

Matrix of data to be digitized, in [0, 1], with each column corresponding to a sample and each row corresponding to a feature; usually in quantile form.

Baseline

A Baseline object; this corresponds to the output of findMultivariateGammaWithSupport() or computeMultivariateSupport()

Value

A matrix with the same columns as Mat, with rows being the multivariate features, containing the binary form data.

Examples

1
2
3
4
5
6
baseMat = breastTCGA_Mat[, breastTCGA_Group == "NORMAL"]
baseMat.q = computeQuantileMatrix(baseMat)
baseline = computeMultivariateSupport(Mat=baseMat.q, FeatureSets=msigdb_Hallmarks)
dataMat = breastTCGA_Mat[, breastTCGA_Group != "NORMAL"]
dataMat.q = computeQuantileMatrix(dataMat)
divMat = computeMultivariateBinaryMatrix(Mat=dataMat.q, Baseline=baseline)

wikum/divergence.preSE documentation built on Nov. 19, 2021, 3:37 a.m.