getPeakScore: Calculate the similarity score for all peaks

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

View source: R/getPeakScore.R

Description

This function calculates and output the similarity scores based on spectral matching and RI similarity for multiple peaks.

Usage

1
getPeakScore(runPeaks = list(), deltaRI = 20, weight = 2/3, plot = FALSE)

Arguments

runPeaks

a list of peaks of runs, e.g. generated by calling getPeak.

deltaRI

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

weight

a numeric value in [0,1] to calculated a combined weighted similarity scores based on Apex and area under EIC curve.

plot

a logical value to generate the histogram of the scores, default is FALSE.

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

a matrix of scores with rows as compounds and columns as runs

Author(s)

Mo R. Nezami Ranjbar

References

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

See Also

getScore

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    # load an RData file including a single run data acquired by readCDF
    data("Run")
    
    # load targets information
    data(Targets)
    
    # get all the corresponding peaks of the target list
    runPeaks <- getPeak(Run = Run, Targets = Targets)

    # get the scores for all analytes in all runs
    Scores <- getPeakScore(runPeaks = runPeaks)

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