Subset#

class pronto.Subset[source]#

Bases: object

A definition of a subset in an ontology.

name#

The name of the subset, as an OBO short identifier.

Type:

str

description#

A description of the subset, as defined in the metadata part of the ontology file.

Type:

str

__init__(name: str, description: str)[source]#

Create a new subset with the given name and description.

__eq__(other: object) bool[source]#

Return self==value.

__lt__(other: object) bool[source]#

Return self<value.

__hash__() int[source]#

Return hash(self).

__ge__(other)#

Return a >= b. Computed by @total_ordering from (not a < b).

__gt__(other)#

Return a > b. Computed by @total_ordering from (not a < b) and (a != b).

__le__(other)#

Return a <= b. Computed by @total_ordering from (a < b) or (a == b).

__repr__()#

Return a repr string that roundtrips. Computed by @roundrepr.