nmrglue.analysis.peakpick.find_all_thres¶
-
nmrglue.analysis.peakpick.
find_all_thres
(data, thres, msep, find_segs=False)[source]¶ Peak pick a spectrum using a threshhold-minimum distance algorithm.
Find peaks (local maxima) in a arbitrary dimensional NMR spectra above a set threshold with a minimal distance between peaks. When the spectrum is small and multiple copies can fit into RAM use the _fast version of this function. Segments are found by finding the first point in each direction along each dimension which is below the threshold.
- Parameters
- datandarray
NMR data.
- thresfloat
Threshold value for minimum peak height
- mseptuple
Tuple of minimum peak seperations along each axis.
- find_segsbool, optional
True to find segments and return a list of slices which select that segment. False performs no segmentation discovery.
- Returns
- locationslist
List of peak locations
- seg_sliceslist, optional
List of slices which extract a region around each peak. Only returned when find_segs is True.