forked from AllenInstitute/openscope_sequencelearning_stim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
regimen.yml
392 lines (323 loc) · 10.5 KB
/
regimen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
_change_detection_script: &change_detection_script http://stash.corp.alleninstitute.org/projects/VB/repos/visual_behavior_scripts/raw/change_detection_extended.py?at=5adfa6e285774719135d0ebcba421f15f6f56168
_change_detection_script_md5: &change_detection_script_md5 410d697d666405eed63f72e4d3e189bb
_psycode_script: &psycode_script http://stash.corp.alleninstitute.org/users/jeromel/repos/openscope_psycode/raw/active_pilot_stimulus.py?at=711bb282117a67a2d197bc456f328edf97073c3b
_psycode_script_md5: &psycode_script_md5 e4041014d17e13408f790e6d1f0e0228
_full_field_gratings_stimulus: &full_field_gratings
class: grating
params:
sf: 0.04
tex: sqr
size: [200, 150]
units: deg
phase: 0.25
groups:
vertical:
Ori: [0, 180]
horizontal:
Ori: [90, 270]
_image_set_g_stimulus: &image_set_g
class: images
luminance_matching_intensity: -0.46
params:
image_set: //allen/programs/braintv/workgroups/nc-ophys/visual_behavior/image_dictionaries/Natural_Images_Lum_Matched_set_ophys_G_2019.05.26.pkl
sampling: even
_flash_parameters: &flash_parameters
task_id: DoC
catch_frequency: 0.25
failure_repeats: 5
# rewards (mL)
reward_volume: 0.007
volume_limit: 5.0
# auto rewards
auto_reward_vol: 0.005
# This seems to be needed to prevent a bug
auto_reward_volume: 0.005
warm_up_trials: 5
auto_reward_delay: 0.150
free_reward_trials: 10000
# trial timing
min_no_lick_time: 0.0
timeout_duration: 0.3
pre_change_time: 0.0
stimulus_window: 6.0
max_task_duration_min: 60.0
periodic_flash: [0.25, 0.5]
response_window: [0.15, 0.75]
end_after_response: True
end_after_response_sec: 3.5
# timing of changes
change_time_dist: geometric
change_time_scale: 0.3
change_flashes_min: 4 # inclusive
change_flashes_max: 12 # exclusive
# start stop padding < 1 can cause a critcally breaking bug
start_stop_padding: 1
_no_flash_parameters: &no_flash_parameters
<<: *flash_parameters
periodic_flash: null
response_window: [0.15, 1.0]
reward_volume: 0.010
free_reward_trials: 10
pre_change_time: 2.25
# timing of changes
change_time_dist: exponential
change_time_scale: 2.0
change_flashes_min: null
change_flashes_max: null
_image_set_g_parameters: &image_set_g_parameters
<<: *flash_parameters
stimulus: *image_set_g
catch_frequency: null
_psycode_parameters: &psycode_parameters
<<: *flash_parameters
stimulus: *image_set_g
catch_frequency: null
change_time_scale: 0.1
short_distrib_start1: 714
short_distrib_end1: 1268
change_time_dist1: 0.4
injection_start: 1268
injection_end: 2168
short_distrib_start2: 2882
short_distrib_end2: 3436
change_time_dist2: 0.4
max_task_duration_min: 60.0
prologue: True
epilogue: True
number_runs_rf: 10
name: Openscope_psycode_v1
transitions:
- trigger: progress
source: TRAINING_0_gratings_autorewards_15min_0uL_reward
dest: TRAINING_1_gratings_10uL_reward
conditions: one_complete
- trigger: progress
source: TRAINING_1_gratings_10uL_reward
dest: TRAINING_2_gratings_flashed_10uL_reward
conditions: [two_out_of_three_aint_bad, yesterday_was_good]
- trigger: progress
source: TRAINING_2_gratings_flashed_10uL_reward
dest: TRAINING_3_images_G_10uL_reward
conditions: [two_out_of_three_aint_bad, yesterday_was_good]
- trigger: progress
source: TRAINING_3_images_G_10uL_reward
dest: TRAINING_4_images_G_training_7uL_reward
conditions: three_complete
- trigger: progress
source: TRAINING_4_images_G_training_7uL_reward
dest: TRAINING_5_images_G_training_5uL_reward
conditions: meets_engagement_criteria_logged
- trigger: progress
source: TRAINING_5_images_G_training_5uL_reward
dest: TRAINING_5_images_G_handoff_ready_5uL_reward
conditions: meets_engagement_and_hit_threshold
- trigger: progress
source: TRAINING_5_images_G_handoff_ready_5uL_reward
dest: TRAINING_6_psycode_passive_5uL_reward
conditions: meets_engagement_and_hit_threshold
- trigger: progress
source: TRAINING_6_psycode_passive_5uL_reward
dest: TRAINING_7_psycode_injection_5uL_reward
conditions: meets_engagement_and_hit_threshold
- trigger: manual
source: TRAINING_7_psycode_injection_5uL_reward
dest: EPHYS_HAB_psycode_5uL_reward
- trigger: manual
source: EPHYS_HAB_psycode_5uL_reward
dest: EPHYS_1_psycode_5uL_reward
- trigger: manual
source: EPHYS_HAB_psycode_5uL_reward
dest: EPHYS_HAB_psycode_3uL_reward
- trigger: manual
source: EPHYS_HAB_psycode_3uL_reward
dest: EPHYS_1_psycode_3uL_reward
- trigger: manual
source: EPHYS_1_psycode_3uL_reward
dest: EPHYS_test_psycode
stages:
TRAINING_0_gratings_autorewards_15min_0uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *no_flash_parameters
stage: TRAINING_0_gratings_autorewards_15min_0uL_reward
stimulus: *full_field_gratings
# auto rewards
warm_up_trials: -1 #infinite
abort_on_early_response: False
catch_frequency: 0.0
response_window: [0.0, 0.0]
min_no_lick_time: 0.0
failure_repeats: 0
# trial timing
max_task_duration_min: 15.0
# rewards (mL)
reward_volume: 0.0
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_1_gratings_10uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *no_flash_parameters
stage: TRAINING_1_gratings_10uL_reward
stimulus: *full_field_gratings
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_2_gratings_flashed_10uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *flash_parameters
stage: TRAINING_2_gratings_flashed_10uL_reward
task_id: DoC
stimulus: *full_field_gratings
free_reward_trials: 10
# rewards (mL)
reward_volume: 0.01
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_3_images_G_10uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_g_parameters
stage: TRAINING_3_images_G_10uL_reward
# rewards (mL)
reward_volume: 0.01
free_reward_trials: 10
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_4_images_G_training_7uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_g_parameters
stage: TRAINING_4_images_G_training_7uL_reward
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_5_images_G_training_5uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_g_parameters
stage: TRAINING_5_images_G_training_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
TRAINING_5_images_G_handoff_ready_5uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_g_parameters
stage: TRAINING_5_images_G_handoff_ready_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
TRAINING_6_psycode_passive_5uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: TRAINING_6_psycode_passive_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
free_reward_trials: 10
prologue: True
epilogue: False
injection_start: None
injection_end: None
number_runs_rf: 5
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
TRAINING_7_psycode_injection_5uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: TRAINING_7_psycode_injection_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
free_reward_trials: 10
prologue: True
epilogue: False
number_runs_rf: 5
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
EPHYS_HAB_psycode_5uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: EPHYS_HAB_psycode_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
free_reward_trials: 10
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
EPHYS_1_psycode_5uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: EPHYS_1_psycode_5uL_reward
warm_up_trials: 3
reward_volume: 0.005
prologue: True
epilogue: True
# optotagging
disable_opto: False
opto_params:
operation_mode: "experiment"
EPHYS_HAB_psycode_3uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: EPHYS_HAB_psycode_3uL_reward
warm_up_trials: 5
reward_volume: 0.003
free_reward_trials: 10
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
EPHYS_1_psycode_3uL_reward:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: EPHYS_1_psycode_3uL_reward
warm_up_trials: 3
reward_volume: 0.003
prologue: True
epilogue: True
# optotagging
disable_opto: False
opto_params:
operation_mode: "experiment"
EPHYS_test_psycode:
script: *psycode_script
script_md5: *psycode_script_md5
parameters:
<<: *psycode_parameters
stage: EPHYS_test_psycode
warm_up_trials: 3
reward_volume: 0.003
prologue: True
epilogue: True
change_time_scale: 0.1
short_distrib_start1: 30
short_distrib_end1: 60
change_time_dist1: 0.4
injection_start: 120
injection_end: 160
short_distrib_start2: 200
short_distrib_end2: 240
change_time_dist2: 0.4
max_task_duration_min: 5
number_runs_rf: 1
# optotagging
disable_opto: False
opto_params:
operation_mode: "experiment"