Description Usage Arguments Value Examples
Normalise a data frame of spectra to a constant sum (CS) or with a
method of PepsNMR
package (see Normalization
).
1 | normaliseSpectra(spectra, type.norm = "CS", verbose = TRUE, ...)
|
spectra |
Data frame with spectra in columns and chemical shifts in rows. Colnames of this data frame correspond to pure metabolite names and rownames to chemical shift grid (in ppm). |
type.norm |
Type of normalisation : "CS", "mean", "pqn", "median", "firstquartile" or "peak". Default to "CS". |
verbose |
A boolean value to allow print out process information. |
... |
other arguments to be passed to
|
A data frame with normalised spectra in columns and chemical shifts (in ppm) in rows.
1 2 3 4 | current_path <- system.file("extdata", package = "ASICS")
spectra_data <- importSpectra(name.dir = current_path,
name.file = "spectra_example.txt", type.import = "txt")
spectra_norm <- normaliseSpectra(spectra_data, type.norm = "pqn")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.