One day there will be a universally agreed Neuroscience data standard. Until then, there's loadi.
git clone https://github.com/chrishalcow/loadi
cd loadiThen install into your environment:
pip install .or run directly with uv from the loadi directory:
uv run pythonCan be used to load data. E.g:
from loadi import NagelhusMoser2023Experiment
experiment = NagelhusMoser2023Experiment()
session = experiment.get_session('27207', 'CA3_12', 'object moved')
units = session.load_units()
positions = session.load_positions()
# Now that you've loadi'd the data, you can compute stuff
import pynapple as nap
tuning_curves = nap.compute_tuning_curves(
data=units,
features=position,
bins=40,
)Looping will loop through every session in the experiment
for session in experiment:
if session.subject_id == '27207':
print(session.load_subject_position())