MassAnalyzer#
- class pyopenms.MassAnalyzer#
Bases:
MetaInfoInterfaceDescription of a mass analyzer (part of a MS Instrument)
- __init__() None#
- __init__(arg: pyopenms.MassAnalyzer, /) None
Methods
__init__()analyzerTypeToString(type)Convert AnalyzerType enum to string
Removes all meta values
Returns the mass accuracy i.e. how much the theoretical mass may differ from the measured mass (in ppm).
Returns all analyzer type names known to OpenMS
Returns all reflectron state names known to OpenMS
Returns all resolution method names known to OpenMS
Returns all resolution type names known to OpenMS
Returns all scan direction names known to OpenMS
Returns all scan law names known to OpenMS
Returns the final MS exponent
Returns the isolation width i.e. in which m/z range the precursor ion is selected for MS to the n (in m/z).
getKeys(keys)Fills the given list with all meta value keys
Returns the strength of the magnetic field (in T)
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}
getOrder()Returns the position of this part in the whole Instrument
Returns the reflectron state (for TOF)
Returns the resolution.
Returns the method used for determination of the resolution
Returns the resolution type
Returns the direction of scanning
Returns the scan law
Returns the scan rate (in s)
Returns the scan time for a single scan (in s)
Returns the path length for a TOF mass analyzer (in meter)
getType()Returns the analyzer type
Returns if the MetaInfo is empty
Returns a reference to the MetaInfoRegistry
metaValueExists(name)Returns whether an entry with the given name exists
reflectronStateToString(state)Convert ReflectronState enum to string
removeMetaValue(name)Removes the DataValue corresponding to name if it exists
resolutionMethodToString(method)Convert ResolutionMethod enum to string
resolutionTypeToString(type)Convert ResolutionType enum to string
scanDirectionToString(direction)Convert ScanDirection enum to string
scanLawToString(law)Convert ScanLaw enum to string
setAccuracy(accuracy)Sets the accuracy i.e. how much the theoretical mass may differ from the measured mass (in ppm).
setFinalMSExponent(final_MS_exponent)Sets the final MS exponent
setIsolationWidth(isolation_width)Sets the isolation width i.e. in which m/z range the precursor ion is selected for MS to the n (in m/z).
setMagneticFieldStrength(magnetic_field_strength)Sets the strength of the magnetic field (in T)
setMetaValue(name, value)Sets the DataValue corresponding to a name
setMetaValues(values)Sets multiple meta values from a dictionary of {name: value}
setOrder(order)Sets the order
setReflectronState(reflecton_state)Sets the reflectron state (for TOF)
setResolution(resolution)Sets the resolution
setResolutionMethod(resolution_method)Sets the method used for determination of the resolution
setResolutionType(resolution_type)Sets the resolution type
setScanDirection(scan_direction)Sets the direction of scanning
setScanLaw(scan_law)Sets the scan law
setScanRate(scan_rate)Sets the scan rate (in s)
setScanTime(scan_time)Sets the scan time for a single scan (in s)
setTOFTotalPathLength(TOF_total_path_length)Sets the path length for a TOF mass analyzer (in meter)
setType(type)Sets the analyzer type
toAnalyzerType(name)Convert string to AnalyzerType enum
toReflectronState(name)Convert string to ReflectronState enum
toResolutionMethod(name)Convert string to ResolutionMethod enum
toResolutionType(name)Convert string to ResolutionType enum
toScanDirection(name)Convert string to ScanDirection enum
toScanLaw(name)Convert string to ScanLaw enum
- class AnalyzerType(*values)#
Bases:
Enum- ANALYZERNULL = 0#
- AXIALEJECTIONLINEARIONTRAP = 4#
- CYCLOTRON = 12#
- ESA = 9#
- FOURIERTRANSFORM = 7#
- IONSTORAGE = 8#
- IT = 10#
- LIT = 14#
- ORBITRAP = 13#
- PAULIONTRAP = 2#
- QUADRUPOLE = 1#
- RADIALEJECTIONLINEARIONTRAP = 3#
- SECTOR = 6#
- SIZE_OF_ANALYZERTYPE = 15#
- SWIFT = 11#
- TOF = 5#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class ReflectronState(*values)#
Bases:
Enum- NONE = 3#
- OFF = 2#
- ON = 1#
- REFLSTATENULL = 0#
- SIZE_OF_REFLECTRONSTATE = 4#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class ResolutionMethod(*values)#
Bases:
Enum- BASELINE = 3#
- FWHM = 1#
- RESMETHNULL = 0#
- SIZE_OF_RESOLUTIONMETHOD = 4#
- TENPERCENTVALLEY = 2#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class ResolutionType(*values)#
Bases:
Enum- CONSTANT = 1#
- PROPORTIONAL = 2#
- RESTYPENULL = 0#
- SIZE_OF_RESOLUTIONTYPE = 3#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class ScanDirection(*values)#
Bases:
Enum- DOWN = 2#
- SCANDIRNULL = 0#
- SIZE_OF_SCANDIRECTION = 3#
- UP = 1#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- class ScanLaw(*values)#
Bases:
Enum- EXPONENTIAL = 1#
- LINEAR = 2#
- QUADRATIC = 3#
- SCANLAWNULL = 0#
- SIZE_OF_SCANLAW = 4#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- static analyzerTypeToString(type: pyopenms.MassAnalyzer.AnalyzerType) str#
Convert AnalyzerType enum to string
- clearMetaInfo() None#
Removes all meta values
- getAccuracy() float#
Returns the mass accuracy i.e. how much the theoretical mass may differ from the measured mass (in ppm)
- static getAllNamesOfAnalyzerType() list[str]#
Returns all analyzer type names known to OpenMS
- static getAllNamesOfReflectronState() list[str]#
Returns all reflectron state names known to OpenMS
- static getAllNamesOfResolutionMethod() list[str]#
Returns all resolution method names known to OpenMS
- static getAllNamesOfResolutionType() list[str]#
Returns all resolution type names known to OpenMS
- static getAllNamesOfScanDirection() list[str]#
Returns all scan direction names known to OpenMS
- static getAllNamesOfScanLaw() list[str]#
Returns all scan law names known to OpenMS
- getFinalMSExponent() int#
Returns the final MS exponent
- getIsolationWidth() float#
Returns the isolation width i.e. in which m/z range the precursor ion is selected for MS to the n (in m/z)
- getKeys(keys: list) None#
Fills the given list with all meta value keys
- getMagneticFieldStrength() float#
Returns the strength of the magnetic field (in T)
- 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}
- getOrder() int#
Returns the position of this part in the whole Instrument
- getReflectronState() pyopenms.MassAnalyzer.ReflectronState#
Returns the reflectron state (for TOF)
- getResolution() float#
Returns the resolution. The maximum m/z value at which two peaks can be resolved, according to one of the standard measures
- getResolutionMethod() pyopenms.MassAnalyzer.ResolutionMethod#
Returns the method used for determination of the resolution
- getResolutionType() pyopenms.MassAnalyzer.ResolutionType#
Returns the resolution type
- getScanDirection() pyopenms.MassAnalyzer.ScanDirection#
Returns the direction of scanning
- getScanLaw() pyopenms.MassAnalyzer.ScanLaw#
Returns the scan law
- getScanRate() float#
Returns the scan rate (in s)
- getScanTime() float#
Returns the scan time for a single scan (in s)
- getTOFTotalPathLength() float#
Returns the path length for a TOF mass analyzer (in meter)
- getType() pyopenms.MassAnalyzer.AnalyzerType#
Returns the analyzer type
- 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 reflectronStateToString(state: pyopenms.MassAnalyzer.ReflectronState) str#
Convert ReflectronState enum to string
- removeMetaValue(name: str) None#
- removeMetaValue(index: int) None
Removes the DataValue corresponding to name if it exists
- static resolutionMethodToString(method: pyopenms.MassAnalyzer.ResolutionMethod) str#
Convert ResolutionMethod enum to string
- static resolutionTypeToString(type: pyopenms.MassAnalyzer.ResolutionType) str#
Convert ResolutionType enum to string
- static scanDirectionToString(direction: pyopenms.MassAnalyzer.ScanDirection) str#
Convert ScanDirection enum to string
- static scanLawToString(law: pyopenms.MassAnalyzer.ScanLaw) str#
Convert ScanLaw enum to string
- setAccuracy(accuracy: float) None#
Sets the accuracy i.e. how much the theoretical mass may differ from the measured mass (in ppm)
- setFinalMSExponent(final_MS_exponent: int) None#
Sets the final MS exponent
- setIsolationWidth(isolation_width: float) None#
Sets the isolation width i.e. in which m/z range the precursor ion is selected for MS to the n (in m/z)
- setMagneticFieldStrength(magnetic_field_strength: float) None#
Sets the strength of the magnetic field (in T)
- 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}
- setOrder(order: int) None#
Sets the order
- setReflectronState(reflecton_state: pyopenms.MassAnalyzer.ReflectronState) None#
Sets the reflectron state (for TOF)
- setResolution(resolution: float) None#
Sets the resolution
- setResolutionMethod(resolution_method: pyopenms.MassAnalyzer.ResolutionMethod) None#
Sets the method used for determination of the resolution
- setResolutionType(resolution_type: pyopenms.MassAnalyzer.ResolutionType) None#
Sets the resolution type
- setScanDirection(scan_direction: pyopenms.MassAnalyzer.ScanDirection) None#
Sets the direction of scanning
- setScanLaw(scan_law: pyopenms.MassAnalyzer.ScanLaw) None#
Sets the scan law
- setScanRate(scan_rate: float) None#
Sets the scan rate (in s)
- setScanTime(scan_time: float) None#
Sets the scan time for a single scan (in s)
- setTOFTotalPathLength(TOF_total_path_length: float) None#
Sets the path length for a TOF mass analyzer (in meter)
- setType(type: pyopenms.MassAnalyzer.AnalyzerType) None#
Sets the analyzer type
- static toAnalyzerType(name: str) pyopenms.MassAnalyzer.AnalyzerType#
Convert string to AnalyzerType enum
- static toReflectronState(name: str) pyopenms.MassAnalyzer.ReflectronState#
Convert string to ReflectronState enum
- static toResolutionMethod(name: str) pyopenms.MassAnalyzer.ResolutionMethod#
Convert string to ResolutionMethod enum
- static toResolutionType(name: str) pyopenms.MassAnalyzer.ResolutionType#
Convert string to ResolutionType enum
- static toScanDirection(name: str) pyopenms.MassAnalyzer.ScanDirection#
Convert string to ScanDirection enum
- static toScanLaw(name: str) pyopenms.MassAnalyzer.ScanLaw#
Convert string to ScanLaw enum