DataProcessing#
- class pyopenms.DataProcessing#
Bases:
MetaInfoInterfaceDescription of the applied preprocessing steps
- __init__() None#
- __init__(arg: pyopenms.DataProcessing, /) None
Methods
__init__()Removes all meta values
Returns all processing action names known to OpenMS
getKeys(keys)Fills the given list with all meta value keys
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
Returns all meta values as a dictionary of {name: value}
Returns if the MetaInfo is empty
Returns a reference to the MetaInfoRegistry
metaValueExists(name)Returns whether an entry with the given name exists
processingActionToString(action)Convert a ProcessingAction enum to String.
removeMetaValue(name)Removes the DataValue corresponding to name if it exists
setCompletionTime(completion_time)setMetaValue(name, value)Sets the DataValue corresponding to a name
setMetaValues(values)Sets multiple meta values from a dictionary of {name: value}
setProcessingActions(actions)setSoftware(software)toProcessingAction(name)Convert a string to ProcessingAction enum.
Attributes
- ALIGNMENT = 8#
- BASELINE_REDUCTION = 6#
- CALIBRATION = 9#
- CHARGE_CALCULATION = 4#
- CHARGE_DECONVOLUTION = 1#
- CONVERSION_DTA = 19#
- CONVERSION_MZDATA = 16#
- CONVERSION_MZML = 17#
- CONVERSION_MZXML = 18#
- DATA_PROCESSING = 0#
- DEISOTOPING = 2#
- FEATURE_GROUPING = 13#
- FILTERING = 11#
- FORMAT_CONVERSION = 15#
- IDENTIFICATION = 20#
- IDENTIFICATION_MAPPING = 14#
- ION_MOBILITY_BINNING = 21#
- NORMALIZATION = 10#
- PEAK_PICKING = 7#
- PRECURSOR_RECALCULATION = 5#
- class ProcessingAction(*values)#
Bases:
Enum- ALIGNMENT = 8#
- BASELINE_REDUCTION = 6#
- CALIBRATION = 9#
- CHARGE_CALCULATION = 4#
- CHARGE_DECONVOLUTION = 1#
- CONVERSION_DTA = 19#
- CONVERSION_MZDATA = 16#
- CONVERSION_MZML = 17#
- CONVERSION_MZXML = 18#
- DATA_PROCESSING = 0#
- DEISOTOPING = 2#
- FEATURE_GROUPING = 13#
- FILTERING = 11#
- FORMAT_CONVERSION = 15#
- IDENTIFICATION = 20#
- IDENTIFICATION_MAPPING = 14#
- ION_MOBILITY_BINNING = 21#
- NORMALIZATION = 10#
- PEAK_PICKING = 7#
- PRECURSOR_RECALCULATION = 5#
- QUANTITATION = 12#
- SIZE_OF_PROCESSINGACTION = 22#
- SMOOTHING = 3#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- QUANTITATION = 12#
- SIZE_OF_PROCESSINGACTION = 22#
- SMOOTHING = 3#
- clearMetaInfo() None#
Removes all meta values
- static getAllNamesOfProcessingAction() list[str]#
Returns all processing action names known to OpenMS
- getCompletionTime() pyopenms.DateTime#
- getKeys(keys: list) None#
Fills the given list with all meta value keys
- getMetaValue(name: str) None | int | float | str | bytes | list[str] | list[int] | list[float]#
- getMetaValue(name: str, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None | int | float | str | bytes | list[str] | list[int] | list[float]
- getMetaValue(index: int) None | int | float | str | bytes | list[str] | list[int] | list[float]
- getMetaValue(index: int, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None | int | float | str | bytes | list[str] | list[int] | list[float]
Returns the value corresponding to a string, or DataValue::EMPTY if not found
- getMetaValues() dict#
Returns all meta values as a dictionary of {name: value}
- getProcessingActions() set[pyopenms.DataProcessing.ProcessingAction]#
- getSoftware() pyopenms.Software#
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- static metaRegistry() pyopenms.MetaInfoRegistry#
Returns a reference to the MetaInfoRegistry
- metaValueExists(name: str) bool#
- metaValueExists(index: int) bool
Returns whether an entry with the given name exists
- static processingActionToString(action: pyopenms.DataProcessing.ProcessingAction) str#
Convert a ProcessingAction enum to String. Throws Exception::InvalidValue if action is SIZE_OF_PROCESSINGACTION
- removeMetaValue(name: str) None#
- removeMetaValue(index: int) None
Removes the DataValue corresponding to name if it exists
- setCompletionTime(completion_time: pyopenms.DateTime) None#
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
- setMetaValue(index: int, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None
Sets the DataValue corresponding to a name
- setMetaValues(values: dict) None#
Sets multiple meta values from a dictionary of {name: value}
- setProcessingActions(actions: collections.abc.Set[pyopenms.DataProcessing.ProcessingAction]) None#
- setSoftware(software: pyopenms.Software) None#
- static toProcessingAction(name: str) pyopenms.DataProcessing.ProcessingAction#
Convert a string to ProcessingAction enum. Throws Exception::InvalidValue if name is not found