importSpectraBruker {ASICS} | R Documentation |
Import preprocessed spectra from Bruker files contained in a single folder. This folder contains one subfolder for each sample. (optional) Spectra are baseline corrected, aligned and normalised by the area under the curve during the importation.
importSpectraBruker(name.dir, which.spectra = "first", ppm.grid = NULL, sample.names = NULL, ncores = 1, verbose = TRUE)
name.dir |
Path of the folder containing one subfolder by sample. Each subfolder contains the Bruker files of this sample. |
which.spectra |
If there is no folder with experiment number
( |
ppm.grid |
Numeric vector of a unique grid (definition domain) for all
spectra (in ppm). Default to |
sample.names |
Character vector of sample names. Default to |
ncores |
Number of cores used in parallel evaluation. Default to
|
verbose |
A boolean value to allow print out process information. |
A data frame with spectra in columns and chemical shifts (in ppm) in rows.
current_path <- system.file("extdata", "example_spectra", package = "ASICS") spectra_data <- importSpectraBruker(current_path)