PeakFileOptions#

class pyopenms.PeakFileOptions#

Bases: object

Options for loading files containing peak data

__init__() → None#
__init__(arg: pyopenms.PeakFileOptions, /) → None

Methods

__init__()

addMSLevel(level)

Adds a desired MS level for peaks to load

clearMSLevels()

Clears the MS levels

containsMSLevel(level)

Returns true, if MS level level has been set

getCompression()

Returns true, if data should be compressed when writing

getFillData()

Returns whether to fill the actual data into the container (spectrum/chromatogram)

getForceMQCompatability()

[mzXML only!]Returns Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)

getForceTPPCompatability()

[mzML only!]Returns Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z

getIMRange()

Returns the ion mobility range

getIntensity32Bit()

Returns true, if intensity data should be stored with 32bit precision

getIntensityRange()

Returns the intensity range

getMSLevels()

Returns the set MS levels

getMZRange()

Returns the MZ range

getMaxDataPoolSize()

Returns maximal size of the data pool

getMetadataOnly()

Returns whether or not to load only meta data

getMz32Bit()

Returns true, if mz-data and rt-data should be stored with 32bit precision

getNumpressConfigurationFloatDataArray()

Returns numpress configuration options for float data arrays

getNumpressConfigurationIntensity()

Returns numpress configuration options for intensity dimension

getNumpressConfigurationMassTime()

Returns numpress configuration options for m/z or rt dimension

getPrecursorMZRange()

Returns the precursor m/z range

getRTRange()

Returns the RT range

getSkipXMLChecks()

Returns whether to skip some XML checks and be fast instead

getSortChromatogramsByRT()

Returns whether or not peaks in chromatograms should be sorted

getSortSpectraByMZ()

Returns whether or not peaks in spectra should be sorted

getWriteIndex()

Returns whether to write an index at the end of the file (e.g. indexedmzML file format).

getWriteSupplementalData()

Returns whether or not to write supplemental peak data in MzData files

getZstdCompression()

Returns true, if binary data should be compressed with Zstandard (zstd) when writing

hasFilters()

hasIMRange()

Returns true if an ion mobility range has been set

hasIntensityRange()

Returns true if an intensity range has been set

hasMSLevels()

Returns true, if MS levels have been set

hasMZRange()

Returns true if an MZ range has been set

hasPrecursorMZRange()

Returns true if a precursor m/z range has been set

hasRTRange()

Returns true if an RT range has been set

setCompression(compress)

Sets if data should be compressed when writing

setFillData(only)

Sets whether to fill the actual data into the container (spectrum/chromatogram)

setForceMQCompatability(forceMQ)

[mzXML only!]Returns Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)

setForceTPPCompatability(forceTPP)

[ mzML only!]Returns Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z

setIMRange(range)

Restricts the ion mobility of the data to load (in the unit of the data, e.g. 1/K0 for Bruker timsTOF): peaks outside it are removed from spectra with an ion mobility per peak, spectra with a single ion mobility outside it are skipped.

setIntensity32Bit(int_32_bit)

Sets if intensity data should be stored with 32bit or 64bit precision

setIntensityRange(range)

Restricts the range of intensity values for peaks to load

setMSLevels(levels)

Sets the desired MS levels for peaks to load

setMZRange(range)

Restricts the range of MZ values for peaks to load

setMaxDataPoolSize(size)

Sets maximal size of the data pool

setMetadataOnly(only)

Sets whether or not to load only meta data

setMz32Bit(mz_32_bit)

Sets if mz-data and rt-data should be stored with 32bit or 64bit precision

setNumpressConfigurationFloatDataArray(config)

Sets numpress configuration options for float data arrays

setNumpressConfigurationIntensity(config)

Sets numpress configuration options for intensity dimension

setNumpressConfigurationMassTime(config)

Sets numpress configuration options for m/z or rt dimension

setPrecursorMZRange(range)

Restricts the range of precursor m/z values for MS2+ spectra to load

setRTRange(range)

Restricts the range of RT values for peaks to load

setSkipXMLChecks(only)

Sets whether to skip some XML checks and be fast instead

setSortChromatogramsByRT(sort)

Sets whether or not to sort peaks in chromatograms

setSortSpectraByMZ(sort)

Sets whether or not to sort peaks in spectra

setWriteIndex(write_index)

Sets whether to write an index at the end of the file (e.g. indexedmzML file format).

setWriteSupplementalData(write)

Sets whether or not to write supplemental peak data in MzData files

setZstdCompression(zstd)

[mzML only] Sets if binary data should be compressed with Zstandard (zstd) instead of zlib when writing

addMSLevel(level: int) → None#

Adds a desired MS level for peaks to load

clearMSLevels() → None#

Clears the MS levels

containsMSLevel(level: int) → bool#

Returns true, if MS level level has been set

getCompression() → bool#

Returns true, if data should be compressed when writing

getFillData() → bool#

Returns whether to fill the actual data into the container (spectrum/chromatogram)

getForceMQCompatability() → bool#

[mzXML only!]Returns Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)

getForceTPPCompatability() → bool#

[mzML only!]Returns Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z

getIMRange() → pyopenms.DRange1#

Returns the ion mobility range

getIntensity32Bit() → bool#

Returns true, if intensity data should be stored with 32bit precision

getIntensityRange() → pyopenms.DRange1#

Returns the intensity range

getMSLevels() → list[int]#

Returns the set MS levels

getMZRange() → pyopenms.DRange1#

Returns the MZ range

getMaxDataPoolSize() → int#

Returns maximal size of the data pool

getMetadataOnly() → bool#

Returns whether or not to load only meta data

getMz32Bit() → bool#

Returns true, if mz-data and rt-data should be stored with 32bit precision

getNumpressConfigurationFloatDataArray() → pyopenms.NumpressConfig#

Returns numpress configuration options for float data arrays

getNumpressConfigurationIntensity() → pyopenms.NumpressConfig#

Returns numpress configuration options for intensity dimension

getNumpressConfigurationMassTime() → pyopenms.NumpressConfig#

Returns numpress configuration options for m/z or rt dimension

getPrecursorMZRange() → pyopenms.DRange1#

Returns the precursor m/z range

getRTRange() → pyopenms.DRange1#

Returns the RT range

getSkipXMLChecks() → bool#

Returns whether to skip some XML checks and be fast instead

getSortChromatogramsByRT() → bool#

Returns whether or not peaks in chromatograms should be sorted

getSortSpectraByMZ() → bool#

Returns whether or not peaks in spectra should be sorted

getWriteIndex() → bool#

Returns whether to write an index at the end of the file (e.g. indexedmzML file format)

getWriteSupplementalData() → bool#

Returns whether or not to write supplemental peak data in MzData files

getZstdCompression() → bool#

Returns true, if binary data should be compressed with Zstandard (zstd) when writing

hasFilters() → bool#
hasIMRange() → bool#

Returns true if an ion mobility range has been set

hasIntensityRange() → bool#

Returns true if an intensity range has been set

hasMSLevels() → bool#

Returns true, if MS levels have been set

hasMZRange() → bool#

Returns true if an MZ range has been set

hasPrecursorMZRange() → bool#

Returns true if a precursor m/z range has been set

hasRTRange() → bool#

Returns true if an RT range has been set

setCompression(compress: bool) → None#

Sets if data should be compressed when writing

setFillData(only: bool) → None#

Sets whether to fill the actual data into the container (spectrum/chromatogram)

setForceMQCompatability(forceMQ: bool) → None#

[mzXML only!]Returns Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)

setForceTPPCompatability(forceTPP: bool) → None#

[ mzML only!]Returns Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z

setIMRange(range: pyopenms.DRange1) → None#

Restricts the ion mobility of the data to load (in the unit of the data, e.g. 1/K0 for Bruker timsTOF): peaks outside it are removed from spectra with an ion mobility per peak, spectra with a single ion mobility outside it are skipped. Applied by FileHandler.

setIntensity32Bit(int_32_bit: bool) → None#

Sets if intensity data should be stored with 32bit or 64bit precision

setIntensityRange(range: pyopenms.DRange1) → None#

Restricts the range of intensity values for peaks to load

setMSLevels(levels: collections.abc.Sequence[int]) → None#

Sets the desired MS levels for peaks to load

setMZRange(range: pyopenms.DRange1) → None#

Restricts the range of MZ values for peaks to load

setMaxDataPoolSize(size: int) → None#

Sets maximal size of the data pool

setMetadataOnly(only: bool) → None#

Sets whether or not to load only meta data

setMz32Bit(mz_32_bit: bool) → None#

Sets if mz-data and rt-data should be stored with 32bit or 64bit precision

setNumpressConfigurationFloatDataArray(config: pyopenms.NumpressConfig) → None#

Sets numpress configuration options for float data arrays

setNumpressConfigurationIntensity(config: pyopenms.NumpressConfig) → None#

Sets numpress configuration options for intensity dimension

setNumpressConfigurationMassTime(config: pyopenms.NumpressConfig) → None#

Sets numpress configuration options for m/z or rt dimension

setPrecursorMZRange(range: pyopenms.DRange1) → None#

Restricts the range of precursor m/z values for MS2+ spectra to load

setRTRange(range: pyopenms.DRange1) → None#

Restricts the range of RT values for peaks to load

setSkipXMLChecks(only: bool) → None#

Sets whether to skip some XML checks and be fast instead

setSortChromatogramsByRT(sort: bool) → None#

Sets whether or not to sort peaks in chromatograms

setSortSpectraByMZ(sort: bool) → None#

Sets whether or not to sort peaks in spectra

setWriteIndex(write_index: bool) → None#

Sets whether to write an index at the end of the file (e.g. indexedmzML file format)

setWriteSupplementalData(write: bool) → None#

Sets whether or not to write supplemental peak data in MzData files

setZstdCompression(zstd: bool) → None#

[mzML only] Sets if binary data should be compressed with Zstandard (zstd) instead of zlib when writing