CalculateModality: Compute modality scores for transition peaks in a peak group...

Description Usage Arguments Value Examples

Description

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.

Usage

1
CalculateModality(peak, flatness.factor = 0.05, ...)

Arguments

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.

Value

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.

Examples

1
2
3
peak <- data.CSF$data$PeakGroup[[196]]
peak.group.modality <- CalculateModality(peak)
PlotChromPeak(peak,transition.list = c("y6","y8"))

shadieshghi/TargetedMSQC documentation built on May 13, 2019, 12:20 p.m.