ibllib.io.extractors.training_trials
Classes
|
Get the subject's choice in every trial. |
|
Get left and right contrasts from raw datafile. |
|
|
|
Get the times the water or error tone was delivered to the animal. |
|
Get the feedback that was delivered to subject. |
|
Get trigger times of goCue from state machine. |
|
Get trigger times of goCue from state machine. |
|
|
|
Trial start to trial end. |
|
Calculate duration of iti from state timestamps. |
|
|
|
Extract pause duration from raw trial data. |
|
Extract stimulus phase, position and quiescence from Bpod data. |
|
|
|
Count the consecutive repeated trials. |
|
Time (in absolute seconds from session start) when a response was recorded. |
|
Load reward volume delivered for each trial. |
|
|
|
|
|
Extracts stim on / off and freeze times from Bpod BNC1 detected fronts. |
|
|
|
|
|
|
|
Extracts the following into a table from Bpod raw data: |
- class TrainingTrials(session_path=None)[source]
Bases:
BaseBpodTrialsExtractor
- save_names = ('_ibl_trials.repNum.npy', '_ibl_trials.goCueTrigger_times.npy', '_ibl_trials.stimOnTrigger_times.npy', None, '_ibl_trials.stimOffTrigger_times.npy', None, None, '_ibl_trials.table.pqt', '_ibl_trials.stimOff_times.npy', None, '_ibl_wheel.timestamps.npy', '_ibl_wheel.position.npy', '_ibl_wheelMoves.intervals.npy', '_ibl_wheelMoves.peakAmplitude.npy', None, None, None, None, '_ibl_trials.quiescencePeriod.npy', None)
The filenames of each extracted dataset, or None if array should not be saved.
- Type:
tuple of str
- var_names = ('repNum', 'goCueTrigger_times', 'stimOnTrigger_times', 'itiIn_times', 'stimOffTrigger_times', 'stimFreezeTrigger_times', 'errorCueTrigger_times', 'table', 'stimOff_times', 'stimFreeze_times', 'wheel_timestamps', 'wheel_position', 'wheelMoves_intervals', 'wheelMoves_peakAmplitude', 'wheelMoves_peakVelocity_times', 'is_final_movement', 'phase', 'position', 'quiescence', 'pause_duration')
A list of names for the extracted variables. These become the returned output keys.
- Type:
tuple of str