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')

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)

Other relevant examples