CVTerm#

class pyopenms.CVTerm#

Bases: object

Cython implementation of _CVTerm

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: CVTerm) None

Methods

__init__

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

getAccession(self) bytes | str | String#

Returns the accession string of the term

getCVIdentifierRef(self) bytes | str | String#

Returns the CV identifier reference string

getName(self) bytes | str | String#

Returns the name of the term

getUnit(self) Unit#

Returns the unit

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

setAccession(self, accession: bytes | str | String) None#

Sets the accession string of the term

setCVIdentifierRef(self, cv_id_ref: bytes | str | String) None#

Sets the CV identifier reference string, e.g. UO for unit obo

setName(self, name: bytes | str | String) None#

Sets the name of the term

setUnit(self, unit: Unit) None#

Sets the unit of the term

setValue(self, value: int | float | bytes | str | List[int] | List[float] | List[bytes]) None#

Sets the value of the term