Software#

class pyopenms.Software#

Bases: CVTermList

Description of the software used for processing

__init__(arg: pyopenms.Software, /) → None#
__init__(arg0: str, arg1: str, /) → None
__init__() → None

Overloaded function.

  1. __init__(arg: pyopenms.Software, /) -> None

  2. __init__(arg0: str, arg1: str, /) -> None

  3. __init__() -> None

Default constructor

Methods

__init__(arg, /)

Overloaded function.

addCVTerm(term)

Adds a CV term

clearMetaInfo()

Removes all meta values

consumeCVTerms(cv_term_map)

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

empty()

getCVTerms()

Returns a copy of the CV terms, keyed by CV accession

getKeys(keys)

Overloaded function.

getMetaValue(name)

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

getName()

Returns the name of the software

getVersion()

Returns the software version

hasCVTerm(accession)

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)

Replaces the specified CV term

replaceCVTerms(cv_term_map)

setCVTerms(terms)

Sets the CV terms from a vector

setMetaValue(name, value)

Sets the DataValue corresponding to a name

setName(name)

Sets the name of the software

setVersion(version)

Sets the software version

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

getKeys(keys: list) → None#
getKeys() → list

Overloaded function.

  1. getKeys(keys: list) -> None

Fills the given list with all meta value keys

  1. getKeys() -> list

Returns all meta value keys as a list

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#

Returns the name of the software

getVersion() → str#

Returns the software version

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

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#

Sets the name of the software

setVersion(version: str) → None#

Sets the software version