This script checks if all the ROI atlases in functional space have all the ROIs


In [1]:
import numpy as np
import nibabel as nib

In [ ]:


In [2]:
atlas_path = '/home1/varunk/results_again_again/ABIDE1_Preprocess_Datasink/atlas_paths/atlas_file_list.npy'
atlas_files = np.load(atlas_path)

In [3]:
atlas_files[41]


Out[3]:
'/home1/varunk/results_again_again/ABIDE1_Preprocess/motion_correction_bet/coreg_reg/atlas_resize_reg_directory/_subject_id_0050045/std2func_xform/fullbrain_atlas_thr0-2mm_resample_flirt.nii'

In [4]:
in_file = atlas_files[40]
atlas_values_list = nib.load(in_file).get_data().ravel()

In [5]:
universe = set(np.arange(274))

In [6]:
universe - set(atlas_values_list)


Out[6]:
{255}

In [7]:
set(atlas_values_list);

In [8]:
# Now the real code:
import re
universe = set(np.arange(274))
missing_ROIs = []
for index,in_file in enumerate(atlas_files):
    sub_id_extracted = re.search('.+_subject_id_(\d+)', in_file).group(1)
    print(sub_id_extracted)
    atlas_values = nib.load(in_file).get_data()
    atlas_values_list = atlas_values.ravel()
    atlas_values_max = max(atlas_values_list)  
    missing_ROIs.append((index,sub_id_extracted,list(universe - set(atlas_values_list)),atlas_values_max))


0050002
0050003
0050004
0050005
0050006
0050007
0050008
0050009
0050010
0050011
0050012
0050013
0050014
0050015
0050016
0050017
0050019
0050020
0050022
0050023
0050024
0050025
0050026
0050027
0050028
0050029
0050030
0050031
0050032
0050033
0050034
0050035
0050036
0050037
0050038
0050039
0050040
0050041
0050042
0050043
0050044
0050045
0050046
0050047
0050048
0050049
0050050
0050051
0050052
0050053
0050054
0050055
0050056
0050057
0050058
0050059
0050060
0050102
0050103
0050104
0050105
0050106
0050107
0050108
0050109
0050110
0050111
0050112
0050113
0050114
0050115
0050116
0050117
0050118
0050119
0050120
0050121
0050122
0050123
0050124
0050125
0050126
0050127
0050128
0050129
0050130
0050131
0050132
0050133
0050134
0050135
0050136
0050137
0050142
0050143
0050144
0050145
0050146
0050147
0050148
0050149
0050150
0050152
0050153
0050155
0050156
0050157
0050158
0050159
0050160
0050161
0050162
0050163
0050164
0050165
0050166
0050167
0050168
0050169
0050170
0050171
0050182
0050183
0050184
0050185
0050186
0050187
0050188
0050189
0050190
0050191
0050192
0050193
0050194
0050195
0050196
0050197
0050198
0050199
0050200
0050201
0050202
0050203
0050204
0050205
0050206
0050207
0050208
0050209
0050210
0050211
0050212
0050213
0050214
0050215
0050216
0050217
0050232
0050233
0050234
0050235
0050236
0050237
0050238
0050239
0050240
0050241
0050242
0050243
0050244
0050245
0050246
0050247
0050248
0050249
0050250
0050251
0050252
0050253
0050254
0050255
0050257
0050259
0050260
0050261
0050262
0050263
0050264
0050265
0050266
0050267
0050268
0050269
0050270
0050271
0050272
0050273
0050274
0050275
0050276
0050277
0050278
0050279
0050280
0050281
0050282
0050283
0050284
0050285
0050286
0050287
0050288
0050289
0050290
0050291
0050292
0050293
0050294
0050295
0050296
0050297
0050298
0050299
0050300
0050301
0050302
0050303
0050304
0050305
0050306
0050307
0050308
0050309
0050310
0050311
0050312
0050313
0050314
0050315
0050316
0050317
0050318
0050319
0050320
0050321
0050322
0050323
0050324
0050325
0050326
0050327
0050328
0050329
0050330
0050331
0050332
0050333
0050334
0050335
0050336
0050337
0050338
0050339
0050340
0050341
0050342
0050343
0050344
0050345
0050346
0050347
0050348
0050349
0050350
0050351
0050352
0050353
0050354
0050355
0050356
0050357
0050358
0050359
0050360
0050361
0050362
0050363
0050364
0050365
0050366
0050367
0050368
0050369
0050370
0050371
0050372
0050373
0050374
0050375
0050376
0050377
0050378
0050379
0050380
0050381
0050382
0050383
0050385
0050386
0050387
0050388
0050390
0050391
0050397
0050399
0050402
0050403
0050404
0050405
0050406
0050407
0050408
0050410
0050411
0050412
0050413
0050414
0050415
0050416
0050417
0050418
0050419
0050421
0050422
0050423
0050424
0050425
0050426
0050427
0050428
0050432
0050433
0050434
0050435
0050436
0050437
0050438
0050439
0050440
0050441
0050442
0050443
0050444
0050445
0050446
0050447
0050448
0050449
0050450
0050451
0050452
0050453
0050454
0050455
0050456
0050457
0050458
0050459
0050460
0050461
0050462
0050463
0050464
0050465
0050466
0050467
0050468
0050469
0050470
0050471
0050472
0050473
0050474
0050475
0050476
0050477
0050478
0050479
0050480
0050481
0050482
0050483
0050484
0050485
0050486
0050487
0050488
0050489
0050490
0050491
0050492
0050493
0050494
0050495
0050496
0050497
0050498
0050499
0050500
0050501
0050502
0050503
0050504
0050505
0050506
0050507
0050508
0050509
0050510
0050511
0050512
0050513
0050514
0050515
0050516
0050517
0050518
0050519
0050520
0050521
0050522
0050523
0050524
0050525
0050526
0050527
0050528
0050529
0050530
0050531
0050532
0050551
0050552
0050553
0050554
0050555
0050556
0050557
0050558
0050559
0050560
0050561
0050562
0050563
0050564
0050565
0050566
0050567
0050568
0050569
0050570
0050571
0050572
0050573
0050574
0050575
0050576
0050577
0050578
0050601
0050602
0050603
0050604
0050605
0050606
0050607
0050608
0050609
0050610
0050611
0050612
0050613
0050614
0050615
0050616
0050617
0050618
0050619
0050620
0050621
0050622
0050623
0050624
0050625
0050626
0050627
0050628
0050642
0050643
0050644
0050645
0050646
0050647
0050648
0050649
0050650
0050651
0050652
0050653
0050654
0050655
0050656
0050657
0050658
0050659
0050660
0050661
0050663
0050664
0050665
0050666
0050667
0050668
0050669
0050682
0050683
0050685
0050686
0050687
0050688
0050689
0050690
0050691
0050692
0050693
0050694
0050695
0050696
0050697
0050698
0050699
0050700
0050701
0050702
0050703
0050704
0050705
0050706
0050707
0050708
0050709
0050710
0050711
0050722
0050723
0050724
0050725
0050726
0050727
0050728
0050730
0050731
0050732
0050733
0050734
0050735
0050736
0050737
0050738
0050739
0050740
0050741
0050742
0050743
0050744
0050745
0050746
0050747
0050748
0050749
0050750
0050751
0050752
0050753
0050754
0050755
0050756
0050757
0050772
0050773
0050774
0050775
0050776
0050777
0050778
0050779
0050780
0050781
0050782
0050783
0050784
0050785
0050786
0050787
0050788
0050789
0050790
0050791
0050792
0050793
0050794
0050795
0050796
0050797
0050798
0050799
0050800
0050801
0050802
0050803
0050804
0050805
0050806
0050807
0050808
0050809
0050810
0050811
0050812
0050813
0050814
0050815
0050816
0050817
0050818
0050819
0050820
0050821
0050822
0050823
0050824
0050825
0050826
0050952
0050953
0050954
0050955
0050956
0050957
0050958
0050959
0050960
0050961
0050962
0050964
0050965
0050966
0050967
0050968
0050969
0050970
0050971
0050972
0050973
0050974
0050975
0050976
0050977
0050978
0050979
0050980
0050981
0050982
0050983
0050984
0050985
0050986
0050987
0050988
0050989
0050990
0050991
0050992
0050993
0050994
0050995
0050996
0050997
0050998
0050999
0051000
0051001
0051002
0051003
0051006
0051007
0051008
0051009
0051010
0051011
0051012
0051013
0051014
0051015
0051016
0051017
0051018
0051019
0051020
0051021
0051023
0051024
0051025
0051026
0051027
0051028
0051029
0051030
0051032
0051033
0051034
0051035
0051036
0051038
0051039
0051040
0051041
0051042
0051044
0051045
0051046
0051047
0051048
0051049
0051050
0051051
0051052
0051053
0051054
0051055
0051056
0051057
0051058
0051059
0051060
0051061
0051062
0051063
0051064
0051065
0051066
0051067
0051068
0051069
0051070
0051071
0051072
0051073
0051074
0051075
0051076
0051077
0051078
0051079
0051080
0051081
0051082
0051083
0051084
0051085
0051086
0051087
0051088
0051089
0051090
0051091
0051093
0051094
0051095
0051096
0051097
0051098
0051099
0051100
0051101
0051102
0051103
0051104
0051105
0051106
0051107
0051108
0051109
0051110
0051111
0051112
0051113
0051114
0051115
0051116
0051117
0051118
0051119
0051120
0051121
0051122
0051123
0051124
0051125
0051126
0051127
0051128
0051129
0051130
0051131
0051132
0051133
0051134
0051135
0051136
0051137
0051138
0051139
0051140
0051141
0051142
0051146
0051147
0051148
0051149
0051150
0051151
0051152
0051153
0051154
0051155
0051156
0051159
0051160
0051161
0051162
0051163
0051164
0051165
0051166
0051167
0051168
0051169
0051170
0051171
0051172
0051173
0051174
0051175
0051176
0051177
0051178
0051179
0051180
0051181
0051182
0051183
0051184
0051185
0051186
0051187
0051188
0051189
0051190
0051191
0051192
0051193
0051194
0051195
0051196
0051197
0051198
0051199
0051201
0051202
0051203
0051204
0051205
0051206
0051207
0051208
0051209
0051210
0051211
0051212
0051213
0051214
0051215
0051216
0051217
0051218
0051219
0051220
0051221
0051222
0051223
0051224
0051225
0051226
0051227
0051228
0051229
0051230
0051231
0051234
0051235
0051236
0051237
0051238
0051239
0051240
0051241
0051248
0051249
0051250
0051251
0051252
0051253
0051254
0051255
0051256
0051257
0051258
0051259
0051260
0051261
0051262
0051263
0051264
0051265
0051266
0051267
0051268
0051269
0051271
0051272
0051273
0051274
0051275
0051276
0051277
0051278
0051279
0051280
0051281
0051282
0051291
0051292
0051293
0051294
0051295
0051296
0051297
0051298
0051299
0051300
0051301
0051302
0051303
0051304
0051305
0051306
0051307
0051308
0051309
0051311
0051312
0051313
0051314
0051315
0051316
0051317
0051318
0051319
0051320
0051321
0051322
0051323
0051324
0051325
0051326
0051327
0051328
0051329
0051330
0051331
0051332
0051333
0051334
0051335
0051336
0051338
0051339
0051340
0051341
0051342
0051343
0051344
0051345
0051346
0051347
0051348
0051349
0051350
0051351
0051352
0051353
0051354
0051355
0051356
0051357
0051358
0051359
0051360
0051361
0051362
0051363
0051364
0051365
0051366
0051367
0051368
0051369
0051370
0051371
0051372
0051373
0051456
0051457
0051458
0051459
0051460
0051461
0051462
0051463
0051464
0051465
0051466
0051467
0051468
0051469
0051470
0051471
0051472
0051473
0051474
0051475
0051476
0051477
0051478
0051479
0051480
0051481
0051482
0051483
0051484
0051485
0051486
0051487
0051488
0051489
0051490
0051491
0051492
0051493
0051556
0051557
0051558
0051559
0051560
0051561
0051562
0051563
0051564
0051565
0051566
0051567
0051568
0051569
0051570
0051571
0051572
0051573
0051574
0051575
0051576
0051577
0051578
0051579
0051580
0051581
0051582
0051583
0051584
0051585
0051606
0051607

In [9]:
missing_ROIs


Out[9]:
[(0, '0050002', [255], 274.0),
 (1, '0050003', [255], 274.0),
 (2, '0050004', [255], 274.0),
 (3, '0050005', [255], 274.0),
 (4, '0050006', [255], 274.0),
 (5, '0050007', [255], 274.0),
 (6, '0050008', [255], 274.0),
 (7, '0050009', [255], 274.0),
 (8, '0050010', [255], 274.0),
 (9, '0050011', [266, 268, 255], 274.0),
 (10, '0050012', [261, 255], 274.0),
 (11, '0050013', [255], 274.0),
 (12, '0050014', [255], 274.0),
 (13, '0050015', [255], 274.0),
 (14, '0050016', [255], 274.0),
 (15, '0050017', [266, 255], 274.0),
 (16, '0050019', [255], 274.0),
 (17, '0050020', [255], 274.0),
 (18, '0050022', [255], 274.0),
 (19, '0050023', [255], 274.0),
 (20, '0050024', [255], 274.0),
 (21, '0050025', [255], 274.0),
 (22, '0050026', [255], 274.0),
 (23, '0050027', [255], 274.0),
 (24, '0050028', [255], 274.0),
 (25, '0050029', [255], 274.0),
 (26, '0050030', [255], 274.0),
 (27, '0050031', [255], 274.0),
 (28, '0050032', [255], 274.0),
 (29, '0050033', [255], 274.0),
 (30, '0050034', [255], 274.0),
 (31, '0050035', [260, 262, 266, 268, 255], 274.0),
 (32, '0050036', [261, 255], 274.0),
 (33, '0050037', [255], 274.0),
 (34, '0050038', [261, 255], 274.0),
 (35, '0050039', [255], 274.0),
 (36, '0050040', [255], 274.0),
 (37, '0050041', [266, 255], 274.0),
 (38, '0050042', [255], 274.0),
 (39, '0050043', [255], 274.0),
 (40, '0050044', [255], 274.0),
 (41, '0050045', [260, 262, 263, 265, 266, 267, 268, 272, 255], 273.0),
 (42, '0050046', [255], 274.0),
 (43, '0050047', [255], 274.0),
 (44, '0050048', [255], 274.0),
 (45, '0050049', [255], 274.0),
 (46, '0050050', [266, 268, 255], 274.0),
 (47, '0050051', [255], 274.0),
 (48, '0050052', [255], 274.0),
 (49, '0050053', [255], 274.0),
 (50, '0050054', [255], 274.0),
 (51, '0050055', [261, 255], 274.0),
 (52, '0050056', [255], 274.0),
 (53, '0050057', [255], 274.0),
 (54, '0050058', [255], 274.0),
 (55, '0050059', [255], 274.0),
 (56, '0050060', [255], 274.0),
 (57, '0050102', [255], 274.0),
 (58, '0050103', [255], 274.0),
 (59, '0050104', [255], 274.0),
 (60, '0050105', [255], 274.0),
 (61, '0050106', [261, 255], 274.0),
 (62, '0050107', [255], 274.0),
 (63, '0050108', [255], 274.0),
 (64, '0050109', [255], 274.0),
 (65, '0050110', [255], 274.0),
 (66, '0050111', [261, 255], 274.0),
 (67, '0050112', [255], 274.0),
 (68, '0050113', [261, 255], 274.0),
 (69, '0050114', [255], 274.0),
 (70, '0050115', [255], 274.0),
 (71, '0050116', [261, 255], 274.0),
 (72, '0050117', [255], 274.0),
 (73, '0050118', [261, 255], 274.0),
 (74, '0050119', [255], 274.0),
 (75, '0050120', [255], 274.0),
 (76, '0050121', [255], 274.0),
 (77, '0050122', [255], 274.0),
 (78, '0050123', [255], 274.0),
 (79, '0050124', [261, 255], 274.0),
 (80, '0050125', [255], 274.0),
 (81, '0050126', [261, 255], 274.0),
 (82, '0050127', [255], 274.0),
 (83, '0050128', [261, 255], 274.0),
 (84, '0050129', [255], 274.0),
 (85, '0050130', [255], 274.0),
 (86, '0050131', [255], 274.0),
 (87, '0050132', [255], 274.0),
 (88, '0050133', [255], 274.0),
 (89, '0050134', [255], 274.0),
 (90, '0050135', [261, 255], 274.0),
 (91, '0050136', [255], 274.0),
 (92, '0050137', [261, 255], 274.0),
 (93, '0050142', [261, 255], 274.0),
 (94, '0050143', [255], 274.0),
 (95, '0050144', [255], 274.0),
 (96, '0050145', [255], 274.0),
 (97, '0050146', [255], 274.0),
 (98, '0050147', [255], 274.0),
 (99, '0050148', [261, 255], 274.0),
 (100, '0050149', [255], 274.0),
 (101, '0050150', [255], 274.0),
 (102, '0050152', [255], 274.0),
 (103, '0050153', [255], 274.0),
 (104, '0050155', [255], 274.0),
 (105, '0050156', [255], 274.0),
 (106, '0050157', [255], 274.0),
 (107, '0050158', [255], 274.0),
 (108, '0050159', [255], 274.0),
 (109, '0050160', [255], 274.0),
 (110, '0050161', [255], 274.0),
 (111, '0050162', [255], 274.0),
 (112, '0050163', [255], 274.0),
 (113, '0050164', [255], 274.0),
 (114, '0050165', [255], 274.0),
 (115, '0050166', [255], 274.0),
 (116, '0050167', [255], 274.0),
 (117, '0050168', [255], 274.0),
 (118, '0050169', [255], 274.0),
 (119, '0050170', [255], 274.0),
 (120, '0050171', [255], 274.0),
 (121, '0050182', [255], 274.0),
 (122, '0050183', [255], 274.0),
 (123, '0050184', [255], 274.0),
 (124, '0050185', [255], 274.0),
 (125, '0050186', [255], 274.0),
 (126, '0050187', [255], 274.0),
 (127, '0050188', [255], 274.0),
 (128, '0050189', [255], 274.0),
 (129, '0050190', [255], 274.0),
 (130, '0050191', [255], 274.0),
 (131, '0050192', [261, 255], 274.0),
 (132, '0050193', [255], 274.0),
 (133, '0050194', [255], 274.0),
 (134, '0050195', [255], 274.0),
 (135, '0050196', [261, 255], 274.0),
 (136, '0050197', [255], 274.0),
 (137, '0050198', [255], 274.0),
 (138, '0050199', [261, 255], 274.0),
 (139, '0050200', [255], 274.0),
 (140, '0050201', [255], 274.0),
 (141, '0050202', [255], 274.0),
 (142, '0050203', [255], 274.0),
 (143, '0050204', [255], 274.0),
 (144, '0050205', [255], 274.0),
 (145, '0050206', [255], 274.0),
 (146, '0050207', [255], 274.0),
 (147, '0050208', [255], 274.0),
 (148, '0050209', [255], 274.0),
 (149, '0050210', [255], 274.0),
 (150, '0050211', [255], 274.0),
 (151, '0050212', [255], 274.0),
 (152, '0050213', [255], 274.0),
 (153, '0050214', [255], 274.0),
 (154, '0050215', [255], 274.0),
 (155, '0050216', [255], 274.0),
 (156, '0050217', [255], 274.0),
 (157, '0050232', [255], 274.0),
 (158, '0050233', [255], 274.0),
 (159, '0050234', [255], 274.0),
 (160, '0050235', [255], 274.0),
 (161, '0050236', [255], 274.0),
 (162, '0050237', [255], 274.0),
 (163, '0050238', [255], 274.0),
 (164, '0050239', [255], 274.0),
 (165, '0050240', [255], 274.0),
 (166, '0050241', [255], 274.0),
 (167, '0050242', [255], 274.0),
 (168, '0050243', [255], 274.0),
 (169, '0050244', [255], 274.0),
 (170, '0050245', [255], 274.0),
 (171, '0050246', [255], 274.0),
 (172, '0050247', [255], 274.0),
 (173, '0050248', [255], 274.0),
 (174, '0050249', [255], 274.0),
 (175, '0050250', [255], 274.0),
 (176, '0050251', [255], 274.0),
 (177, '0050252', [255], 274.0),
 (178, '0050253', [255], 274.0),
 (179, '0050254', [255], 274.0),
 (180, '0050255', [255], 274.0),
 (181, '0050257', [255], 274.0),
 (182, '0050259', [255], 274.0),
 (183, '0050260', [255], 274.0),
 (184, '0050261', [255], 274.0),
 (185, '0050262', [255], 274.0),
 (186, '0050263', [255], 274.0),
 (187, '0050264', [255], 274.0),
 (188, '0050265', [255], 274.0),
 (189, '0050266', [255], 274.0),
 (190, '0050267', [255], 274.0),
 (191, '0050268', [255], 274.0),
 (192, '0050269', [255], 274.0),
 (193, '0050270', [255], 274.0),
 (194, '0050271', [255], 274.0),
 (195, '0050272', [255], 274.0),
 (196, '0050273', [255], 274.0),
 (197, '0050274', [255], 274.0),
 (198, '0050275', [255], 274.0),
 (199, '0050276', [255], 274.0),
 (200, '0050277', [255], 274.0),
 (201, '0050278', [255], 274.0),
 (202, '0050279', [94, 255], 274.0),
 (203, '0050280', [255], 274.0),
 (204, '0050281', [255], 274.0),
 (205, '0050282', [255], 274.0),
 (206, '0050283', [255], 274.0),
 (207, '0050284', [255], 274.0),
 (208, '0050285', [255], 274.0),
 (209, '0050286', [94, 255], 274.0),
 (210, '0050287', [255], 274.0),
 (211, '0050288', [255], 274.0),
 (212, '0050289', [255], 274.0),
 (213, '0050290', [255], 274.0),
 (214, '0050291', [255], 274.0),
 (215, '0050292', [255], 274.0),
 (216, '0050293', [255], 274.0),
 (217, '0050294', [255], 274.0),
 (218, '0050295', [255], 274.0),
 (219, '0050296', [255], 274.0),
 (220, '0050297', [255], 274.0),
 (221, '0050298', [255], 274.0),
 (222, '0050299', [255], 274.0),
 (223, '0050300', [255], 274.0),
 (224, '0050301', [255], 274.0),
 (225, '0050302', [255], 274.0),
 (226, '0050303', [255], 274.0),
 (227, '0050304', [255], 274.0),
 (228, '0050305', [255], 274.0),
 (229, '0050306', [255], 274.0),
 (230, '0050307', [255], 274.0),
 (231, '0050308', [255], 274.0),
 (232, '0050309', [261, 255], 274.0),
 (233, '0050310', [255], 274.0),
 (234, '0050311', [255], 274.0),
 (235, '0050312', [255], 274.0),
 (236, '0050313', [255], 274.0),
 (237, '0050314', [255], 274.0),
 (238, '0050315', [255], 274.0),
 (239, '0050316', [255], 274.0),
 (240, '0050317', [255], 274.0),
 (241, '0050318', [255], 274.0),
 (242, '0050319', [255], 274.0),
 (243, '0050320', [255], 274.0),
 (244, '0050321', [255], 274.0),
 (245, '0050322', [255], 274.0),
 (246, '0050323', [255], 274.0),
 (247, '0050324', [255], 274.0),
 (248, '0050325', [255], 274.0),
 (249, '0050326', [255], 274.0),
 (250, '0050327', [255], 274.0),
 (251, '0050328', [255], 274.0),
 (252, '0050329', [255], 274.0),
 (253, '0050330', [255], 274.0),
 (254, '0050331', [255], 274.0),
 (255, '0050332', [255], 274.0),
 (256, '0050333', [255], 274.0),
 (257, '0050334', [255], 274.0),
 (258, '0050335', [255], 274.0),
 (259, '0050336', [255], 274.0),
 (260, '0050337', [255], 274.0),
 (261, '0050338', [255], 274.0),
 (262, '0050339', [255], 274.0),
 (263, '0050340', [255], 274.0),
 (264, '0050341', [255], 274.0),
 (265, '0050342', [255], 274.0),
 (266, '0050343', [255], 274.0),
 (267, '0050344', [261, 255], 274.0),
 (268, '0050345', [255], 274.0),
 (269, '0050346', [255], 274.0),
 (270, '0050347', [255], 274.0),
 (271, '0050348', [255], 274.0),
 (272, '0050349', [255], 274.0),
 (273, '0050350', [255], 274.0),
 (274, '0050351', [255], 274.0),
 (275, '0050352', [255], 274.0),
 (276, '0050353', [255], 274.0),
 (277, '0050354', [255], 274.0),
 (278, '0050355', [255], 274.0),
 (279, '0050356', [255], 274.0),
 (280, '0050357', [255], 274.0),
 (281, '0050358', [255], 274.0),
 (282, '0050359', [255], 274.0),
 (283, '0050360', [255], 274.0),
 (284, '0050361', [255], 274.0),
 (285, '0050362', [255], 274.0),
 (286, '0050363', [255], 274.0),
 (287, '0050364', [255], 274.0),
 (288, '0050365', [255], 274.0),
 (289, '0050366', [255], 274.0),
 (290, '0050367', [255], 274.0),
 (291, '0050368', [255], 274.0),
 (292, '0050369', [255], 274.0),
 (293, '0050370', [255], 274.0),
 (294, '0050371', [255], 274.0),
 (295, '0050372', [255], 274.0),
 (296, '0050373', [255], 274.0),
 (297, '0050374', [255], 274.0),
 (298, '0050375', [255], 274.0),
 (299, '0050376', [255], 274.0),
 (300, '0050377', [261, 255], 274.0),
 (301, '0050378', [255], 274.0),
 (302, '0050379', [255], 274.0),
 (303, '0050380', [255], 274.0),
 (304, '0050381', [255], 274.0),
 (305, '0050382', [255], 274.0),
 (306, '0050383', [255], 274.0),
 (307, '0050385', [255], 274.0),
 (308, '0050386', [255], 274.0),
 (309, '0050387', [255], 274.0),
 (310, '0050388', [255], 274.0),
 (311, '0050390', [255], 274.0),
 (312, '0050391', [255], 274.0),
 (313, '0050397', [255], 274.0),
 (314, '0050399', [255], 274.0),
 (315, '0050402', [255], 274.0),
 (316, '0050403', [255], 274.0),
 (317, '0050404', [255], 274.0),
 (318, '0050405', [255], 274.0),
 (319, '0050406', [255], 274.0),
 (320, '0050407', [255], 274.0),
 (321, '0050408', [255], 274.0),
 (322, '0050410', [255], 274.0),
 (323, '0050411', [255], 274.0),
 (324, '0050412', [255], 274.0),
 (325, '0050413', [255], 274.0),
 (326, '0050414', [255], 274.0),
 (327, '0050415', [255], 274.0),
 (328, '0050416', [255], 274.0),
 (329, '0050417', [255], 274.0),
 (330, '0050418', [255], 274.0),
 (331, '0050419', [255], 274.0),
 (332, '0050421', [255], 274.0),
 (333, '0050422', [255], 274.0),
 (334, '0050423', [255], 274.0),
 (335, '0050424', [255], 274.0),
 (336, '0050425', [255], 274.0),
 (337, '0050426', [255], 274.0),
 (338, '0050427', [255], 274.0),
 (339, '0050428', [255], 274.0),
 (340, '0050432', [255], 274.0),
 (341, '0050433', [255], 274.0),
 (342, '0050434', [255], 274.0),
 (343, '0050435', [255], 274.0),
 (344, '0050436', [255], 274.0),
 (345, '0050437', [255], 274.0),
 (346, '0050438', [255], 274.0),
 (347, '0050439', [255], 274.0),
 (348, '0050440', [255], 274.0),
 (349, '0050441', [255], 274.0),
 (350, '0050442', [255], 274.0),
 (351, '0050443', [255], 274.0),
 (352, '0050444', [255], 274.0),
 (353, '0050445', [255], 274.0),
 (354, '0050446', [255], 274.0),
 (355, '0050447', [255], 274.0),
 (356, '0050448', [255], 274.0),
 (357, '0050449', [255], 274.0),
 (358, '0050450', [255], 274.0),
 (359, '0050451', [255], 274.0),
 (360, '0050452', [255], 274.0),
 (361, '0050453', [255], 274.0),
 (362, '0050454', [255], 274.0),
 (363, '0050455', [255], 274.0),
 (364, '0050456', [255], 274.0),
 (365, '0050457', [255], 274.0),
 (366, '0050458', [255], 274.0),
 (367, '0050459', [255], 274.0),
 (368, '0050460', [255], 274.0),
 (369, '0050461', [255], 274.0),
 (370, '0050462', [255], 274.0),
 (371, '0050463', [255], 274.0),
 (372, '0050464', [255], 274.0),
 (373, '0050465', [261, 255], 274.0),
 (374, '0050466', [255], 274.0),
 (375, '0050467', [255], 274.0),
 (376, '0050468', [255], 274.0),
 (377, '0050469', [255], 274.0),
 (378, '0050470', [255], 274.0),
 (379, '0050471', [255], 274.0),
 (380, '0050472', [255], 274.0),
 (381, '0050473', [255], 274.0),
 (382, '0050474', [255], 274.0),
 (383, '0050475', [255], 274.0),
 (384, '0050476', [255], 274.0),
 (385, '0050477', [255], 274.0),
 (386, '0050478', [255], 274.0),
 (387, '0050479', [255], 274.0),
 (388, '0050480', [255], 274.0),
 (389, '0050481', [255], 274.0),
 (390, '0050482', [255], 274.0),
 (391, '0050483', [255], 274.0),
 (392, '0050484', [255], 274.0),
 (393, '0050485', [255], 274.0),
 (394, '0050486', [255], 274.0),
 (395, '0050487', [255], 274.0),
 (396, '0050488', [255], 274.0),
 (397, '0050489', [255], 274.0),
 (398, '0050490', [255], 274.0),
 (399, '0050491', [255], 274.0),
 (400, '0050492', [255], 274.0),
 (401, '0050493', [255], 274.0),
 (402, '0050494', [255], 274.0),
 (403, '0050495', [255], 274.0),
 (404, '0050496', [255], 274.0),
 (405, '0050497', [255], 274.0),
 (406, '0050498', [255], 274.0),
 (407, '0050499', [255], 274.0),
 (408, '0050500', [255], 274.0),
 (409, '0050501', [255], 274.0),
 (410, '0050502', [255], 274.0),
 (411, '0050503', [261, 255], 274.0),
 (412, '0050504', [255], 274.0),
 (413, '0050505', [255], 274.0),
 (414, '0050506', [255], 274.0),
 (415, '0050507', [255], 274.0),
 (416, '0050508', [255], 274.0),
 (417, '0050509', [255], 274.0),
 (418, '0050510', [255], 274.0),
 (419, '0050511', [255], 274.0),
 (420, '0050512', [255], 274.0),
 (421, '0050513', [255], 274.0),
 (422, '0050514', [255], 274.0),
 (423, '0050515', [255], 274.0),
 (424, '0050516', [255], 274.0),
 (425, '0050517', [255], 274.0),
 (426, '0050518', [255], 274.0),
 (427, '0050519', [255], 274.0),
 (428, '0050520', [255], 274.0),
 (429, '0050521', [255], 274.0),
 (430, '0050522', [255], 274.0),
 (431, '0050523', [255], 274.0),
 (432, '0050524', [255], 274.0),
 (433, '0050525', [255], 274.0),
 (434, '0050526', [255], 274.0),
 (435, '0050527', [255], 274.0),
 (436, '0050528', [255], 274.0),
 (437, '0050529', [255], 274.0),
 (438, '0050530', [255], 274.0),
 (439, '0050531', [255], 274.0),
 (440, '0050532', [255], 274.0),
 (441, '0050551', [255], 274.0),
 (442, '0050552', [261, 255], 274.0),
 (443, '0050553', [255], 274.0),
 (444, '0050554', [255], 274.0),
 (445, '0050555', [255], 274.0),
 (446, '0050556', [255], 274.0),
 (447, '0050557', [255], 274.0),
 (448, '0050558', [255], 274.0),
 (449, '0050559', [255], 274.0),
 (450, '0050560', [255], 274.0),
 (451, '0050561', [255], 274.0),
 (452, '0050562', [255], 274.0),
 (453, '0050563', [255], 274.0),
 (454, '0050564', [255], 274.0),
 (455, '0050565', [255], 274.0),
 (456, '0050566', [255], 274.0),
 (457, '0050567', [255], 274.0),
 (458, '0050568', [255], 274.0),
 (459, '0050569', [255], 274.0),
 (460, '0050570', [255], 274.0),
 (461, '0050571', [255], 274.0),
 (462, '0050572', [255], 274.0),
 (463, '0050573', [255], 274.0),
 (464, '0050574', [255], 274.0),
 (465, '0050575', [255], 274.0),
 (466, '0050576', [255], 274.0),
 (467, '0050577', [261, 255], 274.0),
 (468, '0050578', [255], 274.0),
 (469, '0050601', [261, 255], 274.0),
 (470, '0050602', [255], 274.0),
 (471, '0050603', [255], 274.0),
 (472, '0050604', [255], 274.0),
 (473, '0050605', [255], 274.0),
 (474, '0050606', [255], 274.0),
 (475, '0050607', [255], 274.0),
 (476, '0050608', [255], 274.0),
 (477, '0050609', [255], 274.0),
 (478, '0050610', [255], 274.0),
 (479, '0050611', [255], 274.0),
 (480, '0050612', [255], 274.0),
 (481, '0050613', [255], 274.0),
 (482, '0050614', [255], 274.0),
 (483, '0050615', [255], 274.0),
 (484, '0050616', [255], 274.0),
 (485, '0050617', [255], 274.0),
 (486, '0050618', [255], 274.0),
 (487, '0050619', [255], 274.0),
 (488, '0050620', [255], 274.0),
 (489, '0050621', [255], 274.0),
 (490, '0050622', [255], 274.0),
 (491, '0050623', [255], 274.0),
 (492, '0050624', [255], 274.0),
 (493, '0050625', [255], 274.0),
 (494, '0050626', [255], 274.0),
 (495, '0050627', [255], 274.0),
 (496, '0050628', [255], 274.0),
 (497, '0050642', [255], 274.0),
 (498,
  '0050643',
  [260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   69,
   70,
   94,
   109,
   110,
   117,
   118,
   255],
  259.0),
 (499,
  '0050644',
  [258, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 271, 272, 273, 255],
  270.0),
 (500,
  '0050645',
  [256,
   257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   255],
  254.0),
 (501, '0050646', [255], 274.0),
 (502, '0050647', [255], 274.0),
 (503,
  '0050648',
  [260, 262, 263, 265, 266, 267, 268, 272, 93, 94, 255],
  273.0),
 (504, '0050649', [255], 274.0),
 (505, '0050650', [260, 262, 263, 266, 268, 255], 274.0),
 (506,
  '0050651',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   109,
   110,
   117,
   118,
   254,
   255],
  256.0),
 (507,
  '0050652',
  [258,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   110,
   270,
   271,
   272,
   273,
   118,
   94,
   255],
  259.0),
 (508, '0050653', [272, 118, 93, 94, 255], 273.0),
 (509, '0050654', [255], 274.0),
 (510,
  '0050655',
  [256,
   257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   93,
   94,
   109,
   110,
   112,
   118,
   254,
   255],
  253.0),
 (511, '0050656', [255], 274.0),
 (512, '0050657', [272, 266, 268, 255], 273.0),
 (513,
  '0050658',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   110,
   118,
   254,
   255],
  256.0),
 (514, '0050659', [255], 274.0),
 (515, '0050660', [255], 274.0),
 (516, '0050661', [94, 255], 273.0),
 (517, '0050663', [255], 274.0),
 (518, '0050664', [255], 274.0),
 (519, '0050665', [255], 274.0),
 (520, '0050666', [255], 274.0),
 (521,
  '0050667',
  [260, 261, 262, 263, 264, 265, 266, 267, 268, 271, 272, 94, 255],
  273.0),
 (522, '0050668', [255], 274.0),
 (523, '0050669', [260, 262, 263, 265, 266, 267, 268, 272, 255], 273.0),
 (524, '0050682', [255], 274.0),
 (525, '0050683', [255], 274.0),
 (526, '0050685', [255], 274.0),
 (527, '0050686', [255], 274.0),
 (528, '0050687', [255], 274.0),
 (529, '0050688', [255], 274.0),
 (530, '0050689', [255], 274.0),
 (531, '0050690', [255], 274.0),
 (532, '0050691', [255], 274.0),
 (533, '0050692', [255], 274.0),
 (534, '0050693', [255], 274.0),
 (535, '0050694', [255], 274.0),
 (536, '0050695', [255], 274.0),
 (537, '0050696', [261, 255], 274.0),
 (538, '0050697', [255], 274.0),
 (539, '0050698', [255], 274.0),
 (540, '0050699', [255], 274.0),
 (541, '0050700', [261, 255], 274.0),
 (542, '0050701', [255], 274.0),
 (543, '0050702', [255], 274.0),
 (544, '0050703', [255], 274.0),
 (545, '0050704', [255], 274.0),
 (546, '0050705', [255], 274.0),
 (547, '0050706', [255], 274.0),
 (548, '0050707', [255], 274.0),
 (549, '0050708', [255], 274.0),
 (550, '0050709', [255], 274.0),
 (551, '0050710', [255], 274.0),
 (552, '0050711', [255], 274.0),
 (553, '0050722', [255], 274.0),
 (554, '0050723', [255], 274.0),
 (555, '0050724', [255], 274.0),
 (556, '0050725', [261, 255], 274.0),
 (557, '0050726', [255], 274.0),
 (558,
  '0050727',
  [128,
   131,
   132,
   255,
   7,
   8,
   147,
   148,
   149,
   150,
   25,
   26,
   161,
   162,
   55,
   57,
   59,
   60,
   65,
   67,
   68,
   125,
   126,
   127],
  274.0),
 (559, '0050728', [255], 274.0),
 (560, '0050730', [255], 274.0),
 (561, '0050731', [255], 274.0),
 (562, '0050732', [255], 274.0),
 (563, '0050733', [255], 274.0),
 (564, '0050734', [255], 274.0),
 (565, '0050735', [255], 274.0),
 (566, '0050736', [255, 59, 60, 7], 274.0),
 (567, '0050737', [255], 274.0),
 (568, '0050738', [255], 274.0),
 (569, '0050739', [255], 274.0),
 (570, '0050740', [255], 274.0),
 (571, '0050741', [255], 274.0),
 (572, '0050742', [261, 255], 274.0),
 (573, '0050743', [255], 274.0),
 (574, '0050744', [255], 274.0),
 (575, '0050745', [255], 274.0),
 (576,
  '0050746',
  [33,
   35,
   255,
   37,
   39,
   167,
   43,
   15,
   79,
   17,
   63,
   19,
   51,
   21,
   61,
   83,
   27,
   29,
   31],
  274.0),
 (577, '0050747', [255], 274.0),
 (578, '0050748', [255], 274.0),
 (579, '0050749', [255], 274.0),
 (580, '0050750', [255], 274.0),
 (581, '0050751', [255], 274.0),
 (582, '0050752', [261, 255], 274.0),
 (583, '0050753', [255], 274.0),
 (584, '0050754', [255], 274.0),
 (585, '0050755', [255], 274.0),
 (586, '0050756', [255], 274.0),
 (587, '0050757', [255], 274.0),
 (588, '0050772', [255], 274.0),
 (589, '0050773', [255], 274.0),
 (590, '0050774', [255], 274.0),
 (591, '0050775', [255], 274.0),
 (592, '0050776', [255], 274.0),
 (593, '0050777', [255], 274.0),
 (594, '0050778', [255], 274.0),
 (595, '0050779', [255], 274.0),
 (596, '0050780', [255], 274.0),
 (597, '0050781', [255], 274.0),
 (598, '0050782', [255], 274.0),
 (599, '0050783', [255], 274.0),
 (600, '0050784', [255], 274.0),
 (601, '0050785', [255], 274.0),
 (602, '0050786', [255], 274.0),
 (603, '0050787', [255], 274.0),
 (604, '0050788', [255], 274.0),
 (605, '0050789', [255], 274.0),
 (606, '0050790', [255], 274.0),
 (607, '0050791', [255], 274.0),
 (608, '0050792', [255], 274.0),
 (609, '0050793', [255], 274.0),
 (610, '0050794', [255], 274.0),
 (611, '0050795', [255], 274.0),
 (612, '0050796', [255], 274.0),
 (613, '0050797', [255], 274.0),
 (614, '0050798', [255], 274.0),
 (615, '0050799', [255], 274.0),
 (616, '0050800', [255], 274.0),
 (617, '0050801', [255], 274.0),
 (618, '0050802', [255], 274.0),
 (619, '0050803', [255], 274.0),
 (620, '0050804', [255], 274.0),
 (621, '0050805', [255], 274.0),
 (622, '0050806', [255], 274.0),
 (623, '0050807', [255], 274.0),
 (624, '0050808', [255], 274.0),
 (625, '0050809', [255], 274.0),
 (626, '0050810', [255], 274.0),
 (627, '0050811', [255], 274.0),
 (628, '0050812', [255], 274.0),
 (629, '0050813', [255], 274.0),
 (630, '0050814', [255], 274.0),
 (631, '0050815', [255], 274.0),
 (632, '0050816', [255], 274.0),
 (633, '0050817', [255], 274.0),
 (634, '0050818', [255], 274.0),
 (635, '0050819', [255], 274.0),
 (636, '0050820', [255], 274.0),
 (637, '0050821', [255], 274.0),
 (638, '0050822', [255], 274.0),
 (639, '0050823', [255], 274.0),
 (640, '0050824', [255], 274.0),
 (641, '0050825', [255], 274.0),
 (642, '0050826', [255], 274.0),
 (643, '0050952', [255], 274.0),
 (644, '0050953', [255], 274.0),
 (645, '0050954', [255], 274.0),
 (646, '0050955', [255], 274.0),
 (647, '0050956', [255], 274.0),
 (648, '0050957', [255], 274.0),
 (649, '0050958', [255], 274.0),
 (650, '0050959', [255], 274.0),
 (651, '0050960', [255], 274.0),
 (652, '0050961', [255], 274.0),
 (653, '0050962', [255], 274.0),
 (654, '0050964', [255], 274.0),
 (655, '0050965', [255], 274.0),
 (656, '0050966', [255], 274.0),
 (657, '0050967', [255], 274.0),
 (658, '0050968', [255], 274.0),
 (659, '0050969', [261, 255], 274.0),
 (660, '0050970', [255], 274.0),
 (661, '0050971', [255], 274.0),
 (662, '0050972', [255], 274.0),
 (663, '0050973', [255], 274.0),
 (664, '0050974', [255], 274.0),
 (665, '0050975', [255], 274.0),
 (666, '0050976', [255], 274.0),
 (667, '0050977', [255], 274.0),
 (668, '0050978', [255], 274.0),
 (669, '0050979', [255], 274.0),
 (670, '0050980', [255], 274.0),
 (671, '0050981', [255], 274.0),
 (672, '0050982', [255], 274.0),
 (673, '0050983', [255], 274.0),
 (674, '0050984', [255], 274.0),
 (675, '0050985', [255], 274.0),
 (676, '0050986', [255], 274.0),
 (677, '0050987', [255], 274.0),
 (678, '0050988', [255], 274.0),
 (679, '0050989', [255], 274.0),
 (680, '0050990', [255], 274.0),
 (681, '0050991', [255], 274.0),
 (682, '0050992', [255], 274.0),
 (683, '0050993', [255], 274.0),
 (684, '0050994', [255], 274.0),
 (685, '0050995', [255], 274.0),
 (686, '0050996', [255], 274.0),
 (687, '0050997', [255], 274.0),
 (688, '0050998', [255], 274.0),
 (689, '0050999', [255], 274.0),
 (690, '0051000', [255], 274.0),
 (691, '0051001', [255], 274.0),
 (692, '0051002', [255], 274.0),
 (693, '0051003', [255], 274.0),
 (694, '0051006', [255], 274.0),
 (695, '0051007', [255], 274.0),
 (696, '0051008', [255], 274.0),
 (697, '0051009', [255], 274.0),
 (698, '0051010', [255], 274.0),
 (699, '0051011', [255], 274.0),
 (700, '0051012', [261, 255], 274.0),
 (701, '0051013', [255], 274.0),
 (702, '0051014', [255], 274.0),
 (703, '0051015', [255], 274.0),
 (704, '0051016', [255], 274.0),
 (705, '0051017', [255], 274.0),
 (706, '0051018', [255], 274.0),
 (707, '0051019', [255], 274.0),
 (708, '0051020', [255], 274.0),
 (709, '0051021', [255], 274.0),
 (710, '0051023', [255], 274.0),
 (711, '0051024', [255], 274.0),
 (712, '0051025', [255], 274.0),
 (713, '0051026', [255], 274.0),
 (714, '0051027', [255], 274.0),
 (715, '0051028', [255], 274.0),
 (716, '0051029', [255], 274.0),
 (717, '0051030', [255], 274.0),
 (718, '0051032', [255], 274.0),
 (719, '0051033', [255], 274.0),
 (720, '0051034', [255], 274.0),
 (721, '0051035', [255], 274.0),
 (722, '0051036', [255], 274.0),
 (723, '0051038', [255], 274.0),
 (724, '0051039', [255], 274.0),
 (725, '0051040', [255], 274.0),
 (726, '0051041', [255], 274.0),
 (727, '0051042', [255], 274.0),
 (728, '0051044', [255], 274.0),
 (729, '0051045', [255], 274.0),
 (730, '0051046', [255], 274.0),
 (731, '0051047', [255], 274.0),
 (732, '0051048', [255], 274.0),
 (733, '0051049', [255], 274.0),
 (734, '0051050', [255], 274.0),
 (735, '0051051', [255], 274.0),
 (736, '0051052', [255], 274.0),
 (737, '0051053', [255], 274.0),
 (738, '0051054', [255], 274.0),
 (739, '0051055', [255], 274.0),
 (740, '0051056', [255], 274.0),
 (741, '0051057', [255], 274.0),
 (742, '0051058', [255], 274.0),
 (743, '0051059', [255], 274.0),
 (744, '0051060', [255], 274.0),
 (745, '0051061', [255], 274.0),
 (746, '0051062', [255], 274.0),
 (747, '0051063', [255], 274.0),
 (748, '0051064', [255], 274.0),
 (749, '0051065', [255], 274.0),
 (750, '0051066', [255], 274.0),
 (751, '0051067', [255], 274.0),
 (752, '0051068', [255], 274.0),
 (753, '0051069', [255], 274.0),
 (754, '0051070', [255], 274.0),
 (755, '0051071', [255], 274.0),
 (756, '0051072', [255], 274.0),
 (757, '0051073', [255], 274.0),
 (758, '0051074', [255], 274.0),
 (759, '0051075', [255], 274.0),
 (760, '0051076', [255], 274.0),
 (761, '0051077', [255], 274.0),
 (762, '0051078', [255], 274.0),
 (763, '0051079', [255], 274.0),
 (764, '0051080', [255], 274.0),
 (765, '0051081', [255], 274.0),
 (766, '0051082', [255], 274.0),
 (767, '0051083', [255], 274.0),
 (768, '0051084', [255], 274.0),
 (769, '0051085', [255], 274.0),
 (770, '0051086', [255], 274.0),
 (771, '0051087', [255], 274.0),
 (772, '0051088', [255], 274.0),
 (773, '0051089', [255], 274.0),
 (774, '0051090', [255], 274.0),
 (775, '0051091', [255], 274.0),
 (776, '0051093', [255], 274.0),
 (777, '0051094', [255], 274.0),
 (778, '0051095', [255], 274.0),
 (779, '0051096', [255], 274.0),
 (780, '0051097', [255], 274.0),
 (781, '0051098', [255], 274.0),
 (782, '0051099', [255], 274.0),
 (783, '0051100', [255], 274.0),
 (784, '0051101', [255], 274.0),
 (785, '0051102', [255], 274.0),
 (786, '0051103', [255], 274.0),
 (787, '0051104', [255], 274.0),
 (788, '0051105', [255], 274.0),
 (789, '0051106', [255], 274.0),
 (790, '0051107', [255], 274.0),
 (791, '0051108', [255], 274.0),
 (792, '0051109', [255], 274.0),
 (793, '0051110', [255], 274.0),
 (794, '0051111', [255], 274.0),
 (795, '0051112', [255], 274.0),
 (796, '0051113', [255], 274.0),
 (797, '0051114', [255], 274.0),
 (798, '0051115', [255], 274.0),
 (799, '0051116', [255], 274.0),
 (800, '0051117', [255], 274.0),
 (801, '0051118', [255], 274.0),
 (802, '0051119', [255], 274.0),
 (803, '0051120', [255], 274.0),
 (804, '0051121', [255], 274.0),
 (805, '0051122', [255], 274.0),
 (806, '0051123', [255], 274.0),
 (807, '0051124', [255], 274.0),
 (808, '0051125', [255], 274.0),
 (809, '0051126', [261, 255], 274.0),
 (810, '0051127', [255], 274.0),
 (811, '0051128', [255], 274.0),
 (812, '0051129', [255], 274.0),
 (813, '0051130', [255], 274.0),
 (814, '0051131', [255], 274.0),
 (815, '0051132', [255], 274.0),
 (816, '0051133', [255], 274.0),
 (817, '0051134', [255], 274.0),
 (818, '0051135', [255], 274.0),
 (819, '0051136', [255], 274.0),
 (820, '0051137', [255], 274.0),
 (821, '0051138', [255], 274.0),
 (822, '0051139', [255], 274.0),
 (823, '0051140', [255], 274.0),
 (824, '0051141', [255], 274.0),
 (825, '0051142', [255], 274.0),
 (826, '0051146', [255], 274.0),
 (827, '0051147', [255], 274.0),
 (828, '0051148', [255], 274.0),
 (829, '0051149', [255], 274.0),
 (830, '0051150', [255], 274.0),
 (831, '0051151', [255], 274.0),
 (832, '0051152', [255], 274.0),
 (833, '0051153', [255], 274.0),
 (834, '0051154', [255], 274.0),
 (835, '0051155', [255], 274.0),
 (836, '0051156', [255], 274.0),
 (837, '0051159', [255], 274.0),
 (838, '0051160', [255], 274.0),
 (839, '0051161', [255], 274.0),
 (840, '0051162', [255], 274.0),
 (841, '0051163', [255], 274.0),
 (842, '0051164', [255], 274.0),
 (843, '0051165', [255], 274.0),
 (844, '0051166', [255], 274.0),
 (845, '0051167', [255], 274.0),
 (846, '0051168', [255], 274.0),
 (847, '0051169', [255], 274.0),
 (848, '0051170', [255], 274.0),
 (849, '0051171', [255], 274.0),
 (850, '0051172', [255], 274.0),
 (851, '0051173', [255], 274.0),
 (852, '0051174', [255], 274.0),
 (853, '0051175', [255], 274.0),
 (854, '0051176', [255], 274.0),
 (855, '0051177', [255], 274.0),
 (856, '0051178', [255], 274.0),
 (857, '0051179', [255], 274.0),
 (858, '0051180', [255], 274.0),
 (859, '0051181', [255], 274.0),
 (860, '0051182', [255], 274.0),
 (861, '0051183', [255], 274.0),
 (862, '0051184', [255], 274.0),
 (863, '0051185', [255], 274.0),
 (864, '0051186', [255], 274.0),
 (865, '0051187', [255], 274.0),
 (866, '0051188', [255], 274.0),
 (867, '0051189', [255], 274.0),
 (868, '0051190', [255], 274.0),
 (869, '0051191', [255], 274.0),
 (870, '0051192', [255], 274.0),
 (871, '0051193', [255], 274.0),
 (872, '0051194', [255], 274.0),
 (873, '0051195', [255], 274.0),
 (874, '0051196', [255], 274.0),
 (875, '0051197', [255], 274.0),
 (876, '0051198', [255], 274.0),
 (877, '0051199', [255], 274.0),
 (878, '0051201', [255], 274.0),
 (879, '0051202', [255], 274.0),
 (880, '0051203', [255], 274.0),
 (881, '0051204', [255], 274.0),
 (882, '0051205', [255], 274.0),
 (883, '0051206', [255], 274.0),
 (884, '0051207', [255], 274.0),
 (885, '0051208', [255], 274.0),
 (886, '0051209', [255], 274.0),
 (887, '0051210', [255], 274.0),
 (888, '0051211', [255], 274.0),
 (889, '0051212', [255], 274.0),
 (890, '0051213', [255], 274.0),
 (891, '0051214', [255], 274.0),
 (892, '0051215', [255], 274.0),
 (893, '0051216', [255], 274.0),
 (894, '0051217', [255], 274.0),
 (895, '0051218', [255], 274.0),
 (896, '0051219', [255], 274.0),
 (897, '0051220', [255], 274.0),
 (898, '0051221', [255], 274.0),
 (899, '0051222', [255], 274.0),
 (900, '0051223', [255], 274.0),
 (901, '0051224', [255], 274.0),
 (902, '0051225', [255], 274.0),
 (903, '0051226', [261, 255], 274.0),
 (904, '0051227', [255], 274.0),
 (905, '0051228', [255], 274.0),
 (906, '0051229', [255], 274.0),
 (907, '0051230', [255], 274.0),
 (908, '0051231', [255], 274.0),
 (909, '0051234', [255], 274.0),
 (910, '0051235', [255], 274.0),
 (911, '0051236', [255], 274.0),
 (912, '0051237', [255], 274.0),
 (913, '0051238', [255], 274.0),
 (914, '0051239', [255], 274.0),
 (915, '0051240', [261, 255], 274.0),
 (916, '0051241', [255], 274.0),
 (917, '0051248', [255], 274.0),
 (918, '0051249', [255], 274.0),
 (919, '0051250', [255], 274.0),
 (920, '0051251', [255], 274.0),
 (921, '0051252', [255], 274.0),
 (922, '0051253', [255], 274.0),
 (923, '0051254', [255], 274.0),
 (924, '0051255', [255], 274.0),
 (925, '0051256', [255], 274.0),
 (926, '0051257', [255], 274.0),
 (927, '0051258', [255], 274.0),
 (928, '0051259', [255], 274.0),
 (929, '0051260', [255], 274.0),
 (930, '0051261', [255], 274.0),
 (931, '0051262', [255], 274.0),
 (932, '0051263', [255], 274.0),
 (933, '0051264', [255], 274.0),
 (934, '0051265', [255], 274.0),
 (935, '0051266', [255], 274.0),
 (936, '0051267', [255], 274.0),
 (937, '0051268', [255], 274.0),
 (938, '0051269', [255], 274.0),
 (939, '0051271', [255], 274.0),
 (940, '0051272', [255], 274.0),
 (941, '0051273', [255], 274.0),
 (942, '0051274', [255], 274.0),
 (943, '0051275', [255], 274.0),
 (944,
  '0051276',
  [161,
   193,
   131,
   194,
   258,
   199,
   200,
   203,
   204,
   205,
   206,
   207,
   208,
   189,
   57,
   59,
   125,
   190,
   255],
  274.0),
 (945, '0051277', [255], 274.0),
 (946, '0051278', [255], 274.0),
 (947, '0051279', [255], 274.0),
 (948, '0051280', [255], 274.0),
 (949, '0051281', [255], 274.0),
 (950, '0051282', [255], 274.0),
 (951, '0051291', [255], 274.0),
 (952, '0051292', [255], 274.0),
 (953, '0051293', [255], 274.0),
 (954, '0051294', [255], 274.0),
 (955, '0051295', [255], 274.0),
 (956, '0051296', [255], 274.0),
 (957, '0051297', [255], 274.0),
 (958, '0051298', [255], 274.0),
 (959, '0051299', [255], 274.0),
 (960, '0051300', [255], 274.0),
 (961, '0051301', [255], 274.0),
 (962, '0051302', [255], 274.0),
 (963, '0051303', [255], 274.0),
 (964, '0051304', [255], 274.0),
 (965, '0051305', [255], 274.0),
 (966, '0051306', [255], 274.0),
 (967, '0051307', [255], 274.0),
 (968, '0051308', [255], 274.0),
 (969, '0051309', [255], 274.0),
 (970, '0051311', [255], 274.0),
 (971, '0051312', [255], 274.0),
 (972, '0051313', [255], 274.0),
 (973, '0051314', [255], 274.0),
 (974, '0051315', [255], 274.0),
 (975, '0051316', [255], 274.0),
 (976, '0051317', [255], 274.0),
 (977, '0051318', [255], 274.0),
 (978, '0051319', [255], 274.0),
 (979, '0051320', [255], 274.0),
 (980, '0051321', [255], 274.0),
 (981, '0051322', [255], 274.0),
 (982, '0051323', [255], 274.0),
 (983, '0051324', [255], 274.0),
 (984, '0051325', [255], 274.0),
 (985, '0051326', [255], 274.0),
 (986, '0051327', [255], 274.0),
 (987, '0051328', [255], 274.0),
 (988, '0051329', [255], 274.0),
 (989, '0051330', [255], 274.0),
 (990, '0051331', [255], 274.0),
 (991, '0051332', [255], 274.0),
 (992, '0051333', [255], 274.0),
 (993, '0051334', [255], 274.0),
 (994, '0051335', [255], 274.0),
 (995, '0051336', [255], 274.0),
 (996, '0051338', [255], 274.0),
 (997, '0051339', [255], 274.0),
 (998, '0051340', [255], 274.0),
 (999, '0051341', [255], 274.0),
 ...]

In [10]:
miss_refined = []
for miss in missing_ROIs:
    if miss[3] == 274.0 and len(miss[2]) == 3:
        miss_refined.append((miss[1],miss))

miss_refined


Out[10]:
[('0050011', (9, '0050011', [266, 268, 255], 274.0)),
 ('0050050', (46, '0050050', [266, 268, 255], 274.0)),
 ('0051571', (1085, '0051571', [266, 268, 255], 274.0))]

In [11]:
bad_subjects = []
for i in miss_refined:
    bad_subjects.append(i[0])

In [12]:
bad_subjects = list(map(int, bad_subjects))
bad_subjects


Out[12]:
[50011, 50050, 51571]

In [13]:
bad_rois = []
for sub in missing_ROIs:
    bad_rois.extend(sub[2])

In [14]:
# (bad_rois)

In [15]:
%matplotlib inline
import matplotlib.pyplot as plt

bins = np.arange(275)
count_roi = plt.hist(bad_rois, bins = bins)
# plt.ylim([0, 10])


As seen from histogram most of the corrupted ROIs are in cerebellum.

  • Therefore I have chosen to consider only the ROIs that are in brainetome.
  • Moreover in some of the subjects, ROIs belonging to Brainnetome atlas are also missing.

In [16]:
for i in zip(list(count_roi[0]),list(count_roi[1])):
    print(i)
# (Number of Subjects that doesnot have the ROI, ROI)


(0.0, 0)
(0.0, 1)
(0.0, 2)
(0.0, 3)
(0.0, 4)
(0.0, 5)
(0.0, 6)
(2.0, 7)
(1.0, 8)
(0.0, 9)
(0.0, 10)
(0.0, 11)
(0.0, 12)
(0.0, 13)
(0.0, 14)
(1.0, 15)
(0.0, 16)
(1.0, 17)
(0.0, 18)
(1.0, 19)
(0.0, 20)
(1.0, 21)
(0.0, 22)
(0.0, 23)
(0.0, 24)
(1.0, 25)
(1.0, 26)
(1.0, 27)
(0.0, 28)
(1.0, 29)
(0.0, 30)
(1.0, 31)
(0.0, 32)
(1.0, 33)
(0.0, 34)
(1.0, 35)
(0.0, 36)
(1.0, 37)
(0.0, 38)
(1.0, 39)
(0.0, 40)
(0.0, 41)
(0.0, 42)
(1.0, 43)
(0.0, 44)
(0.0, 45)
(0.0, 46)
(0.0, 47)
(0.0, 48)
(0.0, 49)
(0.0, 50)
(1.0, 51)
(0.0, 52)
(0.0, 53)
(0.0, 54)
(1.0, 55)
(0.0, 56)
(2.0, 57)
(0.0, 58)
(4.0, 59)
(3.0, 60)
(1.0, 61)
(0.0, 62)
(1.0, 63)
(0.0, 64)
(1.0, 65)
(0.0, 66)
(1.0, 67)
(1.0, 68)
(1.0, 69)
(1.0, 70)
(0.0, 71)
(0.0, 72)
(0.0, 73)
(0.0, 74)
(0.0, 75)
(0.0, 76)
(0.0, 77)
(0.0, 78)
(1.0, 79)
(0.0, 80)
(0.0, 81)
(0.0, 82)
(1.0, 83)
(0.0, 84)
(0.0, 85)
(0.0, 86)
(0.0, 87)
(0.0, 88)
(0.0, 89)
(0.0, 90)
(0.0, 91)
(0.0, 92)
(3.0, 93)
(12.0, 94)
(0.0, 95)
(0.0, 96)
(0.0, 97)
(0.0, 98)
(0.0, 99)
(0.0, 100)
(0.0, 101)
(0.0, 102)
(0.0, 103)
(0.0, 104)
(0.0, 105)
(0.0, 106)
(0.0, 107)
(0.0, 108)
(4.0, 109)
(5.0, 110)
(0.0, 111)
(1.0, 112)
(0.0, 113)
(0.0, 114)
(0.0, 115)
(0.0, 116)
(3.0, 117)
(7.0, 118)
(0.0, 119)
(0.0, 120)
(0.0, 121)
(0.0, 122)
(0.0, 123)
(0.0, 124)
(3.0, 125)
(5.0, 126)
(1.0, 127)
(1.0, 128)
(0.0, 129)
(0.0, 130)
(2.0, 131)
(1.0, 132)
(0.0, 133)
(0.0, 134)
(0.0, 135)
(0.0, 136)
(0.0, 137)
(0.0, 138)
(0.0, 139)
(0.0, 140)
(0.0, 141)
(0.0, 142)
(0.0, 143)
(0.0, 144)
(0.0, 145)
(0.0, 146)
(1.0, 147)
(1.0, 148)
(1.0, 149)
(1.0, 150)
(0.0, 151)
(0.0, 152)
(0.0, 153)
(0.0, 154)
(0.0, 155)
(0.0, 156)
(0.0, 157)
(0.0, 158)
(0.0, 159)
(0.0, 160)
(2.0, 161)
(1.0, 162)
(0.0, 163)
(0.0, 164)
(0.0, 165)
(0.0, 166)
(1.0, 167)
(0.0, 168)
(0.0, 169)
(0.0, 170)
(0.0, 171)
(0.0, 172)
(0.0, 173)
(0.0, 174)
(0.0, 175)
(0.0, 176)
(0.0, 177)
(0.0, 178)
(0.0, 179)
(0.0, 180)
(0.0, 181)
(0.0, 182)
(0.0, 183)
(0.0, 184)
(0.0, 185)
(0.0, 186)
(0.0, 187)
(0.0, 188)
(1.0, 189)
(1.0, 190)
(0.0, 191)
(0.0, 192)
(1.0, 193)
(1.0, 194)
(0.0, 195)
(0.0, 196)
(0.0, 197)
(0.0, 198)
(1.0, 199)
(1.0, 200)
(0.0, 201)
(0.0, 202)
(1.0, 203)
(1.0, 204)
(1.0, 205)
(1.0, 206)
(1.0, 207)
(1.0, 208)
(0.0, 209)
(0.0, 210)
(0.0, 211)
(0.0, 212)
(0.0, 213)
(0.0, 214)
(0.0, 215)
(0.0, 216)
(0.0, 217)
(0.0, 218)
(0.0, 219)
(0.0, 220)
(0.0, 221)
(0.0, 222)
(0.0, 223)
(0.0, 224)
(0.0, 225)
(0.0, 226)
(0.0, 227)
(0.0, 228)
(0.0, 229)
(0.0, 230)
(0.0, 231)
(0.0, 232)
(0.0, 233)
(0.0, 234)
(0.0, 235)
(0.0, 236)
(0.0, 237)
(0.0, 238)
(0.0, 239)
(0.0, 240)
(0.0, 241)
(0.0, 242)
(0.0, 243)
(0.0, 244)
(0.0, 245)
(0.0, 246)
(0.0, 247)
(0.0, 248)
(0.0, 249)
(0.0, 250)
(0.0, 251)
(0.0, 252)
(0.0, 253)
(3.0, 254)
(1102.0, 255)
(2.0, 256)
(4.0, 257)
(8.0, 258)
(4.0, 259)
(16.0, 260)
(50.0, 261)
(17.0, 262)
(16.0, 263)
(9.0, 264)
(13.0, 265)
(25.0, 266)
(13.0, 267)
(22.0, 268)
(8.0, 269)
(6.0, 270)
(9.0, 271)
(14.0, 272)
(8.0, 273)

Missing ROIs(Brainnetome)

  • ROI number 94 is missing in 12 subjects
    • Check if these 12 subjects are included in analysis, if they are then ignore the ROI
  • Some others were also missing but in very few subjects -- Check
  • ROI number 255 (of Cerebellum) is missing in all 1102 subjects

In [17]:
#  Runall:
import pandas as pd

df = pd.read_csv('/home1/varunk/data/ABIDE1/RawDataBIDs/composite_phenotypic_file.csv') # , index_col='SUB_ID'

df = df.sort_values(['SUB_ID'])
# df = df.sort_values(['SUB+AF8-ID'])

bugs = ['51232','51233','51242','51243','51244','51245','51246','51247','51270','51310', '50045']

# sub 50045 has fewer ROIs coz of more shift of head

In [18]:
# '0051242' in bugs

In [19]:
# df

In [20]:
# selecting Autistic males(DSM IV) of age <= 18 years 
df_aut_lt18_m = df.loc[(df['SEX'] == 1) & (df['AGE_AT_SCAN'] <=18) & (df['DSM_IV_TR'] == 1)]

In [21]:
df_aut_lt18_m.shape


Out[21]:
(214, 74)

In [22]:
df_aut_lt18_m_eyesopen = df.loc[(df['SEX'] == 1) & (df['AGE_AT_SCAN'] <=18) & (df['DSM_IV_TR'] == 1) & (df['EYE_STATUS_AT_SCAN'] == 1)]
df_aut_lt18_m_eyesopen;
df_td_lt18_m_eyesopen = df.loc[(df['SEX'] == 1) & (df['AGE_AT_SCAN'] <=18) & (df['DSM_IV_TR'] == 0) & (df['EYE_STATUS_AT_SCAN'] == 1)]
df_td_lt18_m_eyesopen;

In [23]:
df_aut_lt18_m_eyesopen_subid = df_aut_lt18_m_eyesopen.as_matrix(['SUB_ID']).squeeze()
df_td_lt18_m_eyesopen_subid = df_td_lt18_m_eyesopen.as_matrix(['SUB_ID']).squeeze()

In [24]:
# Sanity checks
set(df_aut_lt18_m_eyesopen_subid) - (set(df_aut_lt18_m_eyesopen_subid) - set(df_td_lt18_m_eyesopen_subid))


Out[24]:
set()

In [25]:
df_aut_lt18_m_eyesclosed = df.loc[(df['SEX'] == 1) & (df['AGE_AT_SCAN'] <=18) & (df['DSM_IV_TR'] == 1) & (df['EYE_STATUS_AT_SCAN'] == 2)]
df_aut_lt18_m_eyesclosed;
df_td_lt18_m_eyesclosed = df.loc[(df['SEX'] == 1) & (df['AGE_AT_SCAN'] <=18) & (df['DSM_IV_TR'] == 0) & (df['EYE_STATUS_AT_SCAN'] == 2)]
df_td_lt18_m_eyesclosed;

In [26]:
df_aut_lt18_m_eyesclosed_subid = df_aut_lt18_m_eyesclosed.as_matrix(['SUB_ID']).squeeze()
df_td_lt18_m_eyesclosed_subid = df_td_lt18_m_eyesclosed.as_matrix(['SUB_ID']).squeeze()

In [27]:
# Sanity checks
set(df_aut_lt18_m_eyesclosed_subid) - (set(df_aut_lt18_m_eyesclosed_subid) - set(df_td_lt18_m_eyesclosed_subid))


Out[27]:
set()

In [28]:
df_td_lt18_m_eyesclosed_subid


Out[28]:
array([50031, 50033, 50034, 50035, 50043, 50044, 50045, 50047, 50048,
       50050, 50051, 50054, 50257, 50265, 50266, 50267, 50268, 50269,
       50724, 50725, 50726, 50727, 50728, 50731, 50732, 50733, 50734,
       50737, 50738, 50739, 50740, 50741, 50742, 51064, 51065, 51070,
       51071, 51072, 51073, 51074, 51075, 51076, 51077, 51133, 51134,
       51135, 51136, 51137, 51138, 51140, 51141, 51142, 51159, 51361, 51487])

In [29]:
# df_aut_lt18_m_eyesopen_subid

In [ ]:


In [ ]:


In [30]:
# set(bad_subjects)  - (set(bad_subjects) - set(df_aut_lt18_m_eyesopen_subid) )

In [31]:
# - set(bad_subjects);

In [32]:
sub_lt_246 = []
for sub in missing_ROIs:
#     missing_flag = False
#     for roi in sub[2]: # get the roi list for a subject
    if any(roi  < 246 for roi in sub[2]): # missing ROI is < 246 i.e belongs to brainettome
        sub_lt_246.append(sub)

In [33]:
len(sub_lt_246)


Out[33]:
20

In [34]:
sub_lt_246


Out[34]:
[(202, '0050279', [94, 255], 274.0),
 (209, '0050286', [94, 255], 274.0),
 (498,
  '0050643',
  [260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   69,
   70,
   94,
   109,
   110,
   117,
   118,
   255],
  259.0),
 (503,
  '0050648',
  [260, 262, 263, 265, 266, 267, 268, 272, 93, 94, 255],
  273.0),
 (506,
  '0050651',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   109,
   110,
   117,
   118,
   254,
   255],
  256.0),
 (507,
  '0050652',
  [258,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   110,
   270,
   271,
   272,
   273,
   118,
   94,
   255],
  259.0),
 (508, '0050653', [272, 118, 93, 94, 255], 273.0),
 (510,
  '0050655',
  [256,
   257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   93,
   94,
   109,
   110,
   112,
   118,
   254,
   255],
  253.0),
 (513,
  '0050658',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   110,
   118,
   254,
   255],
  256.0),
 (516, '0050661', [94, 255], 273.0),
 (521,
  '0050667',
  [260, 261, 262, 263, 264, 265, 266, 267, 268, 271, 272, 94, 255],
  273.0),
 (558,
  '0050727',
  [128,
   131,
   132,
   255,
   7,
   8,
   147,
   148,
   149,
   150,
   25,
   26,
   161,
   162,
   55,
   57,
   59,
   60,
   65,
   67,
   68,
   125,
   126,
   127],
  274.0),
 (566, '0050736', [255, 59, 60, 7], 274.0),
 (576,
  '0050746',
  [33,
   35,
   255,
   37,
   39,
   167,
   43,
   15,
   79,
   17,
   63,
   19,
   51,
   21,
   61,
   83,
   27,
   29,
   31],
  274.0),
 (944,
  '0051276',
  [161,
   193,
   131,
   194,
   258,
   199,
   200,
   203,
   204,
   205,
   206,
   207,
   208,
   189,
   57,
   59,
   125,
   190,
   255],
  274.0),
 (1038, '0051462', [126, 255], 274.0),
 (1045, '0051469', [126, 255], 274.0),
 (1046, '0051470', [59, 60, 125, 126, 255], 274.0),
 (1048, '0051472', [126, 255], 274.0),
 (1072,
  '0051558',
  [260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   109,
   269,
   271,
   272,
   273,
   117,
   118,
   94,
   255],
  270.0)]

In [35]:
# Now to find the Subjects that have corrupted ROIs < 246 with modified list

corrupted_rois_lt_246 = []
subj = []
for sub in sub_lt_246:
    sub_2 = np.array(sub[2])
    modified_list = np.sort(sub_2[np.where(sub_2 < 246)[0]])
    corrupted_rois_lt_246.append((sub[1],modified_list))
    subj.append(int(sub[1]))

In [36]:
corrupted_rois_lt_246, subj


Out[36]:
([('0050279', array([94])),
  ('0050286', array([94])),
  ('0050643', array([ 69,  70,  94, 109, 110, 117, 118])),
  ('0050648', array([93, 94])),
  ('0050651', array([ 94, 109, 110, 117, 118])),
  ('0050652', array([ 94, 110, 118])),
  ('0050653', array([ 93,  94, 118])),
  ('0050655', array([ 93,  94, 109, 110, 112, 118])),
  ('0050658', array([ 94, 110, 118])),
  ('0050661', array([94])),
  ('0050667', array([94])),
  ('0050727',
   array([  7,   8,  25,  26,  55,  57,  59,  60,  65,  67,  68, 125, 126,
          127, 128, 131, 132, 147, 148, 149, 150, 161, 162])),
  ('0050736', array([ 7, 59, 60])),
  ('0050746',
   array([ 15,  17,  19,  21,  27,  29,  31,  33,  35,  37,  39,  43,  51,
           61,  63,  79,  83, 167])),
  ('0051276',
   array([ 57,  59, 125, 131, 161, 189, 190, 193, 194, 199, 200, 203, 204,
          205, 206, 207, 208])),
  ('0051462', array([126])),
  ('0051469', array([126])),
  ('0051470', array([ 59,  60, 125, 126])),
  ('0051472', array([126])),
  ('0051558', array([ 94, 109, 117, 118]))],
 [50279,
  50286,
  50643,
  50648,
  50651,
  50652,
  50653,
  50655,
  50658,
  50661,
  50667,
  50727,
  50736,
  50746,
  51276,
  51462,
  51469,
  51470,
  51472,
  51558])

In [37]:
subj = set(subj)

In [38]:
# Subjects that are in the problematic set that are in the AUTISTIC SET
set(subj) - (set(subj) - set(df_aut_lt18_m_eyesopen_subid))


Out[38]:
{50279}

In [39]:
# Subjects that are in the problematic set that are in the TD SET
set(subj) - (set(subj) - set(df_td_lt18_m_eyesopen_subid))


Out[39]:
{51276}

Results: Remove & Ignore (Eyes Open):

  • Remove sub-51276 from the TD as it contains a lot of Corrupted ROIs
  • Ignore ROI 94 as sub-50279 belonging to Autistic group has corrupted ROI

In [40]:
# Subjects that are in the problematic set that are in the AUTISTIC SET
set(subj) - (set(subj) - set(df_aut_lt18_m_eyesclosed_subid))


Out[40]:
{50746, 51472}

In [41]:
# Subjects that are in the problematic set that are in the TD SET
set(subj) - (set(subj) - set(df_td_lt18_m_eyesclosed_subid))


Out[41]:
{50727}

Results: Remove & Ignore (Eyes Closed)

  • Remove sub - 50746 as it contains a lot of corrupted ROIs
  • Remove sub-50727 as it contains a lot of corrupted ROIs
  • Ignore ROI 126 as it is corrupted in sub-51472

Final Result:

  • ROIs to ignore in Brainnetome - 126, 94
  • Subjects to ignore 51276, 50746, 50727

In [ ]:


In [42]:
# SUB - ROI
# 0050279 - 94
# 0050286 - 94
# 0050643 - 69,70,94,109,110,117,118
# 0050648 - 93,94
# 0050651 - 94,109,110,117,118
# 0050652 - 110,118,94
# 0050653 - 93,94,118
# 0050655 - 93,94,109,110,112,118
# 0050658 - 94,110,118

Major realization:

  • As many of the cerebellum ROIs were missing how could I compute the brain maps of cerebellum ?
  • I think I sould look at the cerebellum ROIs once again to see which are the major brain areas that are missing in the cerebellum
  • Cerebellum regions reported in OHBM 2018:

    • Right Crus I
    • Left Crus I
    • Right VI
    • Left V
    • Left VI

      Lets see which were wrong.

I have - df_aut_lt18_m_eyesopen_subid that denotes the sub ids of the bin that I have considered.
Cerebellum ROIs are corrrupted from ROI number 254 onwards.
I have to find the set diff between


In [62]:
sub_gt_255 = []
for sub in missing_ROIs:
#     missing_flag = False
#     for roi in sub[2]: # get the roi list for a subject
    if any(roi  > 255 for roi in sub[2]): # missing ROI is < 246 i.e belongs to brainettome
        sub_gt_255.append(sub)

In [63]:
sub_gt_255


Out[63]:
[(9, '0050011', [266, 268, 255], 274.0),
 (10, '0050012', [261, 255], 274.0),
 (15, '0050017', [266, 255], 274.0),
 (31, '0050035', [260, 262, 266, 268, 255], 274.0),
 (32, '0050036', [261, 255], 274.0),
 (34, '0050038', [261, 255], 274.0),
 (37, '0050041', [266, 255], 274.0),
 (41, '0050045', [260, 262, 263, 265, 266, 267, 268, 272, 255], 273.0),
 (46, '0050050', [266, 268, 255], 274.0),
 (51, '0050055', [261, 255], 274.0),
 (61, '0050106', [261, 255], 274.0),
 (66, '0050111', [261, 255], 274.0),
 (68, '0050113', [261, 255], 274.0),
 (71, '0050116', [261, 255], 274.0),
 (73, '0050118', [261, 255], 274.0),
 (79, '0050124', [261, 255], 274.0),
 (81, '0050126', [261, 255], 274.0),
 (83, '0050128', [261, 255], 274.0),
 (90, '0050135', [261, 255], 274.0),
 (92, '0050137', [261, 255], 274.0),
 (93, '0050142', [261, 255], 274.0),
 (99, '0050148', [261, 255], 274.0),
 (131, '0050192', [261, 255], 274.0),
 (135, '0050196', [261, 255], 274.0),
 (138, '0050199', [261, 255], 274.0),
 (232, '0050309', [261, 255], 274.0),
 (267, '0050344', [261, 255], 274.0),
 (300, '0050377', [261, 255], 274.0),
 (373, '0050465', [261, 255], 274.0),
 (411, '0050503', [261, 255], 274.0),
 (442, '0050552', [261, 255], 274.0),
 (467, '0050577', [261, 255], 274.0),
 (469, '0050601', [261, 255], 274.0),
 (498,
  '0050643',
  [260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   69,
   70,
   94,
   109,
   110,
   117,
   118,
   255],
  259.0),
 (499,
  '0050644',
  [258, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 271, 272, 273, 255],
  270.0),
 (500,
  '0050645',
  [256,
   257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   255],
  254.0),
 (503,
  '0050648',
  [260, 262, 263, 265, 266, 267, 268, 272, 93, 94, 255],
  273.0),
 (505, '0050650', [260, 262, 263, 266, 268, 255], 274.0),
 (506,
  '0050651',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   109,
   110,
   117,
   118,
   254,
   255],
  256.0),
 (507,
  '0050652',
  [258,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   110,
   270,
   271,
   272,
   273,
   118,
   94,
   255],
  259.0),
 (508, '0050653', [272, 118, 93, 94, 255], 273.0),
 (510,
  '0050655',
  [256,
   257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   93,
   94,
   109,
   110,
   112,
   118,
   254,
   255],
  253.0),
 (512, '0050657', [272, 266, 268, 255], 273.0),
 (513,
  '0050658',
  [257,
   258,
   259,
   260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   269,
   270,
   271,
   272,
   273,
   94,
   110,
   118,
   254,
   255],
  256.0),
 (521,
  '0050667',
  [260, 261, 262, 263, 264, 265, 266, 267, 268, 271, 272, 94, 255],
  273.0),
 (523, '0050669', [260, 262, 263, 265, 266, 267, 268, 272, 255], 273.0),
 (537, '0050696', [261, 255], 274.0),
 (541, '0050700', [261, 255], 274.0),
 (556, '0050725', [261, 255], 274.0),
 (572, '0050742', [261, 255], 274.0),
 (582, '0050752', [261, 255], 274.0),
 (659, '0050969', [261, 255], 274.0),
 (700, '0051012', [261, 255], 274.0),
 (809, '0051126', [261, 255], 274.0),
 (903, '0051226', [261, 255], 274.0),
 (915, '0051240', [261, 255], 274.0),
 (944,
  '0051276',
  [161,
   193,
   131,
   194,
   258,
   199,
   200,
   203,
   204,
   205,
   206,
   207,
   208,
   189,
   57,
   59,
   125,
   190,
   255],
  274.0),
 (1021, '0051363', [261, 255], 274.0),
 (1044, '0051468', [261, 255], 274.0),
 (1059, '0051483', [261, 255], 274.0),
 (1072,
  '0051558',
  [260,
   261,
   262,
   263,
   264,
   265,
   266,
   267,
   268,
   109,
   269,
   271,
   272,
   273,
   117,
   118,
   94,
   255],
  270.0),
 (1080, '0051566', [260, 262, 263, 266, 268, 255], 274.0),
 (1085, '0051571', [266, 268, 255], 274.0),
 (1086, '0051572', [266, 263, 268, 255], 274.0),
 (1089, '0051575', [258, 260, 261, 262, 263, 265, 266, 267, 268, 255], 273.0),
 (1096, '0051582', [266, 255], 274.0),
 (1098, '0051584', [266, 268, 262, 255], 274.0)]

In [ ]:


In [77]:
# Now to find the Subjects that have corrupted ROIs > 254 with modified list

corrupted_rois_gt_255 = []
subj = []
for sub in sub_gt_255:
    sub_2 = np.array(sub[2])
    modified_list = np.sort(sub_2[np.where(np.logical_and((sub_2 > 255),(sub_2 != 261)))[0]])
    if len(modified_list != 0):
        corrupted_rois_gt_255.append((sub[1],modified_list))
        subj.append(int(sub[1]))

In [78]:
subj, corrupted_rois_gt_255


Out[78]:
([50011,
  50017,
  50035,
  50041,
  50045,
  50050,
  50643,
  50644,
  50645,
  50648,
  50650,
  50651,
  50652,
  50653,
  50655,
  50657,
  50658,
  50667,
  50669,
  51276,
  51558,
  51566,
  51571,
  51572,
  51575,
  51582,
  51584],
 [('0050011', array([266, 268])),
  ('0050017', array([266])),
  ('0050035', array([260, 262, 266, 268])),
  ('0050041', array([266])),
  ('0050045', array([260, 262, 263, 265, 266, 267, 268, 272])),
  ('0050050', array([266, 268])),
  ('0050643',
   array([260, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273])),
  ('0050644',
   array([258, 260, 262, 263, 264, 265, 266, 267, 268, 269, 271, 272, 273])),
  ('0050645',
   array([256, 257, 258, 259, 260, 262, 263, 264, 265, 266, 267, 268, 269,
          270, 271, 272, 273])),
  ('0050648', array([260, 262, 263, 265, 266, 267, 268, 272])),
  ('0050650', array([260, 262, 263, 266, 268])),
  ('0050651',
   array([257, 258, 259, 260, 262, 263, 264, 265, 266, 267, 268, 269, 270,
          271, 272, 273])),
  ('0050652',
   array([258, 260, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273])),
  ('0050653', array([272])),
  ('0050655',
   array([256, 257, 258, 259, 260, 262, 263, 264, 265, 266, 267, 268, 269,
          270, 271, 272, 273])),
  ('0050657', array([266, 268, 272])),
  ('0050658',
   array([257, 258, 259, 260, 262, 263, 264, 265, 266, 267, 268, 269, 270,
          271, 272, 273])),
  ('0050667', array([260, 262, 263, 264, 265, 266, 267, 268, 271, 272])),
  ('0050669', array([260, 262, 263, 265, 266, 267, 268, 272])),
  ('0051276', array([258])),
  ('0051558',
   array([260, 262, 263, 264, 265, 266, 267, 268, 269, 271, 272, 273])),
  ('0051566', array([260, 262, 263, 266, 268])),
  ('0051571', array([266, 268])),
  ('0051572', array([263, 266, 268])),
  ('0051575', array([258, 260, 262, 263, 265, 266, 267, 268])),
  ('0051582', array([266])),
  ('0051584', array([262, 266, 268]))])

In [79]:
# Subjects that are in the problematic set that are in the AUTISTIC SET
set(subj) - (set(subj) - set(df_aut_lt18_m_eyesopen_subid))


Out[79]:
set()

In [80]:
# Subjects that are in the problematic set that are in the TD SET
set(subj) - (set(subj) - set(df_td_lt18_m_eyesopen_subid))


Out[80]:
{51276}

Results:

  • Due to conversion of 2mm to 3mm ROI 255 has disappeared
  • No subject in my bin has missing ROI of 254
  • There are many subjects that have ROI 261 Missing so we can drop ROI 261 from out analysis
  • Similarly there is just one subject in my bin with ROI 258 missing. But this ROI has not shown up anyways in my results. Ignoring this ROI for some time. Let's go ahead and drop ROI 258 as well from my analysis.
  • So finally I am dropping following ROIs from my analysis:
    • 255 -
    • 258 -
    • 261 -