Learn R Programming

cn.farms (version 1.20.0)

distributionDistance: Computes the distribution distance

Description

Be aware that this function is implemented quite slow.

Usage

distributionDistance(intensityData, method = c("JSDiv", "KLDiv", "KLInf"), useSubset = T, subsetFraction = 0.25, useQuantileReference = FALSE)

Arguments

intensityData
A matrix or an AffyBatch object.
method
The method you want to use.
useSubset
Logical. States if only a subset should be used.
subsetFraction
The fraction of the subset.
useQuantileReference
Logical for a quantile reference.

Value

Computes the distribution distance

Examples

Run this code
load(system.file("exampleData/normData.RData", package = "cn.farms"))
x <- assayData(normData)$intensity[, 1:3]
y <- distributionDistance(x)
attr(y, "Labels") <- substr(sampleNames(normData), 1, 7)
plotDendrogram(y)

Run the code above in your browser using DataLab