biomodels.runner¶
Runner producing a SuiteResult from a BioModels selection.
The pipeline itself (sbml2cellml.testsuite.runner.run_suite) is reused
unchanged; this module only turns a list of model ids into runnable cases,
skipping the ids whose info or download request fails, whose case cannot be
built or whose model has no variable (prepare_cases), and runs them
(run_biomodels).
prepare_cases
¶
Build the runnable cases of a list of BioModels ids.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ids
|
list[str]
|
BioModels ids, e.g. |
required |
cache
|
Path | None
|
cache root, |
None
|
Returns:
| Type | Description |
|---|---|
list[Case]
|
The cases built and a skip reason per id whose info or download |
dict[str, str]
|
request failed ( |
tuple[list[Case], dict[str, str]]
|
could not be built ( |
tuple[list[Case], dict[str, str]]
|
has no variable ( |
tuple[list[Case], dict[str, str]]
|
returned, |
run_biomodels
¶
Run the pipeline for a list of BioModels ids.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ids
|
list[str]
|
BioModels ids to run. |
required |
cache
|
Path | None
|
cache root, |
None
|
work_dir
|
Path
|
directory for the converted files, created if needed. |
Path('biomodels/work')
|
timeout
|
float
|
seconds per simulator call. |
60.0
|
progress
|
Callable[[str], None] | None
|
called with the finished status line of the case after
every runnable case, see |
None
|
Returns:
| Type | Description |
|---|---|
SuiteResult
|
The suite result, |