BWR: BW ratio calculation

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Compute the BW ratios from data groups

Usage

1
2
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.

Details

Compute the BW ratios from data groups

Value

Return BW ratio

Author(s)

Trung Nghia Vu

See Also

createNullSampling

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);

nghiavtr/speaq documentation built on May 20, 2019, 5:27 p.m.