-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
700 lines (603 loc) · 37.6 KB
/
setup.py
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
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
def setup(object):
''' setup the parameters for tracking, registration, processing, and analysis '''
''' LOADING THE DATA '''
# Add recently added sessions or metadata to database
object.file_name = 'project_obstacles_dataframe'
object.update_database = False
# select which sessions to analyze ('all', 'experiment', 'number')
object.selector_type = 'number'
# object.selector = ['Circle lights on off (baseline)','Circle wall down']
object.selector = [70] #[1,6,3,47]# [47]#[190,192,193] #[190,192,191]#[55,56,82,156,169]#[1,3,4,5,6,45]#[32,33,230,231] # [202, 239, 241, 164] #[13,8, 70,72]#[4,3,5,2] # [44,148,160,4,5,3] #[10,13,70,72]
# the most important parameter.
object.dark_theme = False
''' WHAT ARE WE DOING '''
# Use DLC to analyze the raw videos
object.do_tracking = False
# Register arena to model arena
object.do_registration = False
# Do initial visualizations of the experiments
object.do_processing = True
# Analyze data and test hypotheses
object.do_analysis = False
''' PROCESSING OPTIONS '''
# Do initial visualizations of the experiments
object.processing_options = {
# Re-process the DLC tracking data
'process tracking': False,
# Save raw videos of the peri-stimulus period
'raw clips': False,
# Save both registered videos and videos of DLC model mouse in model arena
'visualize escapes': False,
# Capture spontaneous homings
'spontaneous homings': False,
# Decompose homings into piecewise linear bouts
'decompose homings': False,
# Capture spontaneous anti-homings
'spontaneous anti-homings': False,
# Decompose anti homings into piecewise linear bouts
'decompose anti-homings': False,
# Analyze exploration
'exploration': False,
# Simulate each strategy and get its likelihood
'simulate': False,
# Simulate each strategy and get its likelihood
'control': False,
# Make the moon-like summary plots
'summary': False }
object.processing_parameters = {
# Number of sessions to analyze simultaneously
'parallel processes': 1,
# Number of sessions to analyze simultaneously
'dark theme': True,
# When to start the trial video
'seconds pre stimulus': 2,
# When to end the trial video
'seconds post stimulus': 12 }
''' ANALYSIS OPTIONS '''
# Analyze data and test hypotheses
# What type of analysis to do
object.analysis_options = {
# Process and analyze the data (one analysis type at a time...)
'analyze data': False,
# Analyze non-escape control epochs
'control': False}
object.analysis_types = {
# Make an exploration heat map
'exploration': False,
# Get escape paths
'escape paths': False,
# Get speed traces
'edginess': False,
# Predict escape behavior
'prediction': False,
# Get efficiency correlations
'efficiency': True,
# Get metrics by strategy
'metrics': False,
# Get speed traces
'speed traces': False,
# Plot all traversals across the arena
'traversals': False }
object.analysis_experiments= {
# ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall up'], 'Circle wall down (no shelter)', ['Circle wall down', 'Circle wall down (no baseline)'], ['Circle wall down', 'Circle lights on off (baseline)']], #
# # # Which conditions to analyze
# 'conditions': [['no obstacle'], 'no obstacle', ['no obstacle', 'no obstacle'],['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['Open field', 'Obstacle removed (no shelter)', 'obstacle removed', 'Obstacle']}
# ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall up']],
# # # Which conditions to analyze
# 'conditions': [['no obstacle']],
# # # what to call each condition for plots
# 'labels': ['Open field']}
# ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)']],#['Circle wall down', 'Circle lights on off (baseline)']],#,'Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle']],#['obstacle', 'obstacle']],#, 'no obstacle'],
# # # what to call each condition for plots
# 'labels': [ 'obstacle', 'obstacle23']}
# # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle wall down (no shelter)', 'Circle wall down', 'Circle wall down (no baseline)', 'Circle wall down', 'Circle lights on off (baseline)'],
# ['Circle food wall down', 'Circle food', 'Circle food wall up']], #
# # # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle', 'no obstacle', 'no obstacle','obstacle', 'obstacle'],['no obstacle', 'no obstacle', 'no obstacle']],
# # # # what to call each condition for plots
# 'labels': ['Escape', 'Food']}
# # ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'], ['Circle wall down', 'Circle lights on off (baseline)'],'Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'],['obstacle', 'obstacle'], 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['obstacle', 'obstacle 3', 'OF']}
# # ''' many-condition edginess comparison (naive) '''
# # # Which experiments to analyze
# 'experiments': [ 'Circle wall up',['Circle wall down', 'Circle wall down (no baseline)', 'Circle wall down (trial 1)',
# 'Circle wall down'], ['Circle wall down', 'Circle lights on off (baseline)']],
# # # Which conditions to analyze
# 'conditions': [ 'no obstacle',['no obstacle', 'no obstacle','probe', 'probe'], ['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': [ 'open field','obstacle removed + acute OR', 'obstacle']}
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle wall down (no baseline)']],
# # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle']],
# # # what to call each condition for plots
# 'labels': ['obstacle removed']}
# Which experiments to analyze
# 'experiments': ['Circle wall down (no baseline)'],
# # # Which conditions to analyze
# 'conditions': ['no obstacle'],
# # # what to call each condition for plots
# 'labels': ['Obstacle removed (no baseline)']}
# # ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [ ['Circle wall down', 'Circle wall down (trial 1)'], ['Circle wall down', 'Circle wall down (trial 1)']], #
# # # Which conditions to analyze
# 'conditions': [ ['probe','probe'], ['probe','probe']],
# # # what to call each condition for plots
# 'labels': ['acute OR 1','acute OR 0']}
# 'experiments': [ [ 'Circle wall down (trial 1)'], [ 'Circle wall down (trial 1)']], #
# # # # Which conditions to analyze
# 'conditions': [ ['probe'], ['probe']],
# # # # what to call each condition for plots
# 'labels': ['acute OR 1','acute OR 0']}
# # ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [ 'Circle wall down'], #
# # # Which conditions to analyze
# 'conditions': [ 'probe'],
# # # what to call each condition for plots
# 'labels': ['acute OR']}
# # ''' many-condition edginess comparison (naive) '''
# # Which experiments to analyze
# 'experiments': ['Circle wall down (no baseline)', 'Circle wall down', 'Circle wall up', 'Circle wall down light (U shaped)'], #
# # # Which conditions to analyze
# 'conditions': [ 'no obstacle', 'no obstacle' , 'no obstacle', 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['obstacle removed 0 BLT', 'obstacle removed 3 BLT', 'open field', 'U']}
# # ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': ['Circle wall down',['Circle wall down', 'Circle wall down (no baseline)'],'Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': ['probe',['no obstacle', 'no obstacle'],'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['open field','obstacle removed', 'obstacle removed']}
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle wall down (no baseline)'], 'Circle void up'], #
# # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle'], 'obstacle'],
# # # what to call each condition for plots
# 'labels': [ 'obstacle removed', 'hole vs wall removed']}
# Which experiments to analyze
# 'experiments': ['Circle void up'], #
# # # Which conditions to analyze
# 'conditions': ['obstacle'],
# # # what to call each condition for plots
# 'labels': ['hole']}
# ''' many-condition edginess comparison (naive) '''
# # Which experiments to analyze
# 'experiments': ['Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': [ 'obstacle'],
# # # what to call each condition for plots
# 'labels': ['Open field']}
# Which experiments to analyze
# 'experiments': [ 'Circle wall down (no shelter)','Circle wall down (no shelter)','Circle wall down (no shelter)','Circle wall down (no shelter)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle','no obstacle','no obstacle','no obstacle'],
# # # what to call each condition for plots
# 'labels': ['Obstacle removed (no shelter)', 'Obstacle removed (no shelter)', 'Obstacle removed (no shelter)', 'Obstacle removed (no shelter)']}
# # Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle wall down (no baseline)','Circle wall down', 'Circle wall down (trial 1)'], ['Circle wall down', 'Circle wall down (no baseline)','Circle wall down', 'Circle wall down (trial 1)'],
# ['Circle wall down', 'Circle wall down (no baseline)','Circle wall down', 'Circle wall down (trial 1)'], ['Circle wall down', 'Circle wall down (no baseline)','Circle wall down', 'Circle wall down (trial 1)']], #
# # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle','probe','probe'], ['no obstacle', 'no obstacle','probe','probe'], ['no obstacle', 'no obstacle','probe','probe'], ['no obstacle', 'no obstacle','probe','probe']],
# # # what to call each condition for plots
# 'labels': ['obstacle removed 4+', 'obstacle removed 2-3', 'obstacle removed 1', 'obstacle removed 0']}
# # # Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle wall down (no baseline)'], ['Circle wall down', 'Circle wall down (no baseline)'],
# ['Circle wall down', 'Circle wall down (no baseline)'], ['Circle wall down', 'Circle wall down (no baseline)']], #
# # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle']],
# # # what to call each condition for plots
# 'labels': ['obstacle removed 4+', 'obstacle removed 2-3', 'obstacle removed 1', 'obstacle removed 0']}
# # ''' many-condition edginess comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'],['Circle wall down', 'Circle lights on off (baseline)']], #
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'], ['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['Obstacle 1', 'Obstacle 2-3']}
# ''' many-condition initial traj comparison (naive) '''
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'], ['Circle wall down', 'Circle lights on off (baseline)'],['Circle wall up', 'Circle wall up (2)'],'Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': [ ['obstacle','obstacle'], ['obstacle','obstacle'], ['probe', 'probe'],'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['Obstacle trial 2-3', 'Obstacle trial 1', 'Unexpected obstacle','Open field']}
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'],['Circle wall down', 'Circle lights on off (baseline)'], ['Circle wall down', 'Circle lights on off (baseline)'],
# ['Circle wall up', 'Circle wall up (2)'], 'Circle wall up'], #
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'], ['obstacle', 'obstacle'], ['obstacle', 'obstacle'], ['probe', 'probe'], 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['Obstacle trial 3','Obstacle trial 2', 'Obstacle trial 1', 'Unexpected obstacle', 'Open field']}
# ''' osbtacle '''
# # Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)']], #
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['Obstacle 1']}#, 'Obstacle']}
# ''' many-condition edginess comparison (experienced) '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall up (2)', 'Circle lights on off (baseline)', 'Circle wall down (no baseline no naive)', 'Circle lights on off (baseline)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'probe', 'no obstacle','probe'],
# # # what to call each condition for plots
# 'labels': ['Open field', 'null', 'obstacle removed','null']}
# ''' many-condition edginess comparison (experienced) '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall up (2)', 'Circle wall down (no baseline no naive)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['Open field', 'obstacle removed']}
# # # ''' light, obstacle '''
# Which experiments to analyze
# 'experiments': [ 'Circle lights on off (baseline)', 'Circle (dark)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['obstacle light on off baseline', 'OF lights']}
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle wall up',['Circle wall down', 'Circle lights on off (baseline)'],'Circle wall down dark', 'Circle (dark)'],
# # # Which conditions to analyze
# 'conditions': ['no obstacle',['obstacle','obstacle'],'obstacle', 'no obstacle'],
# # # what to call each condition for plots
# 'labels': ['open field light','obstacle light','obstacle dark', 'open field dark']} #'obstacle dark exp', 'U shaped dark'
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle (dark)'],#, 'Circle wall lights on off quick'],
# # # Which conditions to analyze
# 'conditions': ['no obstacle'],#, 'obstacle'],
# # # what to call each condition for plots
# 'labels': ['no obstacle dark']}#, 'obstacle acute dark']} #'obstacle dark exp', 'U shaped dark'
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle wall up'], #'Circle wall lights on off quick'],#
# # # Which conditions to analyze
# 'conditions': ['no obstacle'], #'obstacle'],#
# # # what to call each condition for plots
# 'labels': ['open field']}#,'light on off']} # , 'obstacle acute dark']} #'obstacle dark exp', 'U shaped dark'
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle wall down (dark non naive)', 'Circle (dark)'], #
# # # Which conditions to analyze
# 'conditions': ['obstacle', 'no obstacle'], #
# # # what to call each condition for plots
# 'labels': [ 'obstacle dark', 'no obstacle dark']} #
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle lights on off (baseline)','Circle wall lights on off quick','Circle (dark)'],
# # # Which conditions to analyze
# 'conditions': [ 'no obstacle', 'obstacle','no obstacle'],
# # # what to call each condition for plots
# 'labels': ['light on off', 'light on off quick', 'open field dark']}
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle (dark)','Circle lights on off (baseline)','Circle wall lights on off quick','Circle wall down dark','Circle wall down (dark non naive)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle', 'obstacle', 'obstacle', 'obstacle'], #
# # # what to call each condition for plots
# 'labels': ['no obstacle dark','light on off', 'light on off quick', 'obstacle dark' , 'obstacle dark NN']} #
# ''' dark, obstacle '''
# Which experiments to analyze
# 'experiments': ['Circle (dark)', 'Circle wall lights on off quick', 'Circle wall down dark', 'Circle wall down (dark non naive)'], #
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'obstacle', 'obstacle', 'obstacle'], #
# # # what to call each condition for plots
# 'labels': ['no obstacle dark', 'light on off quick', 'obstacle dark', 'obstacle dark NN']} #
# # # ''' dark, U-shaped obstacle '''
# # Which experiments to analyze
# 'experiments': ['Circle wall down dark (U shaped)'], #
# # # Which conditions to analyze
# 'conditions': ['obstacle'],
# # # what to call each condition for plots
# 'labels': ['U shaped dark']}
# ''' shelter on side '''
# # Which experiments to analyze
# 'experiments': ['Circle wall (shelter on side)',], #'Circle void (shelter on side)',
# # # Which conditions to analyze
# 'conditions': ['obstacle'], #'obstacle',
# # # what to call each condition for plots
# 'labels': [ 'wall SOS']} #'hole SOS',
# #''' obstacle present '''
# Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'] , ['Circle wall down', 'Circle wall down (no baseline)']],
# # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'], ['no obstacle', 'no obstacle']],
# # what to call each condition for plots
# 'labels': ['Obstacle', 'OR']}
# ''' obstacle removed '''
# Which experiments to analyze
# 'experiments': ['Circle wall down','Circle wall down (no baseline)'],
# # Which conditions to analyze
# 'conditions': ['no obstacle','no obstacle'], #,['obstacle', 'obstacle'], 'no obstacle'],
# # what to call each condition for plots
# 'labels': ['Obstacle removed', 'OR no baseline']} #, 'obstacle','obstacle long']}
# ''' obstacle removed00 '''
# Which experiments to analyze
# 'experiments': ['Circle wall down (trial 1)'],
# # Which conditions to analyze
# 'conditions': ['no obstacle'], # ,['obstacle', 'obstacle'], 'no obstacle'],
# # what to call each condition for plots
# 'labels': ['or tr 1']} # , 'obstacle','obstacle long']}
# # ''' obstacle removed for efficiency plot '''
# # Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle wall down (no baseline)', 'Circle wall down (no baseline no naive)'], ['Circle wall down', 'Circle wall down (no baseline)', 'Circle wall down (no baseline no naive)'], ['Circle wall up', 'Circle wall up (2)']],
# # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle']],
# # what to call each condition for plots
# 'labels': ['Obstacle removed', 'Open field' , 'OR (exp)', 'OF (exp)']}
# # # ''' obstacle removed (experienced) '''
# # Which experiments to analyze
# 'experiments': ['Circle wall down (no baseline no naive)', 'Circle wall up (2)'], #'Circle wall down light (U shaped)', 'Circle wall (11 shaped)',
# # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle'], #'no obstacle', 'obstacle',
# # what to call each condition for plots
# 'labels': ['Obstacle removed (exp)', 'Open field (exp)']} #'U-shaped', '11-shaped',
# # ''' all obstacle present vs open field '''
# # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle wall up (2)', 'Circle wall down'], ['Circle wall down', 'Circle lights on off (baseline)','Circle wall up', 'Circle wall up (2)']], #
# # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle', 'no obstacle'], ['obstacle', 'obstacle','obstacle', 'obstacle']],
# # what to call each condition for plots
# 'labels': ['Open field', 'Obstacle']}
# # ''' obstacle present vs open field '''
# # Which experiments to analyze
# 'experiments': [ ['Circle wall down', 'Circle lights on off (baseline)'], 'Circle wall up'], #
# # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'],'no obstacle'],
# # what to call each condition for plots
# 'labels': ['Open field', 'Obstacle']}
# # ''' U-shaped and 11-shaped '''
# # Which experiments to analyze
# 'experiments': ['Circle wall down light (U shaped)'], #
# # Which conditions to analyze
# 'conditions': ['no obstacle'],
# # what to call each condition for plots
# 'labels': ['U shaped']}
# # # ''' U-shaped and 11-shaped '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall down light (U shaped)', ['Circle wall (11 shaped)', 'Circle wall down light (U shaped)']], #
# # Which conditions to analyze
# 'conditions': ['obstacle', ['no obstacle', 'no obstacle']],
# # what to call each condition for plots
# 'labels': ['U shaped', '11 shaped']}
# # ''' 11-shaped '''
# Which experiments to analyze
# 'experiments': ['Circle wall (11 shaped)'], #
# # Which conditions to analyze
# 'conditions': ['obstacle'],
# # what to call each condition for plots
# 'labels': ['11 shaped']}
# # ''' exploration comparison '''
# # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle wall up (2)', 'Circle wall down'], ['Circle wall down', 'Circle lights on off (baseline)','Circle wall up', 'Circle wall up (2)'],
# 'Circle void up', 'Circle wall (no shelter)', 'Circle void (no shelter)', 'Circle (no shelter)'],
# # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle', 'no obstacle'], ['obstacle', 'obstacle','obstacle', 'obstacle'],'obstacle','obstacle','obstacle', 'no obstacle'],
# # what to call each condition for plots
# 'labels': ['Open field', 'Obstacle', 'Hole obstacle', 'Wall no shelter','Hole no shelter','Empty']}
# # ''' hole obstacle '''
# Which experiments to analyze
# 'experiments': [['Circle void up'], ['Circle wall down', 'Circle lights on off (baseline)']], #
# # Which conditions to analyze
# 'conditions': [['obstacle'], ['obstacle', 'obstacle']],
# # what to call each condition for plots
# 'labels': ['Hole obstacle', 'Wall obstacle']}
# # ''' Lights on -> off '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall lights on off quick', 'Circle lights on off (baseline)'],
# # Which conditions to analyze
# 'conditions': ['obstacle', 'no obstacle'],
# # what to call each condition for plots
# 'labels': ['lights on off (no baseline)','lights on off (baseline)']}
# # ''' Lights on -> off '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall up', 'Circle wall lights on off quick', ['Circle wall down', 'Circle lights on off (baseline)']],
# # Which conditions to analyze
# 'conditions': ['no obstacle','obstacle', ['obstacle', 'obstacle']],
# # what to call each condition for plots
# 'labels': ['open field','lights on off (baseline)', 'obstacle']}
# # ''' no obstacle/wall up '''
# # Which experiments to analyze
# 'experiments': [['Circle wall down (trial 1)', 'Circle wall down'],['Circle wall down (trial 1)', 'Circle wall down']], #
# # Which conditions to analyze
# 'conditions': [['probe', 'probe'],['probe', 'probe']],
# # # what to call each condition for plots
# 'labels': ['no evs','evs']}
# # ''' no obstacle/wall up '''
# # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle wall up (2)']], #
# # # Which conditions to analyze
# 'conditions': [['probe', 'probe']],
# # # # what to call each condition for plots
# 'labels': ['wall up']}
# # ''' no obstacle/wall up '''
# # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle wall up (2)'],['Circle wall up', 'Circle wall up (2)'],['Circle wall up', 'Circle wall up (2)']], #
# # Which conditions to analyze
# 'conditions': [['probe', 'probe'],['obstacle', 'obstacle'], ['no obstacle', 'no obstacle']],
# # # what to call each condition for plots
# 'labels': ['wall up', 'obstacle added', 'open field']} #''Open field (naive)', 'Open field (exp)']}
# ''' square wall moves left '''
# Which experiments to analyze
# 'experiments': [ ['Square wall moves right', 'Square wall left'],'Square wall moves left', 'Square wall moves left'], #, 'Square wall moves right'], #
# # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle'],'obstacle', 'no obstacle'], #, 'obstacle'], #
# # what to call each condition for plots
# 'labels': ['obstacle short', 'wall shortened', 'obstacle long']} #, 'wall lengthened']} #
# ''' square wall moves left '''
# Which experiments to analyze
# 'experiments': ['Square wall moves right', ['Square wall moves right', 'Square wall left'], 'Square wall moves left' ], #
# # Which conditions to analyze
# 'conditions': ['obstacle', ['no obstacle', 'no obstacle'], 'obstacle'], #
# # what to call each condition for plots
# 'labels': ['wall lengthened', 'obstacle short', 'wall shortened']} #
# ''' square wall moves left '''
# Which experiments to analyze
# 'experiments': [ 'Square wall moves left', ['Square wall moves right', 'Square wall left', 'Square wall moves left'], 'Square wall moves right'],
# # Which conditions to analyze
# 'conditions': [ 'obstacle', ['no obstacle', 'no obstacle', 'no obstacle'], 'obstacle'], #
# # what to call each condition for plots
# 'labels': [ 'wall shortened','obstacle short', 'wall lengthened']} #
# # ''' square wall moves left '''
# # Which experiments to analyze
# 'experiments': [['Square wall moves left', 'Square wall moves right'], ['Square wall moves right', 'Square wall left', 'Square wall moves left']],
# # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle'], ['no obstacle', 'no obstacle', 'no obstacle']], #
# # what to call each condition for plots
# 'labels': ['wall shortened', 'consistent', 'wall lengthened']} #
# ''' square wall moves left '''
# Which experiments to analyze
# 'experiments': ['Square wall moves right'],
# # Which conditions to analyze
# 'conditions': ['obstacle', ], #
# # what to call each condition for plots
# 'labels': ['wall lengthened']} #
# ''' square wall moves left '''
# Which experiments to analyze
# 'experiments': ['Square wall moves right', 'Square wall moves left' ], #
# # Which conditions to analyze
# 'conditions': ['obstacle', 'no obstacle'], #
# # what to call each condition for plots
# 'labels': ['wall lengthened', 'obstacle long']} #
# # ''' no obstacle/wall up '''
# # Which experiments to analyze
# 'experiments': ['Circle wall (no shelter)'], #
# # # # Which conditions to analyze
# 'conditions': ['obstacle'],
# # # # # what to call each condition for plots
# 'labels': ['wall no shelter']}
# ''' food expts '''
# Which expfferiments to analyze
# 'experiments': ['Circle food wall down', ['Circle food', 'Circle food wall up']], #'Circle food wall down'], #
# # Which conditions to analyze
# 'conditions': [ 'no obstacle', ['no obstacle', 'no obstacle']], #'obstacle'], #
# # what to call each condition for plots
# 'labels': ['Food wall down', 'Food open field']} #'Food obstacle']} #
# # Which experiments to analyze
# 'experiments': ['Circle food wall down'],
# # Which conditions to analyze
# 'conditions': ['obstacle'],
# # what to call each condition for plots
# 'labels': ['Food obstacle']}
# # # ''' food wall down expts '''
# Which experiments to analyze
# 'experiments': ['Circle food wall down'],# ['Circle wall down', 'Circle wall down (no baseline)']],
# # Which conditions to analyze
# 'conditions': ['no obstacle'],# ['no obstacle','no obstacle']],
# # what to call each condition for plots
# 'labels': ['Food wall down', 'Escape wall down']}
# # # ''' food vs escape '''
# # Which experiments to analyze
'experiments': [['Circle food', 'Circle food wall up', 'Circle food wall down', 'Circle food wall down'],
['Circle wall up', 'Circle wall down (no shelter)', 'Circle wall down', 'Circle wall down (no baseline)',
'Circle wall down', 'Circle lights on off (baseline)', 'Circle wall up (2)', 'Circle wall down (no baseline no naive)']],
# Which conditions to analyze
'conditions': [['no obstacle', 'no obstacle', 'no obstacle', 'obstacle'],
['no obstacle', 'no obstacle', 'no obstacle', 'no obstacle','obstacle', 'obstacle', 'no obstacle', 'no obstacle']],
# what to call each condition for plots
'labels': ['Food', 'Escape']}
# ''' many-condition traversal comparison '''
# # # Which experiments to analyze
# 'experiments': ['Circle food', 'Circle food wall down', 'Circle food wall down', ['Circle wall up', 'Circle wall up (2)'], ['Circle wall down', 'Circle wall down (no baseline)'],
# ['Circle wall down', 'Circle lights on off (baseline)']],
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle', 'obstacle', ['no obstacle', 'no obstacle'], ['no obstacle', 'no obstacle'],
# ['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['Open field food', 'Obstacle removed food', 'Obstacle food', 'Open field escape', 'Obstacle removed escape',
# 'Obstacle escape']}
# ''' 3-condition traversal comparison '''
# # # Which experiments to analyze
# 'experiments': [['Circle wall up'], ['Circle wall down', 'Circle wall down (no baseline)'], ['Circle wall down', 'Circle lights on off (baseline)']],
# # # # Which conditions to analyze
# 'conditions': [['no obstacle'], ['no obstacle', 'no obstacle'], ['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['Open field escape', 'Obstacle removed escape', 'Obstacle escape']}
# # ''' spontaneous edge vector comparison '''
# # # Which experiments to analyze
# 'experiments': ['Circle wall up', 'Circle (no shelter)', 'Circle void up','Circle void (no shelter)',
# ['Circle wall down', 'Circle lights on off (baseline)'], ['Circle wall down (no shelter)', 'Circle wall (no shelter)'] ],
# # # Which conditions to analyze
# 'conditions': ['no obstacle', 'no obstacle','obstacle', 'obstacle', ['obstacle', 'obstacle'], ['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['open field', 'open field (no shelter)', 'hole obstacle', 'hole obstacle (no shelter)','obstacle', 'obstacle (no shelter)']}
# # ''' spontaneous edge vector comparison '''
# # # Which experiments to analyze
# 'experiments': [['Circle wall up', 'Circle (no shelter)'], ['Circle void up', 'Circle void (no shelter)'],
# ['Circle wall down', 'Circle lights on off (baseline)', 'Circle wall down (no shelter)', 'Circle wall (no shelter)']],
# # # Which conditions to analyze
# 'conditions': [['no obstacle', 'no obstacle'], ['obstacle', 'obstacle'], ['obstacle', 'obstacle', 'obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['open field', 'hole obstacle', 'obstacle']}
# # ''' spontaneous edge vector comparison '''
# # # Which experiments to analyze
# 'experiments': [['Circle wall down', 'Circle lights on off (baseline)'] ],
# # # Which conditions to analyze
# 'conditions': [['obstacle', 'obstacle']],
# # # what to call each condition for plots
# 'labels': ['obstacle']}
#
# # ''' spontaneous edge vector comparison '''
# # Which experiments to analyze
# 'experiments': ['Circle void up'], #
# # # Which conditions to analyze
# 'conditions': [ 'obstacle'],
# # # what to call each condition for plots
# 'labels': ['hole obstacle']}
# # ''' spontaneous edge vector comparison II '''
# # Which experiments to analyze
# 'experiments': ['Circle wall down (no shelter)'], #
# # # Which conditions to analyze
# 'conditions': ['obstacle'],
# # # what to call each condition for plots
# 'labels': ['obstacle down no shelter']}
# ''' obstacle no shelter '''
# # Which experiments to analyze
# 'experiments': ['Circle wall (no shelter)'], #
# # # Which conditions to analyze
# 'conditions': [ 'obstacle'],
# # # what to call each condition for plots
# 'labels': ['obstacle (no shelter)']}f
# ''' goal directed '''
# Which experiments to analyze
# 'experiments': ['Circle wall down shelter move', ['Circle wall down', 'Circle wall down (no baseline)']], #
# # # Which conditions to analyze
# 'conditions': [ 'no obstacle', ['no obstacle', 'no obstacle']],
# # # what to call each condition for plots
# 'labels': ['obstacle removed (shelter move)', 'obstacle removed']}
''' MISC '''
# DeepLabCut options
object.dlc_settings = {
'clips_folder': 'D:\\data\\Paper',
'dlc_network_posecfg': 'D:\\data\\DLC_nets\\Barnes-Philip-2018-11-22\\dlc-models\\iteration-9\\Barnes2018-11-22-trainset95shuffle1\\test',
'dlc_network_snapshot': 'D:\\data\\DLC_nets\\Barnes-Philip-2018-11-22\\dlc-models\\iteration-9\\Barnes2018-11-22-trainset95shuffle1\\train\\snapshot-1000000',
'scorer': 'DeepCut_resnet101_Philip_50000',
'config_file': 'D:\\data\\DLC_nets\\Barnes-Philip-2018-11-22\\config.yaml',
'body parts': ['nose','L eye','R eye','L ear','neck','R ear','L shoulder','upper back','R shoulder','L hind limb','Lower back','R hind limb','derriere'],
'inverse_fisheye_map_location': 'C:\\Drive\\DLC\\arena_files\\inverse_fisheye_maps.npy' }
# folders where things are saved
object.folders = {
'excel_path': 'D:\\data\\experiments_paper.xlsx',
'save_folder': 'D:\\data',
'DLC_folder': 'C:\\Drive\\Behaviour\\DeepLabCut',
'fisheye_map_location': 'C:\\Drive\\DLC\\arena_files\\fisheye_maps.npy' }