|
| 1 | +# Install |
| 2 | + |
| 3 | +There are various ways of installing or downloading the benchmark models: |
| 4 | + |
| 5 | +## Git clone |
| 6 | + |
| 7 | +The repository containing the benchmark models can be cloned from GitHub via: |
| 8 | + |
| 9 | + git clone git@github.com:Benchmarking-Initiative/Benchmark-Models-PEtab.git |
| 10 | + |
| 11 | +## Download source files |
| 12 | + |
| 13 | +The Benchmark files can be downloaded from GitHub as a |
| 14 | +[ZIP file](https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab/archive/refs/heads/master.zip). |
| 15 | + |
| 16 | +## Python package |
| 17 | + |
| 18 | +We provide a Python utility package that simplifies the installation and |
| 19 | +provides access functionality at [src/python](src/python). |
| 20 | + |
| 21 | +It can be installed directly from GitHub via: |
| 22 | + |
| 23 | + pip install git+https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab.git@master#subdirectory=src/python |
| 24 | + |
| 25 | +Alternatively, when the whole repository has been cloned (see above), |
| 26 | +the python package can be installed via |
| 27 | + |
| 28 | + cd src/python |
| 29 | + |
| 30 | +followed by either an in-place develop mode installation: |
| 31 | + |
| 32 | + pip install -e . |
| 33 | + |
| 34 | +or a packaged installation: |
| 35 | + |
| 36 | + ./build.sh |
| 37 | + pip install build/dist/* |
| 38 | + |
| 39 | +Note that when the repository models are updated, also the python package needs |
| 40 | +to be updated, as it does not actively synchronize. |
| 41 | + |
| 42 | +Once installed, the python package can be used via: |
| 43 | + |
| 44 | +```python |
| 45 | +import benchmark_models_petab as models |
| 46 | + |
| 47 | +# print models base folder |
| 48 | +print(models.MODELS_DIR) |
| 49 | +# print all model names |
| 50 | +print(models.MODELS) |
| 51 | +# generate petab problem |
| 52 | +petab_problem = models.get_problem("Zheng_PNAS2012") |
| 53 | +``` |
| 54 | + |
| 55 | +For provided functionality, see the |
| 56 | +[source code documentation](src/python/benchmark_models_petab). |
0 commit comments