View source: R/annot_from_db.R
annot_from_db | R Documentation |
Simple iterative database search to annotate spectra in a tibble
annot_from_db(spectra, dir_db, bin, fname_regex = "*.mzXML", cores = 1)
spectra |
Grouped (e.g. by |
dir_db |
Directory containing database spectrum files in an mzR-readable format (mzXML, mzML, etc.) |
fname_regex |
Regex string that can be used to prefilter database files (generally the suffix.) |
A summary of the input tibble with additional columns:
file
(basename of the best-matching database spectrum file)
cos
(cosine matchup score for that file)
# effectively add an annotation column to peaks_matched: peaks_matched <- annot_from_db(peaks_matched, "~/msdb/", "methyl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.