lw | R Documentation |
Calculating full width at half maximum (FWHM, aka line width). This function returns the ppm difference where peak line crosses half of the peak height. It requires one signal across all spectra within ppm ranges specified in shift.
lw(X, ppm, sh = c(-0.1, 0.1), sf)
X |
num matrix, NMR data with rows representing spectra. |
ppm |
num array describing chemical shift positions, its length equals to nrow(X). |
sh |
num array(2), chemical shift range of a singlet for which fwhm is calculated |
sf |
num, operating frequency of the spectrometer (meta$SFO1) |
Array of line widths in ppm. To convert from ppm to Hertz (Hz), multiply values with the spectrometer frequency (column a_SF01 in meta data frame).
Torben Kimhofer torben.kimhofer@murdoch.edu.au
Other estimation:
get_idx()
,
noise()
,
shift_pickr()
read_in(path = system.file('extdata',package='concentr8r'), exp_type = list(exp=c("PROF_URINE_NOESY")), n_spec='multiple') lnw <- lw(X, ppm, sh = c(-0.1, 0.1), meta$a_SF01) bad <- which(lnw>1) if (length(bad)!=0){cat("The spectra", bad, "have line widths over 1") } else {cat("All Spectra have line widths under 1")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.