Pathway¶
pathway ¶
Pathway Value Object
Represents a KEGG metabolic pathway.
Classes¶
Pathway dataclass ¶
Value Object for KEGG metabolic pathway.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id | str | Pathway identifier (e.g., 'map00010') | required |
name | str | Descriptive pathway name (e.g., 'Glycolysis / Gluconeogenesis') | required |
Raises:
| Type | Description |
|---|---|
ValueError | If ID or name are empty |
Notes
Pathways are immutable and uniquely identified by ID.
Functions¶
__post_init__ ¶
Validates pathway fields.
Raises:
| Type | Description |
|---|---|
ValueError | If ID or name are invalid. |
Source code in src/domain/value_objects/pathway.py
__str__ ¶
__repr__ ¶
Returns debug representation of pathway.
Returns:
| Type | Description |
|---|---|
str | Representation in format "Pathway('id', 'name')". |