View source: R/import_spectra.R
import_spectra | R Documentation |
This function imports spectra from a file (.mgf or .sqlite)
import_spectra(
file,
cutoff = 0,
dalton = 0.01,
polarity = NA,
ppm = 10,
sanitize = TRUE
)
file |
File path of the spectrum file to be imported |
cutoff |
Absolute minimal intensity |
dalton |
Dalton tolerance |
polarity |
Polarity |
ppm |
PPM tolerance |
sanitize |
Flag indicating whether to sanitize. Default TRUE |
Spectra object containing the imported spectra
get_file(
url = get_default_paths()$urls$examples$spectra_mini,
export = get_default_paths()$data$source$spectra
)
import_spectra(file = get_default_paths()$data$source$spectra)
import_spectra(
file = get_default_paths()$data$source$spectra,
sanitize = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.