CVTerm#
- class pyopenms.CVTerm#
Bases:
object
Cython implementation of _CVTerm
Original C++ documentation is available here
Methods
Overload:
getAccession
(self)Returns the accession string of the term
getCVIdentifierRef
(self)Returns the CV identifier reference string
getName
(self)Returns the name of the term
getUnit
(self)Returns the unit
getValue
(self)Returns the value of the term
hasUnit
(self)Checks whether the term has a unit
hasValue
(self)Checks whether the term has a value
setAccession
(self, accession)Sets the accession string of the term
setCVIdentifierRef
(self, cv_id_ref)Sets the CV identifier reference string, e.g.
setName
(self, name)Sets the name of the term
setUnit
(self, unit)Sets the unit of the term
setValue
(self, value)Sets the value of the term
- getValue(self) int | float | bytes | str | List[int] | List[float] | List[bytes] #
Returns the value of the term
- hasUnit(self) bool #
Checks whether the term has a unit
- hasValue(self) bool #
Checks whether the term has a value
- setCVIdentifierRef(self, cv_id_ref: bytes | str | String) None #
Sets the CV identifier reference string, e.g. UO for unit obo
- setValue(self, value: int | float | bytes | str | List[int] | List[float] | List[bytes]) None #
Sets the value of the term