MzMLSpectrumDecoder
- class pyopenms.MzMLSpectrumDecoder
Bases:
objectCython 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
Cython signature: void MzMLSpectrumDecoder()
Cython signature: void domParseChromatogram(String in_, shared_ptr[_Interfaces_Chromatogram] & cptr)
Cython signature: void domParseSpectrum(String in_, shared_ptr[_Interfaces_Spectrum] & cptr)
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