ibllib.io.extractors.biased_trials
Functions
Same as training_trials.extract_all except... |
Classes
Get left and right contrasts from raw datafile. |
|
Bpod pre-generated values for probabilityLeft, contrastLR, phase, quiescence |
|
Extracts the following into a table from Bpod raw data: |
|
Extracts the following into a table from Bpod raw data: |
- class ContrastLR(session_path=None)[source]
Bases:
BaseBpodTrialsExtractor
Get left and right contrasts from raw datafile.
- save_names = ('_ibl_trials.contrastLeft.npy', '_ibl_trials.contrastRight.npy')
- var_names = ('contrastLeft', 'contrastRight')
- class ProbaContrasts(session_path=None)[source]
Bases:
BaseBpodTrialsExtractor
Bpod pre-generated values for probabilityLeft, contrastLR, phase, quiescence
- save_names = ('_ibl_trials.contrastLeft.npy', '_ibl_trials.contrastRight.npy', None, None, '_ibl_trials.probabilityLeft.npy', None)
- var_names = ('contrastLeft', 'contrastRight', 'phase', 'position', 'probabilityLeft', 'quiescence')
- class TrialsTableBiased(session_path=None)[source]
Bases:
BaseBpodTrialsExtractor
- Extracts the following into a table from Bpod raw data:
intervals, goCue_times, response_times, choice, stimOn_times, contrastLeft, contrastRight, feedback_times, feedbackType, rewardVolume, probabilityLeft, firstMovement_times
- Additionally extracts the following wheel data:
wheel_timestamps, wheel_position, wheel_moves_intervals, wheel_moves_peak_amplitude
- save_names = ('_ibl_trials.table.pqt', None, None, '_ibl_wheel.timestamps.npy', '_ibl_wheel.position.npy', '_ibl_wheelMoves.intervals.npy', '_ibl_wheelMoves.peakAmplitude.npy', None, None)
- var_names = ('table', 'stimOff_times', 'stimFreeze_times', 'wheel_timestamps', 'wheel_position', 'wheel_moves_intervals', 'wheel_moves_peak_amplitude', 'peakVelocity_times', 'is_final_movement')
- class TrialsTableEphys(session_path=None)[source]
Bases:
BaseBpodTrialsExtractor
- Extracts the following into a table from Bpod raw data:
intervals, goCue_times, response_times, choice, stimOn_times, contrastLeft, contrastRight, feedback_times, feedbackType, rewardVolume, probabilityLeft, firstMovement_times
- Additionally extracts the following wheel data:
wheel_timestamps, wheel_position, wheel_moves_intervals, wheel_moves_peak_amplitude
- save_names = ('_ibl_trials.table.pqt', None, None, '_ibl_wheel.timestamps.npy', '_ibl_wheel.position.npy', '_ibl_wheelMoves.intervals.npy', '_ibl_wheelMoves.peakAmplitude.npy', None, None, None, None, None)
- var_names = ('table', 'stimOff_times', 'stimFreeze_times', 'wheel_timestamps', 'wheel_position', 'wheel_moves_intervals', 'wheel_moves_peak_amplitude', 'peakVelocity_times', 'is_final_movement', 'phase', 'position', 'quiescence')
- extract_all(session_path, save=False, bpod_trials=False, settings=False, extra_classes=None)[source]
- Same as training_trials.extract_all except…
there is no RepNum
ContrastLR is extracted differently
IncludedTrials is only extracted for 5.0.0 or greater
- Parameters
session_path –
save –
bpod_trials –
settings –
extra_classes – additional BaseBpodTrialsExtractor subclasses for custom extractions
- Returns