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.89

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.89
File Size Uploaded Provenance
copasi_basico-0.89.tar.gz 320.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 606.6 kB

Release files / copasi_basico-0.89.tar.gz

Download URL copasi_basico-0.89.tar.gz
Size 320.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2c49c1e65b9a6a4268a0c8efe18679384b4f5a936cc2443210d48c352e32326f
BLAKE2b-256 checksum
How to use checksums
929bc3822a828e0aaeec5111c6f4df84e996972a84d7f1a192579adbb7162aaf
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.89-py3-none-any.whl

Download URL copasi_basico-0.89-py3-none-any.whl
Size 285.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2f47a5348daa69ae5b2c03295f0b8bc140fbb231ecc6fb961268a72ac7ebd0f
BLAKE2b-256 checksum
How to use checksums
ff44a152f3817d8424dfc1d2a7d1397743988056de12898823ea904cc2542256
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.89

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.

Release history Release notifications | RSS feed

This release

0.89 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