Loading Wheel Data
Wheel data recorded during task
Relevant Alf objects
wheel
wheelMoves
Loading
[2]:
from one.api import ONE
one = ONE()
eid = '4ecb5d24-f5cc-402c-be28-9d0f7cb14b3a'
wheel = one.load_object(eid, 'wheel', collection='alf')
wheelMoves = one.load_object(eid, 'wheelMoves', collection='alf')
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/alf/_ibl_wheel.timestamps.npy: 100%|██████████| 8.08M/8.08M [00:00<00:00, 19.8MB/s]
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/alf/_ibl_wheel.position.npy: 100%|██████████| 8.08M/8.08M [00:00<00:00, 17.7MB/s]
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/alf/_ibl_wheelMoves.peakAmplitude.npy: 100%|██████████| 13.4k/13.4k [00:00<00:00, 286kB/s]
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/alf/_ibl_wheelMoves.intervals.npy: 100%|██████████| 26.6k/26.6k [00:00<00:00, 406kB/s]
More details
Useful modules and functions
Exploring wheel data
Example 3: Find linearly interpolated wheel position
[3]:
from brainbox.behavior.wheel import interpolate_position
Fs = 1000
wh_pos_lin, wh_ts_lin = interpolate_position(wheel['timestamps'], wheel['position'], freq=Fs)
Example 2: Extract wheel velocity
[4]:
from brainbox.behavior.wheel import velocity_filtered
wh_velocity, wh_acc = velocity_filtered(wh_pos_lin, Fs)