Skip to main content

Python package Documentation Status Quality Gate Status Binder DOI codecov DOI

BasiCO

This project hosts a simplified python interface to COPASI. While all functionality from COPASI is exposed via automatically generated SWIG wrappers, this package aims to add a layer on top of that, to hide most of the complexity away when calling COPASI functions.

COPASI Logo

Installation

The package works with python 3.7+, provided the following packages are installed:

  • python-copasi
  • pandas
  • numpy
  • matplotlib
  • PyYAML

that are freely available on pypi, they will be automatically installed when installing via setup.py.

Once done, just have the basico directory in the PYTHONPATH or sys.path.

Or you could directly install everything you need right from pypi

pip install copasi-basico

from this git repo:

pip install git+https://github.com/copasi/basico.git

Usage

The following modules are available:

  • model_io: functionality, for creating / loading / saving models.
  • model_info: functionality to getting / setting model elements from pandas dataframes
  • task_timecourse: a wrapper for running time course simulations
  • task_parameter_estimation: a wrapper for parameter estimation
  • task_optimization: a wrapper for computing optimizations with arbitrary objective functions
  • task_steadystate: a wrapper for computing steady states
  • task_scan: a wrapper for parameter scans / repeats
  • task_sensitivities: a wrapper for computing sensitivities
  • compartment_array_tools: utility for plotting and the like

Documentation is continually updated at: https://basico.readthedocs.org/.

Please use the issue tracker for bug reports and feature requests.

Run the tests

basico comes with a number of unit tests based on pytest. To run them, change to the root directory of this project and run:

python3 -m pytest

that will ensure that basico is in the python path, and the test run as expected. Some tests require more data, that is not included in the repository, such as tests for PEtab and petab select, for those, specify the environment variables to the directories where the files are for example:

PETAB_BENCHMARK_MODELS=/path/to/petab/benchmark/models
PETAB_SELECT_MODELS=/path/to/petab/select/models

for example:

PETAB_BENCHMARK_MODELS=../Benchmark-Models-PEtab/Benchmark-Models PETAB_SELECT_MODELS=../petab_select/test_cases  python3 -m pytest

SSR support

The latest version of the project contains support for T.J. Sego's libSSR.SSRSimAPI to use this, install the [ssr] extra:

!pip install -e git+https://github.com/copasi/basico.git#egg=copasi-basico[ssr]

Acknowledgements

This project has been possible thanks to LiBiS, the Baden-Württemberg Institute for Bioinformatics Infrastructure:

LiBiS Logo

and to the BMBF funded de.NBI initiative (031L0104A, W-de.NBI-016)):

de.NBI logo

License

The packages available on this page are provided under the Artistic License 2.0, which is an OSI approved license. This license allows non-commercial and commercial use free of charge.

Metadata

Release files for copasi-basico 0.93

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for copasi-basico 0.93
File Size Uploaded Provenance Actions
copasi_basico-0.93.tar.gz 322.0 kB Without provenance Details for copasi_basico-0.93.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for copasi-basico 0.93
File Interpreter ABI Platform Actions
copasi_basico-0.93-py3-none-any.whl Python 3 none any Details for copasi_basico-0.93-py3-none-any.whl

Total release size: 609.2 kB

Release files / copasi_basico-0.93.tar.gz

Download URL copasi_basico-0.93.tar.gz
Size 322.0 kB
Tags Source
SHA-256 checksum
How to use checksums
98c3dde11e84821a9f8c7c47a7f9b48427943c50b709fec269c42135c1041af0
BLAKE2b-256 checksum
How to use checksums
69324ad8a352cdb20bf1c93e85c4426494b8f03c9d265a8af7c119c0e0ed87e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / copasi_basico-0.93-py3-none-any.whl

Download URL copasi_basico-0.93-py3-none-any.whl
Size 287.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01fd1ce747f891a52aa800ec9ccee334328a19d7c5355d1714680213a4478e03
BLAKE2b-256 checksum
How to use checksums
bdd46e1c667e11f1ef966fe781fc29ab5ab363395a37c41fb7ac90a721feb40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for copasi-basico 0.93

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.93 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page