System Bio Model
An abstract base class for BioModels in the BioModels repository.
SysBioModel
Bases: ABC
, BaseModel
Abstract base class for BioModels in the BioModels repository. This class serves as a general structure for models, allowing different mathematical approaches to be implemented in subclasses.
Source code in aiagents4pharma/talk2biomodels/models/sys_bio_model.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
check_biomodel_id_or_sbml_file_path()
Validate that either biomodel_id or sbml_file_path is provided.
Source code in aiagents4pharma/talk2biomodels/models/sys_bio_model.py
22 23 24 25 26 27 28 29 |
|
get_model_metadata()
abstractmethod
Abstract method to retrieve metadata of the model. This method should return a dictionary containing model metadata.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict[str, str | int]
|
Dictionary with model metadata |
Source code in aiagents4pharma/talk2biomodels/models/sys_bio_model.py
31 32 33 34 35 36 37 38 39 |
|
simulate(duration)
abstractmethod
Abstract method to run a simulation of the model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
duration
|
int | float
|
Duration of the simulation. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list[float]
|
List of simulation results. |
Source code in aiagents4pharma/talk2biomodels/models/sys_bio_model.py
50 51 52 53 54 55 56 57 58 59 60 |
|
update_parameters(parameters)
abstractmethod
Abstract method to update model parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parameters
|
dict[str, float | int]
|
Dictionary of parameter values. |
required |
Source code in aiagents4pharma/talk2biomodels/models/sys_bio_model.py
41 42 43 44 45 46 47 48 |
|