-
Notifications
You must be signed in to change notification settings - Fork 5
/
makeFigures_Figure1.m
477 lines (427 loc) · 34.4 KB
/
makeFigures_Figure1.m
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
%% Create structure of all behavioral logs for animals (at least 60% in T11 trials)
fname_E22_20170215 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170215.mat';
fname_E22_20170216 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170216.mat';
fname_E22_20170217 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170217.mat';
fname_E22_20170221 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170221.mat';
fname_E22_20170222 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170222.mat';
fname_E22_20170223 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170223.mat';
fname_E22_20170224 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170224.mat';
fname_E22_20170227 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170227.mat';
fname_E22_20170228 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170228.mat';
fname_E22_20170308 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170308.mat';
fname_E22_20170309 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170309.mat';
fname_E22_20170320 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170320.mat';
fname_E22_20170321 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170321.mat';
fname_E22_20170403 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170403.mat';
fname_E22_20170412 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_1\data\E22\PoissonBlocksReboot_cohort1_Bezos3_E22_T_20170412.mat';
outputBehavior_E22_20170215 = extractBehavior(fname_E22_20170215);
outputBehavior_E22_20170216 = extractBehavior(fname_E22_20170216);
outputBehavior_E22_20170217 = extractBehavior(fname_E22_20170217);
outputBehavior_E22_20170221 = extractBehavior(fname_E22_20170221);
outputBehavior_E22_20170222 = extractBehavior(fname_E22_20170222);
outputBehavior_E22_20170223 = extractBehavior(fname_E22_20170223);
outputBehavior_E22_20170224 = extractBehavior(fname_E22_20170224);
outputBehavior_E22_20170227 = extractBehavior(fname_E22_20170227);
outputBehavior_E22_20170228 = extractBehavior(fname_E22_20170228);
outputBehavior_E22_20170308 = extractBehavior(fname_E22_20170308);
outputBehavior_E22_20170309 = extractBehavior(fname_E22_20170309);
outputBehavior_E22_20170320 = extractBehavior(fname_E22_20170320);
outputBehavior_E22_20170321 = extractBehavior(fname_E22_20170321);
outputBehavior_E22_20170403 = extractBehavior(fname_E22_20170403);
outputBehavior_E22_20170412 = extractBehavior(fname_E22_20170412);
fname_E39_20171011 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E39\PoissonBlocksReboot3_cohort3_Bezos3_E39_T_20171011.mat';
fname_E39_20171012 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E39\PoissonBlocksReboot3_cohort3_Bezos3_E39_T_20171012.mat';
fname_E39_20171102 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E39\PoissonBlocksReboot3_cohort3_Bezos3_E39_T_20171102.mat';
fname_E39_20171103 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E39\PoissonBlocksReboot3_cohort3_Bezos3_E39_T_20171103.mat';
fname_E39_20171110 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E39\PoissonBlocksReboot3_cohort3_Bezos3_E39_T_20171110.mat';
outputBehavior_E39_20171011 = extractBehavior(fname_E39_20171011);
outputBehavior_E39_20171012 = extractBehavior(fname_E39_20171012);
outputBehavior_E39_20171102 = extractBehavior(fname_E39_20171102);
outputBehavior_E39_20171103 = extractBehavior(fname_E39_20171103);
outputBehavior_E39_20171110 = extractBehavior(fname_E39_20171110);
fname_E43_20170720 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170720.mat';
fname_E43_20170721 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170721.mat';
fname_E43_20170724 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170724.mat';
fname_E43_20170726 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170726.mat';
fname_E43_20170727 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170727.mat';
fname_E43_20170801 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170801.mat';
fname_E43_20170802 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170802.mat';
fname_E43_20170803 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170803.mat';
fname_E43_20170804 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170804.mat';
fname_E43_20170807 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170807.mat';
fname_E43_20170811 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170811.mat';
fname_E43_20170815 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170815.mat';
fname_E43_20170816 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170816.mat';
fname_E43_20170817 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170817.mat';
fname_E43_20170818 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170818.mat';
fname_E43_20170821 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170821.mat';
fname_E43_20170825 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170825.mat';
fname_E43_20170829 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170829.mat';
fname_E43_20170831 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170831.mat';
fname_E43_20170905 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170905.mat';
fname_E43_20170911 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170911.mat';
fname_E43_20170912 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E43\PoissonBlocksReboot2_cohort2_Bezos3_E43_T_20170912.mat';
outputBehavior_E43_20170720 = extractBehavior(fname_E43_20170720);
outputBehavior_E43_20170721 = extractBehavior(fname_E43_20170721);
outputBehavior_E43_20170724 = extractBehavior(fname_E43_20170724);
outputBehavior_E43_20170726 = extractBehavior(fname_E43_20170726);
outputBehavior_E43_20170727 = extractBehavior(fname_E43_20170727);
outputBehavior_E43_20170801 = extractBehavior(fname_E43_20170801);
outputBehavior_E43_20170802 = extractBehavior(fname_E43_20170802);
outputBehavior_E43_20170803 = extractBehavior(fname_E43_20170803);
outputBehavior_E43_20170804 = extractBehavior(fname_E43_20170804);
outputBehavior_E43_20170807 = extractBehavior(fname_E43_20170807);
outputBehavior_E43_20170811 = extractBehavior(fname_E43_20170811);
outputBehavior_E43_20170815 = extractBehavior(fname_E43_20170815);
outputBehavior_E43_20170816 = extractBehavior(fname_E43_20170816);
outputBehavior_E43_20170817 = extractBehavior(fname_E43_20170817);
outputBehavior_E43_20170818 = extractBehavior(fname_E43_20170818);
outputBehavior_E43_20170821 = extractBehavior(fname_E43_20170821);
outputBehavior_E43_20170825 = extractBehavior(fname_E43_20170825);
outputBehavior_E43_20170829 = extractBehavior(fname_E43_20170829);
outputBehavior_E43_20170831 = extractBehavior(fname_E43_20170831);
outputBehavior_E43_20170905 = extractBehavior(fname_E43_20170905);
outputBehavior_E43_20170911 = extractBehavior(fname_E43_20170911);
outputBehavior_E43_20170912 = extractBehavior(fname_E43_20170912);
fname_E44_20170914 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170914.mat';
fname_E44_20170915 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170915.mat';
fname_E44_20170918 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170918.mat';
fname_E44_20170919 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170919.mat';
fname_E44_20170920 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170920.mat';
fname_E44_20170921 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170921.mat';
fname_E44_20170922 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170922.mat';
fname_E44_20170925 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20170925.mat';
fname_E44_20171010 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171010.mat';
fname_E44_20171011 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171011.mat';
fname_E44_20171012 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171012.mat';
fname_E44_20171013 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171013.mat';
fname_E44_20171017 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171017.mat';
fname_E44_20171018 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171018.mat';
fname_E44_20171019 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171019.mat';
fname_E44_20171020 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171020.mat';
fname_E44_20171024 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171024.mat';
fname_E44_20171025 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171025.mat';
fname_E44_20171108 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_2\data\E44\PoissonBlocksReboot2_cohort2_Bezos3_E44_T_20171108.mat';
outputBehavior_E44_20170914 = extractBehavior(fname_E44_20170914);
outputBehavior_E44_20170915 = extractBehavior(fname_E44_20170915);
outputBehavior_E44_20170918 = extractBehavior(fname_E44_20170918);
outputBehavior_E44_20170919 = extractBehavior(fname_E44_20170919);
outputBehavior_E44_20170920 = extractBehavior(fname_E44_20170920);
outputBehavior_E44_20170921 = extractBehavior(fname_E44_20170921);
outputBehavior_E44_20170922 = extractBehavior(fname_E44_20170922);
outputBehavior_E44_20170925 = extractBehavior(fname_E44_20170925);
outputBehavior_E44_20171010 = extractBehavior(fname_E44_20171010);
outputBehavior_E44_20171011 = extractBehavior(fname_E44_20171011);
outputBehavior_E44_20171012 = extractBehavior(fname_E44_20171012);
outputBehavior_E44_20171013 = extractBehavior(fname_E44_20171013);
outputBehavior_E44_20171017 = extractBehavior(fname_E44_20171017);
outputBehavior_E44_20171018 = extractBehavior(fname_E44_20171018);
outputBehavior_E44_20171019 = extractBehavior(fname_E44_20171019);
outputBehavior_E44_20171020 = extractBehavior(fname_E44_20171020);
outputBehavior_E44_20171024 = extractBehavior(fname_E44_20171024);
outputBehavior_E44_20171025 = extractBehavior(fname_E44_20171025);
outputBehavior_E44_20171108 = extractBehavior(fname_E44_20171108);
fname_E47_20170927 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20170927.mat';
fname_E47_20171003 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171003.mat';
fname_E47_20171004 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171004.mat';
fname_E47_20171005 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171005.mat';
fname_E47_20171006 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171006.mat';
fname_E47_20171010 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171010.mat';
fname_E47_20171011 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171011.mat';
fname_E47_20171012 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171012.mat';
fname_E47_20171013 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171013.mat';
fname_E47_20171018 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E47\PoissonBlocksReboot3_cohort3_Bezos3_E47_T_20171018.mat';
outputBehavior_E47_20170927 = extractBehavior(fname_E47_20170927);
outputBehavior_E47_20171003 = extractBehavior(fname_E47_20171003);
outputBehavior_E47_20171004 = extractBehavior(fname_E47_20171004);
outputBehavior_E47_20171005 = extractBehavior(fname_E47_20171005);
outputBehavior_E47_20171006 = extractBehavior(fname_E47_20171006);
outputBehavior_E47_20171010 = extractBehavior(fname_E47_20171010);
outputBehavior_E47_20171011 = extractBehavior(fname_E47_20171011);
outputBehavior_E47_20171012 = extractBehavior(fname_E47_20171012);
outputBehavior_E47_20171013 = extractBehavior(fname_E47_20171013);
outputBehavior_E47_20171018 = extractBehavior(fname_E47_20171018);
fname_E48_20170807 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170807.mat';
fname_E48_20170808 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170808.mat';
fname_E48_20170809 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170809.mat';
fname_E48_20170810 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170810.mat';
fname_E48_20170811 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170811.mat';
fname_E48_20170814 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170814.mat';
fname_E48_20170815 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170815.mat';
fname_E48_20170816 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170816.mat';
fname_E48_20170817 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170817.mat';
fname_E48_20170823 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170823.mat';
fname_E48_20170824 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170824.mat';
fname_E48_20170828 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170828.mat';
fname_E48_20170829 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170829.mat';
fname_E48_20170830 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170830.mat';
fname_E48_20170831 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170831.mat';
fname_E48_20170905 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170905.mat';
fname_E48_20170906 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170906.mat';
fname_E48_20170907 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170907.mat';
fname_E48_20170908 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170908.mat';
fname_E48_20170911 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170911.mat';
fname_E48_20170914 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170914.mat';
fname_E48_20170915 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170915.mat';
fname_E48_20170918 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170918.mat';
fname_E48_20170919 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170919.mat';
fname_E48_20170920 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20170920.mat';
fname_E48_20171004 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_3\data\E48\PoissonBlocksReboot3_cohort3_Bezos3_E48_T_20171004.mat';
outputBehavior_E48_20170807 = extractBehavior(fname_E48_20170807);
outputBehavior_E48_20170808 = extractBehavior(fname_E48_20170808);
outputBehavior_E48_20170809 = extractBehavior(fname_E48_20170809);
outputBehavior_E48_20170810 = extractBehavior(fname_E48_20170810);
outputBehavior_E48_20170811 = extractBehavior(fname_E48_20170811);
outputBehavior_E48_20170814 = extractBehavior(fname_E48_20170814);
outputBehavior_E48_20170815 = extractBehavior(fname_E48_20170815);
outputBehavior_E48_20170816 = extractBehavior(fname_E48_20170816);
outputBehavior_E48_20170817 = extractBehavior(fname_E48_20170817);
outputBehavior_E48_20170823 = extractBehavior(fname_E48_20170823);
outputBehavior_E48_20170824 = extractBehavior(fname_E48_20170824);
outputBehavior_E48_20170828 = extractBehavior(fname_E48_20170828);
outputBehavior_E48_20170829 = extractBehavior(fname_E48_20170829);
outputBehavior_E48_20170830 = extractBehavior(fname_E48_20170830);
outputBehavior_E48_20170831 = extractBehavior(fname_E48_20170831);
outputBehavior_E48_20170905 = extractBehavior(fname_E48_20170905);
outputBehavior_E48_20170906 = extractBehavior(fname_E48_20170906);
outputBehavior_E48_20170907 = extractBehavior(fname_E48_20170907);
outputBehavior_E48_20170908 = extractBehavior(fname_E48_20170908);
outputBehavior_E48_20170911 = extractBehavior(fname_E48_20170911);
outputBehavior_E48_20170914 = extractBehavior(fname_E48_20170914);
outputBehavior_E48_20170915 = extractBehavior(fname_E48_20170915);
outputBehavior_E48_20170918 = extractBehavior(fname_E48_20170918);
outputBehavior_E48_20170919 = extractBehavior(fname_E48_20170919);
outputBehavior_E48_20170920 = extractBehavior(fname_E48_20170920);
outputBehavior_E48_20171004 = extractBehavior(fname_E48_20171004);
fname_E65_20180131 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180131.mat';
fname_E65_20180201 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180201.mat';
fname_E65_20180202 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180202.mat';
fname_E65_20180205 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180205.mat';
fname_E65_20180206 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180206.mat';
fname_E65_20180207 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180207.mat';
fname_E65_20180208 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180208.mat';
fname_E65_20180209 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180209.mat';
fname_E65_20180212 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180212.mat';
fname_E65_20180213 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180213.mat';
fname_E65_20180214 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180214.mat';
fname_E65_20180312 = '\\bucket.pni.princeton.edu\braininit\RigData\scope\bay3\edward\PoissonTowers_4\data\E65\PoissonBlocksReboot4_cohort4_Bezos3_E65_T_20180312.mat';
outputBehavior_E65_20180131 = extractBehavior(fname_E65_20180131);
outputBehavior_E65_20180201 = extractBehavior(fname_E65_20180201);
outputBehavior_E65_20180202 = extractBehavior(fname_E65_20180202);
outputBehavior_E65_20180205 = extractBehavior(fname_E65_20180205);
outputBehavior_E65_20180206 = extractBehavior(fname_E65_20180206);
outputBehavior_E65_20180207 = extractBehavior(fname_E65_20180207);
outputBehavior_E65_20180208 = extractBehavior(fname_E65_20180208);
outputBehavior_E65_20180209 = extractBehavior(fname_E65_20180209);
outputBehavior_E65_20180212 = extractBehavior(fname_E65_20180212);
outputBehavior_E65_20180213 = extractBehavior(fname_E65_20180213);
outputBehavior_E65_20180214 = extractBehavior(fname_E65_20180214);
outputBehavior_E65_20180312 = extractBehavior(fname_E65_20180312);
S = CatStructFields(2, outputBehavior_E22_20170215, ...
outputBehavior_E22_20170216, ...
outputBehavior_E22_20170217, ...
outputBehavior_E22_20170221, ...
outputBehavior_E22_20170222, ...
outputBehavior_E22_20170223, ...
outputBehavior_E22_20170224, ...
outputBehavior_E22_20170227, ...
outputBehavior_E22_20170228, ...
outputBehavior_E22_20170308, ...
outputBehavior_E22_20170309, ...
outputBehavior_E22_20170320, ...
outputBehavior_E22_20170321, ...
outputBehavior_E22_20170403, ...
outputBehavior_E22_20170412, ...
outputBehavior_E39_20171011, ...
outputBehavior_E39_20171012, ...
outputBehavior_E39_20171102, ...
outputBehavior_E39_20171103, ...
outputBehavior_E39_20171110, ...
outputBehavior_E43_20170720, ...
outputBehavior_E43_20170721, ...
outputBehavior_E43_20170724, ...
outputBehavior_E43_20170726, ...
outputBehavior_E43_20170727, ...
outputBehavior_E43_20170801, ...
outputBehavior_E43_20170802, ...
outputBehavior_E43_20170803, ...
outputBehavior_E43_20170804, ...
outputBehavior_E43_20170807, ...
outputBehavior_E43_20170811, ...
outputBehavior_E43_20170815, ...
outputBehavior_E43_20170816, ...
outputBehavior_E43_20170817, ...
outputBehavior_E43_20170818, ...
outputBehavior_E43_20170821, ...
outputBehavior_E43_20170825, ...
outputBehavior_E43_20170829, ...
outputBehavior_E43_20170831, ...
outputBehavior_E43_20170905, ...
outputBehavior_E43_20170911, ...
outputBehavior_E43_20170912, ...
outputBehavior_E44_20170914, ...
outputBehavior_E44_20170915, ...
outputBehavior_E44_20170918, ...
outputBehavior_E44_20170919, ...
outputBehavior_E44_20170920, ...
outputBehavior_E44_20170921, ...
outputBehavior_E44_20170922, ...
outputBehavior_E44_20170925, ...
outputBehavior_E44_20171010, ...
outputBehavior_E44_20171011, ...
outputBehavior_E44_20171012, ...
outputBehavior_E44_20171013, ...
outputBehavior_E44_20171017, ...
outputBehavior_E44_20171018, ...
outputBehavior_E44_20171019, ...
outputBehavior_E44_20171020, ...
outputBehavior_E44_20171024, ...
outputBehavior_E44_20171025, ...
outputBehavior_E44_20171108, ...
outputBehavior_E47_20170927, ...
outputBehavior_E47_20171003, ...
outputBehavior_E47_20171004, ...
outputBehavior_E47_20171005, ...
outputBehavior_E47_20171006, ...
outputBehavior_E47_20171010, ...
outputBehavior_E47_20171011, ...
outputBehavior_E47_20171012, ...
outputBehavior_E47_20171013, ...
outputBehavior_E47_20171018, ...
outputBehavior_E48_20170807, ...
outputBehavior_E48_20170808, ...
outputBehavior_E48_20170809, ...
outputBehavior_E48_20170810, ...
outputBehavior_E48_20170811, ...
outputBehavior_E48_20170814, ...
outputBehavior_E48_20170815, ...
outputBehavior_E48_20170816, ...
outputBehavior_E48_20170817, ...
outputBehavior_E48_20170823, ...
outputBehavior_E48_20170824, ...
outputBehavior_E48_20170828, ...
outputBehavior_E48_20170829, ...
outputBehavior_E48_20170830, ...
outputBehavior_E48_20170831, ...
outputBehavior_E48_20170905, ...
outputBehavior_E48_20170906, ...
outputBehavior_E48_20170907, ...
outputBehavior_E48_20170908, ...
outputBehavior_E48_20170911, ...
outputBehavior_E48_20170914, ...
outputBehavior_E48_20170915, ...
outputBehavior_E48_20170918, ...
outputBehavior_E48_20170919, ...
outputBehavior_E48_20170920, ...
outputBehavior_E48_20171004, ...
outputBehavior_E65_20180131, ...
outputBehavior_E65_20180201, ...
outputBehavior_E65_20180202, ...
outputBehavior_E65_20180205, ...
outputBehavior_E65_20180206, ...
outputBehavior_E65_20180207, ...
outputBehavior_E65_20180208, ...
outputBehavior_E65_20180209, ...
outputBehavior_E65_20180212, ...
outputBehavior_E65_20180213, ...
outputBehavior_E65_20180214, ...
outputBehavior_E65_20180312);
%% Make the logistic regression structure
logisticRegr = logRegressionFromConcatLog2(S);
%% Make the figures using code copied from Lucas's owf_taskPerfComp
layout = [ 1 2 ];
fig = PaneledFigure(layout, 'smaller');
iPanel = 0;
%% psychometrics for all mice on the paper
iPanel = iPanel + 1;
axs = fig.panel(iPanel);
hold(axs, 'on')
for iMouse = 1:logisticRegr.nGoodMice
plot(axs, toBinCenters(logisticRegr.bins), ...
logisticRegr.goodValues(:,iMouse), ...
'-','linewidth', FormatDefaults.linewidthThin, ...
'color', FormatDefaults.lightGray);
end
errorbar(axs, toBinCenters(logisticRegr.bins), logisticRegr.values, logisticRegr.sem, ...
'k-','linewidth',FormatDefaults.linewidthRegular, 'markersize', 4);
xlim([0 200]); ylim([-.1 .4])
set(axs, 'xtick', [0 100 200], 'ytick', 0:.1:.4)
xlabel('Cue y (cm)')
ylabel('Weight on decision')
psychByMouse = xMousePyschometric(S.choice,S.nCues_RminusL,S.mouseID);
psych = psychometricFit(S.choice,S.nCues_RminusL,true);
c_Position = toBinCenters(logisticRegr.bins)';
c_Weight = logisticRegr.goodValues;
c_Meta_mean = logisticRegr.values;
c_Meta_sem = logisticRegr.sem;
%% plot best fitting sigmoid for each mouse and overlay metamouse
iPanel = iPanel + 1;
axs = fig.panel(iPanel);
hold(axs, 'on')
for iMouse = 1:size(psychByMouse.goodCurves,2)
plot(psychByMouse.fitXaxis,100.*psychByMouse.goodFits(:,iMouse),'-', ...
'linewidth', FormatDefaults.linewidthThin, ...
'color' , FormatDefaults.lightGray)
end
sourceData = plotPsychometricCurve_ctrl(psych, 'all', axs, 'k', true, 'k', false);
set(axs, 'ytick', 0:25:100)
ylabel(axs,'Went right (%)')
xlabel(axs, '\Delta towers (#R - #L)')
b_Evidence = psychByMouse.fitXaxis';
b_Performance = 100.*psychByMouse.goodFits;
b_Meta_Evidence = sourceData.x';
b_Meta_Performance_mean = sourceData.y';
b_Meta_Performance_LE = sourceData.le';
b_Meta_Performance_UE = sourceData.ue';
b_Meta_Fit_Evidence = sourceData.fitx';
b_Meta_Fit_Performance = sourceData.fity;
%% Numbers of ROIs
fnameStruct = mind_makeFnameStruct('Edward','towers','laptop');
for i=1:length(fnameStruct)
load(fnameStruct(i).fname)
numroi(i) = size(score.dataDFF,2);
numtrial(i) = length(trial);
end
roi_mean = mean(numroi);
roi_sem = nieh_sem(numroi);
roi_tot = sum(numroi);
trial_tot = sum(numtrial);
basicStats.roi_mean = roi_mean;
basicStats.roi_sem = roi_sem;
basicStats.roi_tot = roi_tot;
basicStats.trial_tot = trial_tot;
%% Length of Trial Durations
fnameStruct = mind_makeFnameStruct('Edward','towers','laptop');
outputTrialDurations_E22 = extractTrialDurations(fnameStruct(1).fname);
outputTrialDurations_E39 = extractTrialDurations(fnameStruct(2).fname);
outputTrialDurations_E43 = extractTrialDurations(fnameStruct(3).fname);
outputTrialDurations_E44 = extractTrialDurations(fnameStruct(4).fname);
outputTrialDurations_E47 = extractTrialDurations(fnameStruct(5).fname);
outputTrialDurations_E48 = extractTrialDurations(fnameStruct(6).fname);
outputTrialDurations_E65 = extractTrialDurations(fnameStruct(7).fname);
trialtime_all = [outputTrialDurations_E22.meanLength outputTrialDurations_E39.meanLength outputTrialDurations_E43.meanLength outputTrialDurations_E44.meanLength outputTrialDurations_E47.meanLength outputTrialDurations_E48.meanLength outputTrialDurations_E65.meanLength];
trialtime_all_mean = mean(trialtime_all);
trialtime_all_sem = nieh_sem(trialtime_all);
trialtime_cue = [outputTrialDurations_E22.meanCue outputTrialDurations_E39.meanCue outputTrialDurations_E43.meanCue outputTrialDurations_E44.meanCue outputTrialDurations_E47.meanCue outputTrialDurations_E48.meanCue outputTrialDurations_E65.meanCue];
trialtime_cue_mean = mean(trialtime_cue);
trialtime_cue_sem = nieh_sem(trialtime_cue);
trialtime_delay = [outputTrialDurations_E22.meanMem outputTrialDurations_E39.meanMem outputTrialDurations_E43.meanMem outputTrialDurations_E44.meanMem outputTrialDurations_E47.meanMem outputTrialDurations_E48.meanMem outputTrialDurations_E65.meanMem];
trialtime_delay_mean = mean(trialtime_delay);
trialtime_delay_sem = nieh_sem(trialtime_delay);
basicStats.trialtime_all_mean = trialtime_all_mean;
basicStats.trialtime_all_sem = trialtime_all_sem;
basicStats.trialtime_cue_mean = trialtime_cue_mean;
basicStats.trialtime_cue_sem = trialtime_cue_sem;
basicStats.trialtime_delay_mean = trialtime_delay_mean;
basicStats.trialtime_delay_sem = trialtime_delay_sem;
%% Length of Sessions
fnameStruct = mind_makeFnameStruct('Edward','towers','laptop');
for i=1:length(fnameStruct)
load(fnameStruct(i).fname_behav);
s = seconds(etime(log.session.end, log.session.start));
time_s(i) = s;
s.Format = 'hh:mm:ss';
time_hhmmss(i) = s;
end
basicStats.session_length_mean = mean(time_hhmmss);
basicStats.session_length_sem = nieh_sem(time_hhmmss);