pyms.TopHat

Top-hat baseline corrector.

Functions:

tophat(ic[, struct])

Top-hat baseline correction on Ion Chromatogram.

tophat_im(im[, struct])

Top-hat baseline correction on Intensity Matrix.

tophat(ic, struct=None)[source]

Top-hat baseline correction on Ion Chromatogram.

Parameters
  • ic (IonChromatogram) – The input ion chromatogram.

  • struct (Union[int, str, None]) – Top-hat structural element as time string. The structural element needs to be larger than the features one wants to retain in the spectrum after the top-hat transform. Default None.

Return type

IonChromatogram

Returns

Top-hat corrected ion chromatogram.

Authors

Woon Wai Keen, Vladimir Likic, Dominic Davis-Foster (type assertions)

tophat_im(im, struct=None)[source]

Top-hat baseline correction on Intensity Matrix.

Wraps around the TopHat function above.

Parameters
  • im (BaseIntensityMatrix) – The input Intensity Matrix.

  • struct (Optional[str]) – Top-hat structural element as time string. The structural element needs to be larger than the features one wants to retain in the spectrum after the top-hat transform. Default None.

Return type

BaseIntensityMatrix

Returns

Top-hat corrected IntensityMatrix Matrix

Author

Sean O’Callaghan