-
Notifications
You must be signed in to change notification settings - Fork 4
/
regimen.yml
494 lines (410 loc) · 14.7 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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
_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
_movie_clips_script: &movie_clips_script http://stash.corp.alleninstitute.org/projects/VB/repos/visual_behavior_scripts/raw/receptive_field_mapping.py?at=46ae5481552b2ab22ffa580260426399ae40ffba
_movie_clips_script_md5: &movie_clips_script_md5 8cab71e3cf5acdeef9a4660b09e52798
_replay_script: &replay_script http://stash.corp.alleninstitute.org/projects/VB/repos/visual_behavior_scripts/raw/replay_session/triscript.py?at=7fc7eda96c536b5b701241a27b8e0d2e7b30fd15
_replay_script_md5: &replay_script_md5 7627ba45e1554dccf1e0159217785dfa
_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_a_stimulus: &image_set_a
class: images
params:
image_set: //allen/programs/braintv/workgroups/nc-ophys/visual_behavior/image_dictionaries/Natural_Images_Lum_Matched_set_training_2017.07.14.pkl
sampling: even
_image_set_b_stimulus: &image_set_b
class: images
params:
image_set: //allen/programs/braintv/workgroups/nc-ophys/visual_behavior/image_dictionaries/Natural_Images_Lum_Matched_set_ophys_3_2017.07.14.pkl
sampling: even
_image_set_c_stimulus: &image_set_c
class: images
params:
image_set: //allen/programs/braintv/workgroups/nc-ophys/visual_behavior/image_dictionaries/Natural_Images_Lum_Matched_set_ophys_6_2017.07.14.pkl
sampling: even
_image_set_d_stimulus: &image_set_d
class: images
params:
image_set: //allen/programs/braintv/workgroups/nc-ophys/visual_behavior/image_dictionaries/Natural_Images_Lum_Matched_set_ophys_5_2017.07.14.pkl
sampling: even
_mapping_movie_list: &mapping_movie_list
- name: gabor
params:
frame_length: 0.016666666666666666
movie_path: //allen/programs/braintv/workgroups/nc-ophys/1022/mapping_stim_movies/gabor-remastered-1576117355.npy
runs: 5 # 1 min each run
size: [1920, 1080]
- name: flash
params:
frame_length: 0.016666666666666666
movie_path: //allen/programs/braintv/workgroups/nc-ophys/1022/mapping_stim_movies/flash-remastered-1576272856.npy
runs: 5 # 1 min each
size: [1920, 1080]
_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
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
_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_a_parameters: &image_set_a_parameters
<<: *flash_parameters
stimulus: *image_set_a
catch_frequency: null
_image_set_b_parameters: &image_set_b_parameters
<<: *flash_parameters
stimulus: *image_set_b
catch_frequency: null
_image_set_c_parameters: &image_set_c_parameters
<<: *flash_parameters
stimulus: *image_set_c
catch_frequency: null
_image_set_d_parameters: &image_set_d_parameters
<<: *flash_parameters
stimulus: *image_set_d
catch_frequency: null
_replay_a_parameters: &replay_a_parameters
<<: *flash_parameters
stimulus: *image_set_a
catch_frequency: null
mapping:
flash_path: //allen/programs/braintv/workgroups/nc-ophys/1022/replay-stim/flash_250ms.stim
gabor_path: //allen/programs/braintv/workgroups/nc-ophys/1022/replay-stim/gabor_20_deg_250ms.stim
output_dir: C:/ProgramData/camstim/output
agent_socket: "127.0.0.1:5000"
_replay_b_parameters: &replay_b_parameters
<<: *flash_parameters
stimulus: *image_set_b
catch_frequency: null
mapping:
flash_path: //allen/programs/braintv/workgroups/nc-ophys/1022/replay-stim/flash_250ms.stim
gabor_path: //allen/programs/braintv/workgroups/nc-ophys/1022/replay-stim/gabor_20_deg_250ms.stim
output_dir: C:/ProgramData/camstim/output
agent_socket: "127.0.0.1:5000"
### mtrain definitions
#based on VisualBehavior_Task1A_v1.0.3
name: VisualBehaviorEPHYS_Task1A_v0.2.5
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_A_10uL_reward
conditions: [two_out_of_three_aint_bad, yesterday_was_good]
- trigger: progress
source: TRAINING_3_images_A_10uL_reward
dest: TRAINING_4_images_A_training_7uL_reward
conditions: three_complete
- trigger: progress
source: TRAINING_4_images_A_training_7uL_reward
dest: TRAINING_5_images_A_epilogue_5uL_reward
conditions: meets_engagement_criteria
- trigger: progress
source: TRAINING_5_images_A_epilogue_5uL_reward
dest: TRAINING_5_images_A_handoff_ready_5uL_reward
conditions: [meets_engagement_criteria, meets_hit_threshold]
- trigger: progress
source: TRAINING_5_images_A_handoff_ready_5uL_reward
dest: TRAINING_5_images_A_handoff_lapsed_5uL_reward
unless: [meets_engagement_criteria, meets_hit_threshold]
- trigger: progress
source: TRAINING_5_images_A_handoff_lapsed_5uL_reward
dest: TRAINING_5_images_A_handoff_ready_5uL_reward
conditions: [meets_engagement_criteria, meets_hit_threshold]
- trigger: manual
source: TRAINING_5_images_A_handoff_lapsed_5uL_reward
dest: HABITUATION_5_images_A_handoff_ready_5uL_reward
- trigger: manual
source: HABITUATION_5_images_A_handoff_ready_5uL_reward
dest: EPHYS_1_images_A_5uL_reward
- trigger: manual
source: EPHYS_1_images_A_5uL_reward
dest: EPHYS_1_images_B_5uL_reward
- trigger: manual
source: EPHYS_1_images_B_5uL_reward
dest: HABITUATION_5_images_A_handoff_ready_3uL
- trigger: manual
source: HABITUATION_5_images_A_handoff_ready_3uL
dest: EPHYS_1_images_A_3uL_reward
- trigger: manual
source: EPHYS_1_images_A_3uL_reward
dest: EPHYS_1_images_B_3uL_reward
- trigger: manual
source: EPHYS_1_images_B_3uL_reward
dest: HABITUATION_5_images_A_handoff_ready_5uL_reward_75_min_duration
- trigger: manual
source: HABITUATION_5_images_A_handoff_ready_5uL_reward_75_min_duration
dest: EPHYS_1_images_A_5uL_reward_75_min_duration
- trigger: manual
source: EPHYS_1_images_A_5uL_reward_75_min_duration
dest: EPHYS_1_images_B_5uL_reward_75_min_duration
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
# appears to be necessary to avoid potential race conditions on first trial
start_stop_padding: 1.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_A_10uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_a_parameters
stage: TRAINING_3_images_A_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_A_training_7uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_a_parameters
stage: TRAINING_4_images_A_training_7uL_reward
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
TRAINING_5_images_A_epilogue_5uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_a_parameters
stage: TRAINING_5_images_A_epilogue_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
# play list of movies mimicking a mapping session
epilogue_list: *mapping_movie_list
TRAINING_5_images_A_handoff_ready_5uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_a_parameters
stage: TRAINING_5_images_A_handoff_ready_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
# play list of movies mimicking a mapping session
epilogue_list: *mapping_movie_list
TRAINING_5_images_A_handoff_lapsed_5uL_reward:
script: *change_detection_script
script_md5: *change_detection_script_md5
parameters:
<<: *image_set_a_parameters
stage: TRAINING_5_images_A_handoff_lapsed_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 300.0
# play list of movies mimicking a mapping session
epilogue_list: *mapping_movie_list
HABITUATION_5_images_A_handoff_ready_5uL_reward:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: HABITUATION_5_images_A_handoff_ready_5uL_reward
warm_up_trials: 5
reward_volume: 0.005
free_reward_trials: 10
max_mapping_duration_min: 10
disable_replay: True
disable_opto: True
opto_params:
operation_mode: "experiment"
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
EPHYS_1_images_A_5uL_reward:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: EPHYS_1_images_A_5uL_reward
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.005
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"
EPHYS_1_images_B_5uL_reward:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_b_parameters
stage: EPHYS_1_images_B_5uL_reward
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.005
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"
HABITUATION_5_images_A_handoff_ready_3uL:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: HABITUATION_5_images_A_handoff_ready_3uL
warm_up_trials: 5
reward_volume: 0.003
free_reward_trials: 10
max_mapping_duration_min: 10
disable_replay: True
disable_opto: True
opto_params:
operation_mode: "experiment"
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
EPHYS_1_images_A_3uL_reward:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: EPHYS_1_images_A_3uL_reward
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.003
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"
EPHYS_1_images_B_3uL_reward:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_b_parameters
stage: EPHYS_1_images_B_3uL_reward
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.003
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"
HABITUATION_5_images_A_handoff_ready_5uL_reward_75_min_duration:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: HABITUATION_5_images_A_handoff_ready_5uL_reward_75_min_duration
warm_up_trials: 5
reward_volume: 0.005
max_task_duration_min: 75.0
max_mapping_duration_min: 10
disable_replay: True
disable_opto: True
opto_params:
operation_mode: "experiment"
# ephys-specific no grayscreen pre-exp time
start_padding_windowless: 20.0
EPHYS_1_images_A_5uL_reward_75_min_duration:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_a_parameters
stage: EPHYS_1_images_A_5uL_reward_75_min_duration
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.005
max_task_duration_min: 75.0
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"
EPHYS_1_images_B_5uL_reward_75_min_duration:
script: *replay_script
script_md5: *replay_script_md5
parameters:
<<: *replay_b_parameters
stage: EPHYS_1_images_B_5uL_reward_75_min_duration
warm_up_trials: 3
flash_omit_probability: 0.05
reward_volume: 0.005
max_task_duration_min: 75.0
max_mapping_duration_min: 35
opto_params:
operation_mode: "experiment"