Skip to main content

Neural Network Modeling Framework

Project description

PyRates

[![License](https://img.shields.io/github/license/pyrates-neuroscience/PyRates.svg)](https://github.com/pyrates-neuroscience/PyRates) [![Build Status](https://travis-ci.com/pyrates-neuroscience/PyRates.svg?branch=master)](https://travis-ci.com/pyrates-neuroscience/PyRates) [![PyPI version](https://badge.fury.io/py/pyrates.svg)](https://badge.fury.io/py/pyrates) [![Documentation Status](https://readthedocs.org/projects/pyrates/badge/?version=latest)](https://pyrates.readthedocs.io/en/latest/?badge=latest) [![Python](https://img.shields.io/pypi/pyversions/pyrates.svg?style=plastic)](https://badge.fury.io/py/pyrates)

<img src=”https://github.com/pyrates-neuroscience/PyRates/blob/master/PyRates_logo_color.png” width=”20%” heigth=”20%” align=”right”>

PyRates is a framework for neural modeling and simulations, developed by Richard Gast and Daniel Rose at the Max Planck Institute of Human Cognitive and Brain Sciences, Leipzig, Germany. It is an open-source project that everyone is welcome to contribute to.

Basic features

  • Different backends: Numpy for fast simulations of small- to medium-sized networks. Tensorflow for efficient parallelization on GPUs/CPUs, Fortran for parameter continuations.

  • Each model is internally represented by a networkx graph of nodes and edges, with the former representing the model units (i.e. single cells, cell populations, …) and the latter the information transfer between them. In principle, this allows to implement any kind of dynamic neural system that can be expressed as a graph via PyRates.

  • Solutions of initial value problems via different numerical solvers (e.g. full interface to scipy.integrate.solve_ivp)

  • Parameter continuations and bifurcation analysis via PyAuto, an interface to auto-07p

  • Storage of solutions in pandas.DataFrame

  • Efficient parameter sweeps on single and multiple machines via the grid_search module

  • Model optimization via genetic algorithms

  • Visualization of results via seaborn

  • Post-processing of simulation results via scipy and MNE Python

  • The user has full control over the mathematical equations that nodes and edges are defined by.

  • Model configuration and simulation can be done within a few lines of code.

  • Various templates for rate-based population models are provided that can be used for neural network simulations imediatly.

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[tf,plot] `

Available options are tf, plot, proc, cluster, numba and all. 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>]' `

Singularity container

Finally, a singularity container of the most recent version of this software can be found [here](https://singularity.gwdg.de/containers/3). This container provides a stand-alone version of PyRates including all necessary Python tools to be run, independent of local operating systems. To be able to use this container, you need to install [Singularity](https://singularity.lbl.gov/) on your local machine first. Follow these [instructions](https://singularity.lbl.gov/quickstart) to install singularity and run scripts inside the PyRates container.

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.

Reference

If you use this framework, please cite: [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.](https://doi.org/10.1371/journal.pone.0225900)

Contact

If you have questions, problems or suggestions regarding PyRates, please contact [Richard Gast](https://www.cbs.mpg.de/person/59190/376039) or [Daniel Rose](https://www.cbs.mpg.de/person/51141/374227).

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-0.9.6.tar.gz (206.0 kB view details)

Uploaded Source

Built Distribution

pyrates-0.9.6-py3-none-any.whl (255.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrates-0.9.6.tar.gz
  • Upload date:
  • Size: 206.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for pyrates-0.9.6.tar.gz
Algorithm Hash digest
SHA256 fcbb84afd2d70d9129d7cf334a1cf53bf153f94e37b35911324292433e3273b8
MD5 a80b2f271cfcd25d920534f0382ba6bd
BLAKE2b-256 363f443abafcfd89c69f76d6561f00df50190bb7440da5987eecce8c9e914310

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyrates-0.9.6-py3-none-any.whl
  • Upload date:
  • Size: 255.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for pyrates-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 99f05e7442bb04e0a2cab612194163cec1d39f9a0665aba528e95827ff259c9b
MD5 6723a5776415a754e7369b652a5c37f6
BLAKE2b-256 1ef536abf091cfe46d09cd2e555593a124ea89489d17c52545f137df65524a03

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