Learn R Programming

iontree (version 1.18.0)

searchMS2: Search MS2 spectrum from sqlite database

Description

search MS2 spetra from the database. Ranking is based on the distance metric that defined by Cao et al. 2008, cosine and Tanimoto similarity.

Usage

searchMS2(querySpec, premz, dbname = "mzDB.db", scoreFun = "distMS2", output.record = 5, plot.top = TRUE)

Arguments

querySpec
query spectrum in 2-col matrix
premz
precursor m/z that query spectrum derived from
dbname
database name
scoreFun
score function, 'distMS2','cos' or 'tanimoto'
output.record
the number of records shown in console
plot.top
plot query spectrum and the top-ranked spectrum

Value

return top records

Details

References

See Also