Skip to main content

Python utilities for NeuroML

Project description

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.

Builds on: [libNeuroML](https://github.com/NeuralEnsemble/libNeuroML) & [PyLEMS](https://github.com/LEMS/pylems) and wraps functionality from [jNeuroML](https://github.com/NeuroML/jNeuroML).

Installation

Clone the repository:

git clone https://github.com/NeuroML/pyNeuroML.git cd pyNeuroML

It should be possible to install pyNeuroML using just:

sudo pip install . -r requirements.txt

You may have to install the development version of [libNeuroML](https://github.com/NeuralEnsemble/libNeuroML) manually:

cd .. git clone https://github.com/NeuralEnsemble/libNeuroML.git cd libNeuroML git checkout development sudo python setup.py install

Some current/planned features

1) Single Python package for NeuroML2/LEMS

One Python package which can be installed using pip & a user has everything they need to work with NeuroML2/LEMS files:

  • libNeuroML

  • PyLEMS

  • A bundled version of jNeuroML which can be used to run simulations

2) Run models using jNeuroML or PyLEMS

Ability to run NeuroML2/LEMS models using jLEMS/jNeuroML (with [bundled jar](https://github.com/NeuroML/pyNeuroML/tree/master/pyneuroml/lib)) or PyLEMS (coming soon…)

Uses similar command line interface to jNeuroML, i.e. based on jnml

Try:

pynml -h

Access to export & import options of jNeuroML

All export & import options of jNeuroML available through easy command line interface (see [here](https://github.com/NeuroML/pyNeuroML/issues/21) for progress) & through Python methods.

Example of export of NeuroML2/LEMS to NEURON and execution of generated code using single method is [here](https://github.com/NeuroML/pyNeuroML/blob/master/examples/run_jneuroml_plot_matplotlib.py#L21).

3) Helper Python scripts

Lots of helper scripts for commonly used functions, e.g. [generating a firing frequency vs injected current plot](https://github.com/NeuroML/pyNeuroML/blob/master/pyneuroml/analysis/__init__.py#L8).

4) Analysis of ion channels

Generation of plots of activation rates for ion channels from NeuroML2 channel file ([example](https://github.com/NeuroML/pyNeuroML/blob/master/examples/analyseNaNml2.sh)):

pynml-channelanalysis NaConductance.channel.nml

Generation of plots of activation rates for ion channels from NEURON mod file ([example](https://github.com/NeuroML/pyNeuroML/blob/master/examples/analyseNaMod.sh)):

pynml-modchananalysis NaConductance -modFile NaConductance.mod

See [here](http://www.opensourcebrain.org/docs#Converting_To_NeuroML2) for more.

5) Home for existing functionality distributed in various places

Incorporate ChannelML2NeuroML2beta.xsl for updating ChannelML (coming soon…)

6) NEURON to NeuroML2

Scripts for converting NEURON to NeuroML2

7) Planned functionality

Built in viewer of cells in 3D? Mayavi? More closely tied to PyNN?

[![Build Status](https://travis-ci.org/NeuroML/pyNeuroML.svg?branch=master)](https://travis-ci.org/NeuroML/pyNeuroML)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pyNeuroML-0.1.7.tar.gz (16.5 MB view details)

Uploaded Source

File details

Details for the file pyNeuroML-0.1.7.tar.gz.

File metadata

  • Download URL: pyNeuroML-0.1.7.tar.gz
  • Upload date:
  • Size: 16.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyNeuroML-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2f22d18738f2add6900710c3e0e67e5cd1892f8cad9492c63fbdaefdb77f721a
MD5 dd30d25636a65814b43a8a546de28bf5
BLAKE2b-256 f436bc101237be963b6cbea3c5779d31cefc10c78483f0f1b02aba93f63292d7

See more details on using hashes here.

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