ReactionMonitoringTransition#
- class pyopenms.ReactionMonitoringTransition#
Bases:
CVTermListThis class stores a SRM/MRM transition
This class is capable of representing a <Transition> tag in a TraML document completely and contains all associated information
The default values for precursor m/z is 0.0 which indicates that it is uninitialized
- __init__() None#
- __init__(arg: pyopenms.ReactionMonitoringTransition, /) None
Methods
__init__()addCVTerm(term)Adds a CV term
addIntermediateProduct(product)addPrecursorCVTerm(cv_term)Adds precursor CV Term
addPredictionTerm(prediction)Adds prediction term
addProductCVTerm(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 type of transition (target or decoy)
getKeys(keys)Overloaded function.
Returns the library intensity (ion count or normalized ion count from a spectral library)
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
getName()Obtains the list of CV Terms for the precursor
Returns the precursor mz (Q1 value)
Returns the Prediction object
Returns the product ion
Returns the charge state of the product
hasCVTerm(accession)Returns true if precursor CV Terms exist (means it is safe to call getPrecursorCVTermList)
Returns true if a Prediction object exists (means it is safe to call getPrediction)
Returns if the MetaInfo is empty
Returns true if charge state of product is already set
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
setCompoundRef(compound_ref)Sets the type of transition (target or decoy)
setIntermediateProducts(products)setLibraryIntensity(intensity)Sets the library intensity (ion count or normalized ion count from a spectral library)
setMetaValue(name, value)Sets the DataValue corresponding to a name
setName(name)setNativeID(name)setPeptideRef(peptide_ref)setPrecursorCVTermList(list)Sets a list of precursor CV Terms
setPrecursorMZ(mz)Sets the precursor mz (Q1 value)
setPrediction(prediction)Sets the Prediction object
setProduct(product)Sets the product ion
setProductMZ(mz)setRetentionTime(rt)Attributes
- DECOY = 2#
- class DecoyTransitionType(*values)#
Bases:
EnumWhether a transition is target or decoy
- DECOY = 2#
- TARGET = 1#
- UNKNOWN = 0#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- TARGET = 1#
- UNKNOWN = 0#
- addCVTerm(term: pyopenms.CVTerm) None#
Adds a CV term
- addIntermediateProduct(product: pyopenms.TraMLProduct) None#
- addPrecursorCVTerm(cv_term: pyopenms.CVTerm) None#
Adds precursor CV Term
- addPredictionTerm(prediction: pyopenms.CVTerm) None#
Adds prediction term
- addProductCVTerm(cv_term: pyopenms.CVTerm) None#
- 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
- getCompoundRef() str#
- getDecoyTransitionType() pyopenms.ReactionMonitoringTransition.DecoyTransitionType#
Returns the type of transition (target or decoy)
- getIntermediateProducts() list[pyopenms.TraMLProduct]#
- 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
- getLibraryIntensity() float#
Returns the library intensity (ion count or normalized ion count from a spectral library)
- 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
- getName() str#
- getNativeID() str#
- getPeptideRef() str#
- getPrecursorCVTermList() pyopenms.CVTermList#
Obtains the list of CV Terms for the precursor
- getPrecursorMZ() float#
Returns the precursor mz (Q1 value)
- getPrediction() pyopenms.Prediction#
Returns the Prediction object
- getProduct() pyopenms.TraMLProduct#
Returns the product ion
- getProductChargeState() int#
Returns the charge state of the product
- getProductMZ() float#
- getRetentionTime() pyopenms.RetentionTime#
- hasCVTerm(accession: str) bool#
- hasPrecursorCVTerms() bool#
Returns true if precursor CV Terms exist (means it is safe to call getPrecursorCVTermList)
- hasPrediction() bool#
Returns true if a Prediction object exists (means it is safe to call getPrediction)
- isDetectingTransition() bool#
- isIdentifyingTransition() bool#
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- isProductChargeStateSet() bool#
Returns true if charge state of product is already set
- isQuantifyingTransition() bool#
- 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
- setCompoundRef(compound_ref: str) None#
- setDecoyTransitionType(d: pyopenms.ReactionMonitoringTransition.DecoyTransitionType) None#
Sets the type of transition (target or decoy)
- setDetectingTransition(val: bool) None#
- setIdentifyingTransition(val: bool) None#
- setIntermediateProducts(products: collections.abc.Sequence[pyopenms.TraMLProduct]) None#
- setLibraryIntensity(intensity: float) None#
Sets the library intensity (ion count or normalized ion count from a spectral library)
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
Sets the DataValue corresponding to a name
- setName(name: str) None#
- setNativeID(name: str) None#
- setPeptideRef(peptide_ref: str) None#
- setPrecursorCVTermList(list: pyopenms.CVTermList) None#
Sets a list of precursor CV Terms
- setPrecursorMZ(mz: float) None#
Sets the precursor mz (Q1 value)
- setPrediction(prediction: pyopenms.Prediction) None#
Sets the Prediction object
- setProduct(product: pyopenms.TraMLProduct) None#
Sets the product ion
- setProductMZ(mz: float) None#
- setQuantifyingTransition(val: bool) None#
- setRetentionTime(rt: pyopenms.RetentionTime) None#