CVTerm#
- class pyopenms.CVTerm#
Bases:
objectRepresentation of controlled vocabulary term
- __init__() None#
- __init__(arg: pyopenms.CVTerm, /) None
- __init__(arg0: str, arg1: str, arg2: str, arg3: str, arg4: pyopenms.Unit, /) None
Methods
__init__()Returns the accession string of the term
Returns the CV identifier reference string
getName()Returns the name of the term
getUnit()Returns the unit
getValue()Returns the value of the term
hasUnit()Checks whether the term has a unit
hasValue()Checks whether the term has a value
setAccession(accession)Sets the accession string of the term
setCVIdentifierRef(cv_identifier_ref)Sets the CV identifier reference string, e.g. UO for unit obo.
setName(name)Sets the name of the term
setUnit(unit)Sets the unit of the term
setValue(value)Sets the value of the term
- getAccession() str#
Returns the accession string of the term
- getCVIdentifierRef() str#
Returns the CV identifier reference string
- getName() str#
Returns the name of the term
- getUnit() pyopenms.Unit#
Returns the unit
- getValue() None | int | float | str | bytes | list[str] | list[int] | list[float]#
Returns the value of the term
- hasUnit() bool#
Checks whether the term has a unit
- hasValue() bool#
Checks whether the term has a value
- setAccession(accession: str) None#
Sets the accession string of the term
- setCVIdentifierRef(cv_identifier_ref: str) None#
Sets the CV identifier reference string, e.g. UO for unit obo
- setName(name: str) None#
Sets the name of the term
- setUnit(unit: pyopenms.Unit) None#
Sets the unit of the term
- setValue(value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
Sets the value of the term