hpotk.constants.hpo.frequency module

class hpotk.constants.hpo.frequency.HpoFrequency(identifier: TermId, lower_bound: float, upper_bound: float)[source]

Bases: Identified

property identifier: TermId

Get the identifier.

property lower_bound: float
property upper_bound: float
property frequency: float
hpotk.constants.hpo.frequency.parse_hpo_frequency(value: str | ID) HpoFrequency | None[source]

Get HpoFrequency for given HPO frequency term ID or None if the term ID does not represent a frequency term.

Parameters:

value – a str or TermId corresponding to HPO frequency term ID.

Returns:

HpoFrequency or None.