Description Usage Arguments Value Examples
The function takes a peak group of class peakObj as input and calculates the modality score for the transition peaks in the peak group. Modality score is defined as the largest unexpected dip in the peak, normalized by peak height. For high quality peaks, the modality score is expected to be close to 0.
1 | CalculateModality(peak, flatness.factor = 0.05, ...)
|
peak |
A peak group of class peakObj |
flatness.factor |
A numeric parameter between 0 and 1 that determines the sensitivity of the modality score to low levels of noise. To avoid high modality scores due to small levels of noise, near-flat ranges in the peak are artificially flattened before calculating the modality score. A range is defined as near-flat and thus flattened when the difference between intensities of adjacent time points is smaller than flatness.factor times the peak maximum intensity. |
A list with the following objects: r.modality: A numeric vector of modality scores for each transition in the peak group. peak.modality: Mean of the r.modality vector. This score represents the overall modality of all the transitions in the peak group.
1 2 3 | peak <- data.CSF$data$PeakGroup[[196]]
peak.group.modality <- CalculateModality(peak)
PlotChromPeak(peak,transition.list = c("y6","y8"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.