Convert ArControl behavioral data to "Neurodata Without Borders" nwb file.
Setup the python enviroment.
pip install -U git+https://github.com/chenxinfeng4/ArControl-convert2-nwb
The easiest way.
python -m arcontrol2nwb "Arcontrol/data/A/B/2022-1113-224711.txt"
Else go to the script. See the play ground
.
import arcontrol2nwb
arcfile = './2022-1113-224711.txt'
arcontrol2nwb.convert(arcfile)
See the play ground
.
# In jupyter notebook
from pynwb import NWBHDF5IO
from nwbwidgets import nwb2widget
io = NWBHDF5IO('./2022-1113-224711.nwb', mode='r')
nwb = io.read()
nwb2widget(nwb)