BWR: BW ratio calculation

View source: R/BWR.R

BWRR Documentation

BW ratio calculation

Description

Compute the BW ratios from data groups

Usage

BWR(X, groupLabel)

Arguments

X

The spectral dataset in the matrix format in which each row contains a single sample.

groupLabel

Group label of samples in the dataset.

Value

Return BW ratio

Author(s)

Trung Nghia Vu

See Also

createNullSampling

Examples

res=makeSimulatedData();
X=res$data;
groupLabel=res$label;
peakList <- detectSpecPeaks(X,
                            nDivRange = c(128),
                            scales = seq(1, 16, 2),
                            baselineThresh = 50000,
                            SNR.Th = -1,
                            verbose=FALSE
);
resFindRef<- findRef(peakList);
refInd <- resFindRef$refInd;
maxShift = 50;
Y <- dohCluster(X,
                peakList = peakList,
                refInd = refInd,
                maxShift  = maxShift,
                acceptLostPeak = TRUE, verbose=FALSE);
# find the BW-statistic
BW = BWR(Y, groupLabel);


speaq documentation built on May 23, 2022, 5:06 p.m.