Giter VIP home page Giter VIP logo

c302's Introduction

c302

The c302 framework is in the process of moving here from https://github.com/openworm/CElegansNeuroML/tree/master/CElegans/pythonScripts/c302

c302 is a framework for generating network models in NeuroML 2 based on C elegans connectivity data.

c302 structure

It uses information on the synaptic connectivity of the network (from here) and uses libNeuroML to generate a network in valid NeuroML, which can be run in jNeuroML or pyNeuroML.

To install & test

The full set of dependencies for c302 can be installed with the following (see also the Travis-CI script):

python setup.py install

To regenerate a set of NeuroML & LEMS files for one instance of the model and execute it:

python c302/c302_Full.py                         # To regenerate the NeuroML & LEMS files
pynml examples/LEMS_c302_A_Full.xml         # Run a simulation with jNeuroML via pyNeuroML

To test all of the working features of the framework run test.sh:

./test.sh

Command line interface

This package can be used to generate customised networks of varying size, with different cells stimulated, of varying duration from the command line:

./c302/__init__.py MyNetwork parameters_A -cells ["ADAL","AIBL","RIVR","RMEV"] -cellstostimulate ["ADAL","RIVR"] -duration 500

This will create a NeuroML 2 file and a LEMS file to execute it, containing 4 cells, stimulating 2 of them, and with a duration of 500 ms

More options can be found with

./c302/__init__.py -h

Mapping to NEURON

Due to the fact that the cells are in pure NeuroML2, they can be mapped to other formats using the export feature of jNeuroML. Install NEURON and map the network to this format using:

cd examples

for jNeuroML:

jnml LEMS_c302_A_Pharyngeal.xml -neuron

or instead for pyNeuroML:

pynml LEMS_c302_A_Pharyngeal.xml -neuron

then

nrnivmodl
nrngui -python LEMS_c302_A_Pharyngeal_nrn.py

Comparing activity across scales/parameter sets

activity

See here for more details on this.

Understanding how c302_Full.py works

Build Status

c302's People

Contributors

pgleeson avatar lungd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.