TraMLProduct#

class pyopenms.TraMLProduct#

Bases: CVTermListInterface

OpenMS class TraMLProduct

__init__() → None#
__init__(arg: pyopenms.TraMLProduct, /) → None

Methods

__init__()

addCVTerm(term)

Adds a CV term

addConfiguration(configuration)

addInterpretation(interpretation)

clearMetaInfo()

Removes all meta values

consumeCVTerms(cv_term_map)

Merges the given map into the member map, no duplicate checking

empty()

getCVTerms()

getChargeState()

getConfigurationList()

getInterpretationList()

getKeys(keys)

Fills the given list with all meta value keys

getMZ()

getMetaValue(name)

Returns the value corresponding to a string, or DataValue::EMPTY if not found

getMetaValues()

Returns all meta values as a dictionary of {name: value}

hasCVTerm(accession)

Checks whether the term has a value

hasCharge()

isMetaEmpty()

Returns if the MetaInfo is empty

metaRegistry()

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)

resetInterpretations()

setCVTerms(terms)

Sets the CV terms from a vector

setChargeState(charge)

setMZ(mz)

setMetaValue(name, value)

Sets the DataValue corresponding to a name

setMetaValues(values)

Sets multiple meta values from a dictionary of {name: value}

addCVTerm(term: pyopenms.CVTerm) → None#

Adds a CV term

addConfiguration(configuration: pyopenms.Configuration) → None#
addInterpretation(interpretation: pyopenms.TargetedExperiment_Interpretation) → 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]]#
getChargeState() → int#
getConfigurationList() → list[pyopenms.Configuration]#
getInterpretationList() → list[pyopenms.TargetedExperiment_Interpretation]#
getKeys(keys: list) → None#

Fills the given list with all meta value keys

getMZ() → float#
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

hasCharge() → bool#
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

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
resetInterpretations() → None#
setCVTerms(terms: collections.abc.Sequence[pyopenms.CVTerm]) → None#

Sets the CV terms from a vector

setChargeState(charge: int) → None#
setMZ(mz: float) → 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}