Skip to main content

Python utilities for NeuroML

Project description

pyNeuroML

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

Builds on: libNeuroML & PyLEMS and wraps functionality from jNeuroML.

Installation

Pip

pyNeuroML can be installed with pip:

sudo pip install pyneuroml

You may need to install lxml on Linux with:

sudo apt-get install python-lxml

Installation from source

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 .

You may have to install lxml and the development version of libNeuroML manually:

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

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) or PyLEMS (todo...)

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

Try:

pynml -h

to list current options.

3) Access to export & import options of jNeuroML

All export & import options of jNeuroML available through easy command line interface (see here for progress) & through Python methods.

Example of export of NeuroML2/LEMS to NEURON and execution of generated code using single method is here.

4) Helper Python scripts

Lots of helper scripts for commonly used functions, e.g. generating a firing frequency vs injected current plot, generating a LEMS file for use with a NeuroML2 file,

5) Analysis of ion channels

Generation of plots of activation rates for ion channels from NeuroML2 channel file (example):

pynml-channelanalysis NaConductance.channel.nml

Generation of plots of activation rates for ion channels from NEURON mod file (example):

pynml-modchananalysis NaConductance -modFile NaConductance.mod

See here for more.

6) Home for existing functionality distributed in various places

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

7) NEURON to NeuroML2

Scripts for converting NEURON to NeuroML2

  • Export morphologies (plus channels, soon). See here.

  • mod files - make best guess at initial NeuroML2 form (todo)

8) Export of images/movies from cell/networks

Files can be generated for POV-Ray which can be used to generate high resolution images and even sequences of images for creating movies. try:

pynml-povray -h

9) Tuning cell models in NeuroML 2

Builds on Neurotune and pyelectro. See here for example.

9) Planned functionality

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

Build Status

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.5.9.tar.gz (27.7 MB view details)

Uploaded Source

Built Distribution

pyNeuroML-0.5.9-py3-none-any.whl (27.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyNeuroML-0.5.9.tar.gz
  • Upload date:
  • Size: 27.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for pyNeuroML-0.5.9.tar.gz
Algorithm Hash digest
SHA256 dd385b19faa9bcb4a6c1306471debf8b2e203953e4b385ebc23da43a88f3960c
MD5 377be12c15231aa1757f5aa46ba7c92a
BLAKE2b-256 6bfd3ef3e8850b119884184e9e96c96a3777bb0477f69ec8d1d3ec5f7626dc7f

See more details on using hashes here.

File details

Details for the file pyNeuroML-0.5.9-py3-none-any.whl.

File metadata

  • Download URL: pyNeuroML-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 27.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for pyNeuroML-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4a19729a4262bfacc62ae3e1bcd16e7cd3018774d915d6b07e59698d19713e99
MD5 e747c2ac1af584d8d1c71d2bf0cfe7ea
BLAKE2b-256 2299afcd46a330b524663ebea75a2b01da1db615eafa979697abbd64fd6ad19c

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