| make_spectrum | R Documentation |
Creates a spectrum object from the provided signal intensities, frequencies and chemical shifts.
make_spectrum(
si,
cs_max,
cs_width,
fq_ref,
fq_width = NULL,
force = FALSE,
silent = FALSE,
name = NULL,
path = NULL,
type = NULL,
simpar = NULL,
mfs = NULL
)
si |
Numeric vector of signal intensities, ordered from highest to lowest corresponding chemical shift. |
cs_max |
The highest chemical shift value in ppm, usually shown as left end of the spectrum. |
cs_width |
The width of the spectrum in ppm. |
fq_ref |
The reference frequency in Hz. |
fq_width |
The width of the spectrum in Hz. Only used to check whether the values
calculated from |
force |
If |
silent |
If |
name |
The name of the spectrum, e.g. "Blood 1" or "Urine Mouse X23D". |
path |
The path to the spectrum file, e.g. "/example_datasets/bruker/urine/urine_1". |
type |
The type of experiment, e.g. "H1 CPMG" or "H1 NOESY". |
simpar |
The simulation parameters used to generate the spectrum. |
mfs |
The magnetic field strength in Tesla. |
A spectrum object as described in Metabodecon Classes.
2024-2025 Tobias Schmidt: initial version.
si <- c(1, 1, 3, 7, 8, 3, 8, 5, 2, 1)
cs_max <- 14.8
cs_width <- 20.0
fq_ref <- 600.25 * 1e6
fq_width <- 12005
spectrum <- make_spectrum(si, cs_max, cs_width, fq_ref, fq_width)
spectrum2 <- make_spectrum(si, cs_max, cs_width, fq_ref, fq_width = 12010, force = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.