View source: R/nmr_detect_peaks_align.R
nmr_detect_peaks | R Documentation |
The function detects peaks on an nmr_dataset_1D object, using
speaq::detectSpecPeaks. detectSpecPeaks
divides the whole spectra into
smaller segments and uses MassSpecWavelet::peakDetectionCWT for peak
detection.
nmr_detect_peaks(
nmr_dataset,
nDivRange_ppm = 0.1,
scales = seq(1, 16, 2),
baselineThresh = NULL,
SNR.Th = 3,
range_without_peaks = c(9.5, 10),
fit_lorentzians = FALSE,
verbose = FALSE
)
nmr_dataset |
An nmr_dataset_1D. |
nDivRange_ppm |
Segment size, in ppms, to divide the spectra and search for peaks. |
scales |
The parameter of peakDetectionCWT function of MassSpecWavelet package, look it up in the original function. |
baselineThresh |
All peaks with intensities below the thresholds are excluded. Either:
|
SNR.Th |
The parameter of peakDetectionCWT function of MassSpecWavelet package, look it up in the original function. If you set -1, the function will itself re-compute this value. |
range_without_peaks |
A numeric vector of length two with a region without peaks, only used when |
fit_lorentzians |
If |
verbose |
Logical ( |
Optionally afterwards, the peak apex and the peak inflection points are used to efficiently adjust a lorentzian to each peak, and compute the peak area and width, as well as the error of the fit. These peak features can be used afterwards to reject false detections.
A data frame with the NMRExperiment, the sample index, the position in ppm and index and the peak intensity
nmr_align for peak alignment with the detected peak table
Peak_detection
Other peak detection functions:
Pipelines
,
nmr_baseline_threshold()
,
nmr_detect_peaks_plot()
,
nmr_detect_peaks_plot_overview()
,
nmr_detect_peaks_tune_snr()
,
nmr_identify_regions_blood()
,
nmr_identify_regions_cell()
,
nmr_identify_regions_urine()
,
nmr_integrate_regions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.