dohCluster: CluPA function for multiple spectra.

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

Description

Use CluPA for alignment for multiple spectra.

Usage

1
2
3
4
5
6
dohCluster(X,
          peakList,
          refInd = 0,
          maxShift = 100,
          acceptLostPeak = TRUE,
          verbose=TRUE)

Arguments

X

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

peakList

The peak lists of the spectra

refInd

The index of the reference spectrum.

maxShift

The maximum number of the points for a shift step.

acceptLostPeak

This is an option for users, TRUE is the default value. If the users believe that all the peaks in the peak list are true positive, change it to FALSE.

verbose

A boolean value to allow print out process information.

Details

Use CluPA for alignment for multiple spectra.

Value

The aligned spectra.

Author(s)

Trung Nghia Vu

See Also

dohClusterCustommedSegments

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
 
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);

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