Edit History

Wiki » History » Version 7

Richard Gerkin, 30 Apr 2014 14:57

1 1 Padraig Gleeson
Introduction
2 1 Padraig Gleeson
============
3 1 Padraig Gleeson
4 1 Padraig Gleeson
A project highlighting some of the possible interactions between OSB and NeuroElectro/SciUnit
5 1 Padraig Gleeson
6 6 Richard Gerkin
Installing SciUnit and NeuroUnit
7 6 Richard Gerkin
--------------------------------
8 1 Padraig Gleeson
9 6 Richard Gerkin
SciUnit is a pythonic framework for testing scientific models: https://github.com/rgerkin/sciunit.
10 6 Richard Gerkin
NeuroUnit is a library of SciUnit tests and capabilities for neuroscience. https://github.com/rgerkin/neurounit.
11 1 Padraig Gleeson
12 1 Padraig Gleeson
The Neuroelectro API
13 1 Padraig Gleeson
--------------------
14 1 Padraig Gleeson
15 6 Richard Gerkin
Data used for testing models with SciUnit can be obtained in a variety of places. Here we focus on automated testing by pulling electrophysiologal properties of neurons from the literature using NeuroElectro (http://www.neuroelectro.org). The API for grabbing data from NeuroElectro is documented here: http://goo.gl/fuPSu.
16 4 Richard Gerkin
17 4 Richard Gerkin
Testing neuroConstruct models with neurounit (sciunit):
18 4 Richard Gerkin
-------------------------------------------------------
19 4 Richard Gerkin
20 4 Richard Gerkin
In jython:
21 4 Richard Gerkin
22 4 Richard Gerkin
\$ cd \~/neuroConstruct \# Or wherever it is.
23 4 Richard Gerkin
\$ ./nCjython \# Assumes there is a “jython” somewhere in your system path.
24 4 Richard Gerkin
>>> import neurounit.jutils as j
25 4 Richard Gerkin
>>> print j.get\_volts()
26 4 Richard Gerkin
27 4 Richard Gerkin
In python:
28 4 Richard Gerkin
29 4 Richard Gerkin
\$ cd \~/neuroConstruct \# Or wherever it is.
30 4 Richard Gerkin
\$ python
31 4 Richard Gerkin
>>> import neurounit.putils as p
32 4 Richard Gerkin
>>> data = p.run() \# Opens the bridge to jython.
33 4 Richard Gerkin
>>> volts = data.receive() \# Runs the simulations and receives the data (hangs).
34 4 Richard Gerkin
>>> print volts