|
| 1 | +"""Bpod extractor for alejandro's _bandit_100_0_biasedChoiceWorld, _bandit_biasedChoiceWorld and |
| 2 | +_bandit_alllaser_cued_ephysChoiceWorld task protocols |
| 3 | +
|
| 4 | +_bandit_100_0_biasedChoiceWorld and _bandit_biasedChoiceWorld |
| 5 | +Bandit Choice World task where two Gabor patches appear on the screen. The mouse must move the wheel beyond the threshold |
| 6 | +to the left or right to get a reward. The side that is rewarded changes in blocks defined by `_av_trials.probabilityLeft'. |
| 7 | +Reward is not related in any way to visual stimulus. For _bandit_100_0_biasedChoiceWorld within a block the probability |
| 8 | +of being rewarded for moving the wheel to the correct side is 100% (0% for the other side). |
| 9 | +For _bandit_biasedChoiceWorld, the probability of being rewarded is 70%. |
| 10 | +
|
| 11 | +Additional datasets: |
| 12 | +- '_av_trials.probabilityRewardLeft.npy' - indicates the probability of reward being given on left movement of trial |
| 13 | +Datasets that differ from normal tasK: |
| 14 | +- '_ibl_trials.choice' - choice is inferred from direction of wheel movement that first reaches a threshold |
| 15 | +- '_ibl_trials.contrastLeft' - in this task reward is not related to visual stimulus. For each trial two Gabor patches |
| 16 | +of 100% contrast are shown on the left and right of screen that move with the wheel. Therefore value of 1 for all trials |
| 17 | +- '_ibl_trials.contrastRight' - in this task reward is not related to visual stimulus. For each trial two Gabor patches |
| 18 | +of 100% contrast are shown on the left and right of screen that move with the wheel. Therefore value of 1 for all trials |
| 19 | +- '_ibl_trials.probabilityLeft' - the reward is not linked to visual stimulus so all values are nan |
| 20 | +
|
| 21 | +_bandit_alllaser_cued_ephysChoiceWorld |
| 22 | +Same as _bandit_biasedChoiceWorld above with the addition of laser stimulation. When the task is in an opto block, |
| 23 | +defined by '_av_trials.laserProbability.npy', reward is given through laser stimulation to the VTA rather than a water |
| 24 | +reward. |
| 25 | +
|
| 26 | +Additional datasets: |
| 27 | +- '_av_trials.probabilityRewardLeft.npy' - indicates the probability of reward being given on left movement of trial |
| 28 | +- '_av_trials.laserProbability.npy' - indicates the block of trials where laser stimulation is active |
| 29 | +- '_ibl_trials.laserStimulation.npy' - indicates trials where the laser was actually stimulated, only those trials |
| 30 | +within a laser block with correct feedback |
| 31 | +
|
| 32 | +Datasets that differ from normal tasK: |
| 33 | +- See _bandit_100_0_biasedChoiceWorld and _bandit_biasedChoiceWorld |
| 34 | +In addition |
| 35 | +- '_ibl_trials.rewardVolume' - where reward is given by the laser instead of water the reward volume is set to zero |
| 36 | +""" |
| 37 | + |
1 | 38 | import logging |
2 | 39 | import numpy as np |
3 | 40 | from one.alf.io import AlfBunch |
@@ -193,6 +230,9 @@ def _extract(self): |
193 | 230 |
|
194 | 231 |
|
195 | 232 | class BanditLaserProbability(BaseBpodTrialsExtractor): |
| 233 | + """ |
| 234 | + Get the block of trials where laser stimulation is active |
| 235 | + """ |
196 | 236 | save_names = '_av_trials.laserProbability.npy' |
197 | 237 | var_names = 'laserProbability' |
198 | 238 |
|
|
0 commit comments