Module documentation here
Automatic Area calculation
Calculate the area under the peak curve. To calculate the peak limits is used an arbitrary line that will cross the spectrum in each peak. The intersecting line will be by default the estimated noise level threshold for the spectrum. Eg the standard deviation of all the peaks height. The intersecting points will be the peak’s limits.
The area is calculated using the composite trapezoidal rule.
- ccpn.pipes.lib.Scale1Dspectra.resetSpectraScale(spectra, value=1)¶
- ccpn.pipes.lib.Scale1Dspectra.scaleSpectraByRegion(spectra, limits, engine='mean', resetScale=True)¶
Scale 1D spectra intensities by a region of interest. eg a region between a peak, so that the spectra are scaled relative to that peak. engine = ‘mean’: heights will be the median of the two
‘min’ : heights will be relative to the lower ‘max’ : heights will be relative to the highest
resetScale: always start with a scale of 1 (original spectrum data) limits = list of 1d regions in ppm, eg [1,3]
- ccpn.pipes.lib.Scale1Dspectra.scaleSpectraByStd(spectra, pts=200)¶
Scale 1D spectra intensities by the mean of stds for the first selected pts so that all spectra have (roughly the same baseline noise)