Product#
- class pyopenms.Product#
Bases:
CVTermListThis class describes the product isolation window for special scan types, such as MRM
- __init__() None#
- __init__(arg: pyopenms.Product, /) None
Methods
__init__()addCVTerm(term)Adds a CV term
Removes all meta values
consumeCVTerms(cv_term_map)Merges the given map into the member map, no duplicate checking
empty()Returns a copy of the CV terms, keyed by CV accession
Returns the lower offset from the target m/z
Returns the upper offset from the target m/z
getKeys(keys)Overloaded function.
getMZ()Returns the target m/z
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
hasCVTerm(accession)Returns if the MetaInfo is empty
Returns a reference to the MetaInfoRegistry
metaValueExists(name)Returns whether an entry with the given name exists
removeMetaValue(name)Removes the DataValue corresponding to name if it exists
replaceCVTerm(cv_term)Replaces the specified CV term
replaceCVTerms(cv_term_map)setCVTerms(terms)Sets the CV terms from a vector
Sets the lower offset from the target m/z
Sets the upper offset from the target m/z
setMZ(mz)Sets the target m/z
setMetaValue(name, value)Sets the DataValue corresponding to a name
- addCVTerm(term: pyopenms.CVTerm) None#
Adds a CV term
- clearMetaInfo() None#
Removes all meta values
- consumeCVTerms(cv_term_map: dict[str, collections.abc.Sequence[pyopenms.CVTerm]]) None#
Merges the given map into the member map, no duplicate checking
- empty() bool#
- getCVTerms() dict[str, list[pyopenms.CVTerm]]#
Returns a copy of the CV terms, keyed by CV accession
- getIsolationWindowLowerOffset() float#
Returns the lower offset from the target m/z
- getIsolationWindowUpperOffset() float#
Returns the upper offset from the target m/z
- getKeys(keys: list) None#
- getKeys() list
Overloaded function.
getKeys(keys: list) -> None
Fills the given list with all meta value keys
getKeys() -> list
Returns all meta value keys as a list
- getMZ() float#
Returns the target m/z
- getMetaValue(name: str) None | int | float | str | bytes | list[str] | list[int] | list[float]#
Returns the value corresponding to a string, or DataValue::EMPTY if not found
- hasCVTerm(accession: str) bool#
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- static metaRegistry() pyopenms.MetaInfoRegistry#
Returns a reference to the MetaInfoRegistry
- metaValueExists(name: str) bool#
Returns whether an entry with the given name exists
- removeMetaValue(name: str) None#
Removes the DataValue corresponding to name if it exists
- replaceCVTerm(cv_term: pyopenms.CVTerm) None#
Replaces the specified CV term
- replaceCVTerms(cv_term_map: dict[str, collections.abc.Sequence[pyopenms.CVTerm]]) None#
- setCVTerms(terms: collections.abc.Sequence[pyopenms.CVTerm]) None#
Sets the CV terms from a vector
- setIsolationWindowLowerOffset(bound: float) None#
Sets the lower offset from the target m/z
- setIsolationWindowUpperOffset(bound: float) None#
Sets the upper offset from the target m/z
- setMZ(mz: float) None#
Sets the target m/z
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
Sets the DataValue corresponding to a name