This package implements a Python interface for the Backyard Brains Spike Recorder, a neural recording application. It is based off a fork of the original C++ code, found here. In addition, it contains two psychological experiment applications written in Python that control and record events via the SpikeRecorder.
You can install this library from PyPI with pip:
python -m pip install spike-recorder
To run the SpikeRecorder application simply invoke it on the command line
spike-recorder
If you want to launch the SpikeRecorder application alongside either of the experiments
below then invoke them with the --spike-reord
option.
To launch the Iowa Gambling Task Experiment, run:
iowa
There are some available options and arguments:
usage: iowa [-h] [--spike-record] [--total-deck-pulls TOTAL_DECK_PULLS] [--seed SEED]
optional arguments:
-h, --help show this help message and exit
--spike-record Launch Backyard Brains Spike Recorder in background. Default is do not run.
--total-deck-pulls TOTAL_DECK_PULLS
The total number of deck pulls in the experiment. Default is 100.
--seed SEED Seed for the random number generators that control deck randomness.
Default is 0 so behaviour between runs will be random but fixed
To launch the Libet Task Experiment, simply run:
libet
If you wish to adjust the speed of the clock or the number of trials in either phase, see the available options:
usage: libet [-h] [--spike-record] [--num-trials-paradigm1 NUM_TRIALS_PARADIGM1] [--num-trials-paradigm2 NUM_TRIALS_PARADIGM2] [--clock-hz-paradigm1 CLOCK_HZ_PARADIGM1] [--clock-hz-paradigm2 CLOCK_HZ_PARADIGM2]
optional arguments:
-h, --help show this help message and exit
--spike-record Launch Backyard Brains Spike Recorder in background.
Default is do not run.
--num-trials-paradigm1 NUM_TRIALS_PARADIGM1
The number of trials to conduct for paradigm one. Default is 20.
--num-trials-paradigm2 NUM_TRIALS_PARADIGM2
The number of trials to conduct for paradigm two,
in which time of urge is asked. Default is 20.
--clock-hz-paradigm1 CLOCK_HZ_PARADIGM1
The number of full rotations the clock makes per second in paradigm one.
Default is 1 but can be set lower than 1.
--clock-hz-paradigm2 CLOCK_HZ_PARADIGM2
The number of full rotations the clock makes per second in paradigm two.
Default is 1 but can be set lower than 1.