TargetedExperiment_Interpretation#
- class pyopenms.TargetedExperiment_Interpretation#
Bases:
CVTermListInterfaceProduct ion interpretation
Stores information about the ion type, ordinal, and rank for MS product ions. CVTermListInterface
- __init__() None#
- __init__(arg: pyopenms.TargetedExperiment_Interpretation, /) 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()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}
hasCVTerm(accession)Checks whether the term has a value
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)replaceCVTerms(cv_terms)setCVTerms(terms)Sets the CV terms from a vector
setMetaValue(name, value)Sets the DataValue corresponding to a name
setMetaValues(values)Sets multiple meta values from a dictionary of {name: value}
Attributes
- 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]]#
- 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}
- hasCVTerm(accession: str) bool#
Checks whether the term has a value
- property iontype: pyopenms.Residue.ResidueType#
(self) -> OpenMS::Residue::ResidueType
- 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
- property ordinal: int#
- property rank: int#
- removeMetaValue(name: str) None#
- removeMetaValue(index: int) None
Removes the DataValue corresponding to name if it exists
- replaceCVTerm(cv_term: pyopenms.CVTerm) None#
- replaceCVTerms(cv_terms: dict[str, collections.abc.Sequence[pyopenms.CVTerm]]) None#
- 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
- 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}