This function detects the peaks, that have a minimum intensity of baseline_tresh
, and performs alignment of those peaks.
detect_nmr_peaks_from_dataset(dataset, baseline_tresh=50000,
ap.method="own", ap.samp.classes=1, ap.step=0.03)
list representing the dataset from a metabolomics experiment.
Minimum intensity value that peaks must have. Peaks with intensity smaller than baseline_tresh will not be considered as detected peaks.
Method to used in the alignment of peaks, after they are identified. Can be "own" or "metaboanalyst", which the later is for using the peak alignment used in MetaboAnalyst software.
the metadata's variable to be used in the MetaboAnalyst method.
step value for the peak alignment process
Returns a dataset with the peaks detected and aligned.