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 :

data : ndarray

NMR data.

thres : float

Threshold value for minimum peak height

msep : tuple

Tuple of minimum peak seperations along each axis.

find_segs : bool, optional

True to find segments and return a list of slices which select that segment. False performs no segmentation discovery.

Returns :

locations : list

List of peak locations

seg_slices : list, optional

List of slices which extract a region around each peak. Only returned when find_segs is True.

Previous topic

nmrglue.analysis.peakpick.extract_1d

Next topic

nmrglue.analysis.peakpick.find_all_nthres

This Page