MzMLSpectrumDecoder

class pyopenms.MzMLSpectrumDecoder

Bases: object

Cython implementation of _MzMLSpectrumDecoder

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1MzMLSpectrumDecoder.html

It uses xercesc to parse a string containing either a exactly one mzML spectrum or chromatogram (from <chromatogram> to </chromatogram> or <spectrum> to </spectrum> tag). It returns the data contained in the binaryDataArray for Intensity / mass-to-charge or Intensity / time

__init__()
  • Cython signature: void MzMLSpectrumDecoder()

  • Cython signature: void MzMLSpectrumDecoder(MzMLSpectrumDecoder &)

Methods

__init__

  • Cython signature: void MzMLSpectrumDecoder()

domParseChromatogram

Cython signature: void domParseChromatogram(String in_, shared_ptr[_Interfaces_Chromatogram] & cptr)

domParseSpectrum

Cython signature: void domParseSpectrum(String in_, shared_ptr[_Interfaces_Spectrum] & cptr)

setSkipXMLChecks

Cython signature: void setSkipXMLChecks(bool only) Whether to skip some XML checks (e.g.

domParseChromatogram()

Cython signature: void domParseChromatogram(String in_, shared_ptr[_Interfaces_Chromatogram] & cptr)

Extracts data from the input string which is expected to contain exactly one <chromatogram> tag (from <chromatogram> to </chromatogram>). This function will extract the contained binaryDataArray and provide the result as Chromatogram —– :param in: Input string containing the raw XML :param cptr: Resulting chromatogram

domParseSpectrum()

Cython signature: void domParseSpectrum(String in_, shared_ptr[_Interfaces_Spectrum] & cptr)

Extracts data from the input string which is expected to contain exactly one <spectrum> tag (from <spectrum> to </spectrum>). This function will extract the contained binaryDataArray and provide the result as Spectrum —– :param in: Input string containing the raw XML :param cptr: Resulting spectrum

setSkipXMLChecks()

Cython signature: void setSkipXMLChecks(bool only) Whether to skip some XML checks (e.g. removing whitespace inside base64 arrays) and be fast instead