Skip to main content

Dynamical Systems Modeling Framework

Project description

PyRates

License CircleCI PyPI version Documentation Status Python DOI

PyRates is a framework for dynamical systems modeling, developed by Richard Gast and Daniel Rose. It is an open-source project that everyone is welcome to contribute to.

Basic features

Basic features:

  • Frontend:
    • implement models via a frontend of your choice: YAML or Python
    • create basic mathematical building blocks (i.e. differential equations and algebraic equations) and use them to define a networks of nodes connected by edges
    • create hierarchical networks by connecting networks via edges
  • Backend:
    • choose from a number of different backends
    • NumPy backend for dynamical systems modeling on CPUs via Python
    • Tensorflow and PyTorch backends for parameter optimization via gradient descent and dynamical systems modeling on GPUs
    • Julia backend for dynamical system modeling in Julia, via tools such as DifferentialEquations.jl
    • Fortran backend for dynamical systems modeling via Fortran 90 and interfacing the parameter continuation software Auto-07p
    • Matlab backend for differential equation solving via Matlab
  • Other features:
    • perform quick numerical simulations via a single function call
    • choose between different numerical solvers
    • perform parameter sweeps over multiple parameters at once
    • generate backend-specific run functions that evaluate the vector field of your dynamical system
    • Implement dynamic edge equations that include scalar delays or delay distributions (delay distributions are automatically translated into gamma-kernel convolutions)
    • choose from various pre-implemented dynamical systems that can be directly used for simulations or integrated into custom models

Installation

Stable release (PyPI)

PyRates can be installed via the pip command. We recommend to use Anaconda to create a new python environment with Python >= 3.6 and then simply run the following line from a terminal with the environment being activated:

pip install pyrates

You can install optional (non-default) packages by specifying one or more options in brackets, e.g.:

pip install pyrates[backends]

Available options are backends, dev, and all at the moment. The latter includes all optional packages. Furthermore, the option tests includes all packages necessary to run tests found in the github repository.

Development version (github)

Alternatively, it is possible to clone this repository and run one of the following lines from the directory in which the repository was cloned:

python setup.py install

or

pip install '.[<options>]'

Documentation

For a full API of PyRates, see https://pyrates.readthedocs.io/en/latest/. For examplary simulations and model configurations, please have a look at the jupyter notebooks provided in the documenation folder.

References

If you use this framework, please cite:

Gast, R., Knösche, T. R. & Kennedy, A. (2023). PyRates - A Code-Generation Tool for Dynamical Systems Modeling. arXiv:2302.03763.

and

Gast, R., Rose, D., Salomon, C., Möller, H. E., Weiskopf, N., & Knösche, T. R. (2019). PyRates-A Python framework for rate-based neural simulations. PloS one, 14(12):e0225900.

Other work that used PyRates:

Weise, K., Poßner, L., Müller, E., Gast, R. & Knösche, T. R. (2020) Software X, 11:100450.

Gast, R., Gong, R., Schmidt, H., Meijer, H.G.E., & Knösche, T.R. (2021) On the Role of Arkypallidal and Prototypical Neurons for Phase Transitions in the External Pallidum. Journal of Neuroscience, 41(31):6673-6683.

Gast, R., Solla, S.A. & Kennedy, A. (2023). Macroscopic dynamics of neural networks with heterogeneous spiking thresholds. Physical Review E, 107(2):024306.

Contact

If you have questions, problems or suggestions regarding PyRates, please contact Richard Gast.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrates-1.0.2.tar.gz (121.9 kB view details)

Uploaded Source

Built Distribution

pyrates-1.0.2-py3-none-any.whl (170.0 kB view details)

Uploaded Python 3

File details

Details for the file pyrates-1.0.2.tar.gz.

File metadata

  • Download URL: pyrates-1.0.2.tar.gz
  • Upload date:
  • Size: 121.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for pyrates-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8c991625e4d88f8cd7ff37d4844f34d2cac6ffada93ed75256d4887434d3629b
MD5 20a43a61e3bb7c43367ad4a67c06643b
BLAKE2b-256 1c2371193495ca0ba695282379e8844c0678a763d47c39b15a5439199aa852e2

See more details on using hashes here.

Provenance

File details

Details for the file pyrates-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyrates-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 170.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for pyrates-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8e27017a06629c936ed1cfd17bd234b8ffaa64d9e25a8e6723fa63ee9ba869c
MD5 b03ec72ca379a48d7764e43373962dea
BLAKE2b-256 92fdcec34c6ea68d28481a67c87540f31edba8c428af535a7838c7f1aa988f2a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page