computeUnivariateTernaryMatrix: Compute the ternary matrix with digitized divergence coding

Description Usage Arguments Value Examples

View source: R/main.R

Description

Function for obtaining the ternary form for a matrix 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 list with a data frame element "Ranges" containing the baseline range of each features; this corresponds to the output of findUnivariateGammaWithSupport() or computeUnivariateSupport()

Value

A matrix with the same dimensions as Mat containing the ternary form data.

Examples

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

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