CVMappings#

class pyopenms.CVMappings#

Bases: object

Representation of controlled vocabulary mapping rules (for PSI formats)

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

Methods

__init__()

addCVReference(cv_reference)

Adds a CV reference

addMappingRule(cv_mapping_rule)

Adds a mapping rule

getCVReferences()

Returns the CV references

getMappingRules()

Returns the mapping rules

hasCVReference(identifier)

Returns true if a CV reference with the given identifier exists

setCVReferences(cv_references)

Sets the CV references

setMappingRules(cv_mapping_rules)

Sets the mapping rules

addCVReference(cv_reference: pyopenms.CVReference) → None#

Adds a CV reference

addMappingRule(cv_mapping_rule: pyopenms.CVMappingRule) → None#

Adds a mapping rule

getCVReferences() → list[pyopenms.CVReference]#

Returns the CV references

getMappingRules() → list[pyopenms.CVMappingRule]#

Returns the mapping rules

hasCVReference(identifier: str) → bool#

Returns true if a CV reference with the given identifier exists

setCVReferences(cv_references: collections.abc.Sequence[pyopenms.CVReference]) → None#

Sets the CV references

setMappingRules(cv_mapping_rules: collections.abc.Sequence[pyopenms.CVMappingRule]) → None#

Sets the mapping rules