getScore: Calculate similarity score for a peak

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

View source: R/getScore.R

Description

This function calculates and output the similarity score for a peak while a reference spectrum is provided. The score is based on spectral matching and RI difference between the true peak and the reference.

Usage

1
2
getScore(trueSpec = numeric(), refSpec = numeric(), 
                        trueRI = 0, refRI = 0, deltaRI = 30)

Arguments

trueSpec

a numeric vector of intensity values for the measure, i.e. true, spectrum.

refSpec

a numeric vector of the intensity values for the reference spectrum.

trueRI

a numeric value of the measured, i.e. true, retention index

refRI

a numeric value of the reference retention index

deltaRI

a numeric value for the penalty on the retention index similarity score

Details

By calling getScore(), this function calculates the similarity score for multiple peaks in multiple runs. This is performed by using spectral and retention index information together.

Value

numeric

Author(s)

Mo R. Nezami Ranjbar

References

http://omics.georgetown.edu/SIMAT.html

See Also

getPeakScore

Examples

1
    getScore(trueSpec = c(97, 995, 278, 343), refSpec = c(100, 1000, 250, 390))

SIMAT documentation built on Nov. 8, 2020, 8:27 p.m.