Basico Model
BasicoModel class for loading SBML models using the basico package.
BasicoModel
Bases: SysBioModel
Model that loads SBML models using the basico package.
Source code in vpeleaderboard/data/src/basico_model.py
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
get_model_metadata(sbml_file)
Retrieve metadata for a single SBML model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sbml_file
|
str
|
The name of the SBML file in the folder. |
required |
Returns:
Type | Description |
---|---|
Dict[str, Union[str, int]]
|
Dict[str, Union[str, int]]: A dictionary containing metadata of the SBML model. |
Source code in vpeleaderboard/data/src/basico_model.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
validate_sbml_file_path()
Validate that the SBML folder exists and contains XML files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sbml_file_path
|
str
|
The path to the SBML folder. |
required |
Returns:
Name | Type | Description |
---|---|---|
ModelData |
The validated instance of the class. |
Raises:
Type | Description |
---|---|
ValueError
|
If the folder path is missing or does not contain XML files. |
Source code in vpeleaderboard/data/src/basico_model.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|