neurolabusc commited on
Commit
fbd9ebd
·
verified ·
1 Parent(s): 703daa9

Upload folder using huggingface_hub

Browse files
me-ica/motor-3echo-moco/trees/motion_aroma.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tree_id": "motion_aroma",
3
+ "info": "tedana's demo_external_aroma tree with its motion regressors matched to fMRIPrep confound names (trans_x/y/z, rot_x/y/z). Demonstration of a tree that merges some multi-echo decision criteria with head motion and temporal frequency criteria from ICA-AROMA. This does not replicate all of ICA-AROMA's metrics or decision criteria. Do not use it as a drop-in replacement for ICA-AROMA. The decision criteria in this tree are not validated on real data.",
4
+ "report": "This is based on the minimal criteria of the original MEICA decision tree \\citep{kundu2013integrated} with some of the criteria from ICA-AROMA \\citep{pruim2015ica}.",
5
+ "necessary_metrics": [
6
+ "kappa",
7
+ "rho",
8
+ "countsigFS0",
9
+ "countsigFT2",
10
+ "dice_FS0",
11
+ "dice_FT2",
12
+ "signal-noise_t",
13
+ "variance explained",
14
+ "HFC",
15
+ "max_rp_corr motion model"
16
+ ],
17
+ "intermediate_classifications": [
18
+ "provisionalaccept",
19
+ "provisionalreject"
20
+ ],
21
+ "classification_tags": [
22
+ "Likely BOLD",
23
+ "Unlikely BOLD",
24
+ "Low variance",
25
+ "HFC",
26
+ "Motion"
27
+ ],
28
+ "external_regressor_config": [
29
+ {
30
+ "regress_ID": "motion",
31
+ "info": "Calculates the 'max_rp_corr' metric on the six fMRIPrep motion parameters.",
32
+ "report": "Components that exhibit a max_rp_corr value of greater than 0.5 (an arbitrarily-selected threshold) are rejected.",
33
+ "detrend": true,
34
+ "statistic": "max_rp_corr",
35
+ "regressors": [
36
+ "^(trans|rot)_[xyz]$"
37
+ ]
38
+ }
39
+ ],
40
+ "nodes": [
41
+ {
42
+ "functionname": "manual_classify",
43
+ "parameters": {
44
+ "new_classification": "unclassified",
45
+ "decide_comps": "all"
46
+ },
47
+ "kwargs": {
48
+ "clear_classification_tags": true,
49
+ "dont_warn_reclassify": true
50
+ }
51
+ },
52
+ {
53
+ "functionname": "dec_left_op_right",
54
+ "parameters": {
55
+ "if_true": "rejected",
56
+ "if_false": "nochange",
57
+ "decide_comps": "all",
58
+ "op": ">",
59
+ "left": "rho",
60
+ "right": "kappa"
61
+ },
62
+ "kwargs": {
63
+ "tag_if_true": "Unlikely BOLD"
64
+ }
65
+ },
66
+ {
67
+ "functionname": "dec_left_op_right",
68
+ "parameters": {
69
+ "if_true": "rejected",
70
+ "if_false": "nochange",
71
+ "decide_comps": "all",
72
+ "op": ">",
73
+ "left": "countsigFS0",
74
+ "right": "countsigFT2"
75
+ },
76
+ "kwargs": {
77
+ "left2": "countsigFT2",
78
+ "op2": ">",
79
+ "right2": 0,
80
+ "tag_if_true": "Unlikely BOLD"
81
+ }
82
+ },
83
+ {
84
+ "functionname": "calc_median",
85
+ "parameters": {
86
+ "decide_comps": "all",
87
+ "metric_name": "variance explained",
88
+ "median_label": "varex"
89
+ }
90
+ },
91
+ {
92
+ "functionname": "dec_left_op_right",
93
+ "parameters": {
94
+ "if_true": "rejected",
95
+ "if_false": "nochange",
96
+ "decide_comps": "all",
97
+ "op": ">",
98
+ "left": "dice_FS0",
99
+ "right": "dice_FT2"
100
+ },
101
+ "kwargs": {
102
+ "left2": "variance explained",
103
+ "op2": ">",
104
+ "right2": "median_varex",
105
+ "tag_if_true": "Unlikely BOLD"
106
+ }
107
+ },
108
+ {
109
+ "functionname": "dec_left_op_right",
110
+ "parameters": {
111
+ "if_true": "rejected",
112
+ "if_false": "nochange",
113
+ "decide_comps": "all",
114
+ "op": ">",
115
+ "left": 0,
116
+ "right": "signal-noise_t"
117
+ },
118
+ "kwargs": {
119
+ "left2": "variance explained",
120
+ "op2": ">",
121
+ "right2": "median_varex",
122
+ "tag_if_true": "Unlikely BOLD"
123
+ }
124
+ },
125
+ {
126
+ "functionname": "calc_kappa_elbow",
127
+ "parameters": {
128
+ "decide_comps": "all"
129
+ },
130
+ "_comment": ""
131
+ },
132
+ {
133
+ "functionname": "calc_rho_elbow",
134
+ "parameters": {
135
+ "decide_comps": "all"
136
+ },
137
+ "kwargs": {
138
+ "subset_decide_comps": "unclassified",
139
+ "rho_elbow_type": "liberal"
140
+ },
141
+ "_comment": ""
142
+ },
143
+ {
144
+ "functionname": "dec_left_op_right",
145
+ "parameters": {
146
+ "if_true": "provisionalaccept",
147
+ "if_false": "provisionalreject",
148
+ "decide_comps": "unclassified",
149
+ "op": ">=",
150
+ "left": "kappa",
151
+ "right": "kappa_elbow_kundu"
152
+ }
153
+ },
154
+ {
155
+ "functionname": "dec_left_op_right",
156
+ "parameters": {
157
+ "if_true": "provisionalreject",
158
+ "if_false": "nochange",
159
+ "decide_comps": [
160
+ "provisionalreject",
161
+ "provisionalaccept"
162
+ ],
163
+ "op": ">",
164
+ "left": "rho",
165
+ "right": "rho_elbow_liberal"
166
+ }
167
+ },
168
+ {
169
+ "functionname": "dec_left_op_right",
170
+ "parameters": {
171
+ "if_true": "provisionalaccept",
172
+ "if_false": "nochange",
173
+ "decide_comps": "provisionalreject",
174
+ "op": ">",
175
+ "left": "kappa",
176
+ "right": "rho"
177
+ },
178
+ "kwargs": {
179
+ "log_extra_info": "If kappa>elbow and kappa>2*rho accept even if rho>elbow",
180
+ "right_scale": 2,
181
+ "op2": ">",
182
+ "left2": "kappa",
183
+ "right2": "kappa_elbow_kundu",
184
+ "tag_if_true": "Likely BOLD"
185
+ }
186
+ },
187
+ {
188
+ "functionname": "dec_left_op_right",
189
+ "parameters": {
190
+ "if_true": "rejected",
191
+ "if_false": "nochange",
192
+ "decide_comps": "all",
193
+ "op": ">",
194
+ "left": "HFC",
195
+ "right": 0.35
196
+ },
197
+ "kwargs": {
198
+ "log_extra_info": "Reject components with an HFC value greater than 0.35.",
199
+ "tag_if_true": "HFC"
200
+ }
201
+ },
202
+ {
203
+ "functionname": "dec_left_op_right",
204
+ "parameters": {
205
+ "if_true": "rejected",
206
+ "if_false": "nochange",
207
+ "decide_comps": "all",
208
+ "op": ">",
209
+ "left": "max_rp_corr motion model",
210
+ "right": 0.5
211
+ },
212
+ "kwargs": {
213
+ "log_extra_info": "Reject components with max_rp_corr > 0.5.",
214
+ "tag_if_true": "Motion"
215
+ }
216
+ },
217
+ {
218
+ "functionname": "dec_variance_lessthan_thresholds",
219
+ "parameters": {
220
+ "if_true": "accepted",
221
+ "if_false": "nochange",
222
+ "decide_comps": "provisionalreject"
223
+ },
224
+ "kwargs": {
225
+ "var_metric": "variance explained",
226
+ "single_comp_threshold": 0.1,
227
+ "all_comp_threshold": 1.0,
228
+ "tag_if_true": "Low variance"
229
+ }
230
+ },
231
+ {
232
+ "functionname": "manual_classify",
233
+ "parameters": {
234
+ "new_classification": "accepted",
235
+ "decide_comps": "provisionalaccept"
236
+ },
237
+ "kwargs": {
238
+ "tag": "Likely BOLD"
239
+ }
240
+ },
241
+ {
242
+ "functionname": "manual_classify",
243
+ "parameters": {
244
+ "new_classification": "rejected",
245
+ "decide_comps": [
246
+ "provisionalreject",
247
+ "unclassified"
248
+ ]
249
+ },
250
+ "kwargs": {
251
+ "tag": "Unlikely BOLD"
252
+ }
253
+ }
254
+ ]
255
+ }
me-ica/motor-3echo-moco/trees/motion_f.json ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tree_id": "motion_f",
3
+ "info": "tedana's demo_external_regressors_motion_task_models tree for fMRIPrep confounds: an F test of the 24-term motion model (trans/rot, derivatives, squares), with partial F tests for the six parameters and for their expansion terms, and no task model.",
4
+ "report": "This is based on the minimal criteria of the original MEICA decision tree \\citep{kundu2013integrated} without the more aggressive noise removal steps \\citep{dupre2021te}.",
5
+ "necessary_metrics": [
6
+ "kappa",
7
+ "rho",
8
+ "countsigFS0",
9
+ "countsigFT2",
10
+ "dice_FS0",
11
+ "dice_FT2",
12
+ "signal-noise_t",
13
+ "variance explained",
14
+ "pval motion model",
15
+ "pval motion Parameters partial model",
16
+ "pval motion Expansion partial model",
17
+ "R2stat motion model"
18
+ ],
19
+ "intermediate_classifications": [
20
+ "provisionalaccept",
21
+ "provisionalreject"
22
+ ],
23
+ "classification_tags": [
24
+ "Likely BOLD",
25
+ "Unlikely BOLD",
26
+ "Low variance",
27
+ "Motion",
28
+ "Fits motion parameters",
29
+ "Fits motion expansion"
30
+ ],
31
+ "external_regressor_config": [
32
+ {
33
+ "regress_ID": "motion",
34
+ "info": "Fits the 24 fMRIPrep motion regressors to a single model using an F statistic",
35
+ "report": "Components that fit the motion regressors using a linear model were rejected.",
36
+ "detrend": true,
37
+ "statistic": "F",
38
+ "regressors": [
39
+ "^(trans|rot)_[xyz].*$"
40
+ ],
41
+ "partial_models": {
42
+ "Parameters": [
43
+ "^(trans|rot)_[xyz]$"
44
+ ],
45
+ "Expansion": [
46
+ "^(trans|rot)_[xyz]_.+$"
47
+ ]
48
+ }
49
+ }
50
+ ],
51
+ "nodes": [
52
+ {
53
+ "functionname": "manual_classify",
54
+ "parameters": {
55
+ "new_classification": "unclassified",
56
+ "decide_comps": "all"
57
+ },
58
+ "kwargs": {
59
+ "clear_classification_tags": true,
60
+ "dont_warn_reclassify": true
61
+ }
62
+ },
63
+ {
64
+ "functionname": "dec_left_op_right",
65
+ "parameters": {
66
+ "if_true": "provisionalreject",
67
+ "if_false": "nochange",
68
+ "decide_comps": "all",
69
+ "op": ">",
70
+ "left": "rho",
71
+ "right": "kappa"
72
+ },
73
+ "kwargs": {
74
+ "tag_if_true": "Unlikely BOLD"
75
+ }
76
+ },
77
+ {
78
+ "functionname": "dec_left_op_right",
79
+ "parameters": {
80
+ "if_true": "provisionalreject",
81
+ "if_false": "nochange",
82
+ "decide_comps": "all",
83
+ "op": ">",
84
+ "left": "countsigFS0",
85
+ "right": "countsigFT2"
86
+ },
87
+ "kwargs": {
88
+ "left2": "countsigFT2",
89
+ "op2": ">",
90
+ "right2": 0,
91
+ "tag_if_true": "Unlikely BOLD"
92
+ }
93
+ },
94
+ {
95
+ "functionname": "calc_median",
96
+ "parameters": {
97
+ "decide_comps": "all",
98
+ "metric_name": "variance explained",
99
+ "median_label": "varex"
100
+ }
101
+ },
102
+ {
103
+ "functionname": "dec_left_op_right",
104
+ "parameters": {
105
+ "if_true": "provisionalreject",
106
+ "if_false": "nochange",
107
+ "decide_comps": "all",
108
+ "op": ">",
109
+ "left": "dice_FS0",
110
+ "right": "dice_FT2"
111
+ },
112
+ "kwargs": {
113
+ "left2": "variance explained",
114
+ "op2": ">",
115
+ "right2": "median_varex",
116
+ "tag_if_true": "Unlikely BOLD"
117
+ }
118
+ },
119
+ {
120
+ "functionname": "dec_left_op_right",
121
+ "parameters": {
122
+ "if_true": "provisionalreject",
123
+ "if_false": "nochange",
124
+ "decide_comps": "all",
125
+ "op": ">",
126
+ "left": 0,
127
+ "right": "signal-noise_t"
128
+ },
129
+ "kwargs": {
130
+ "left2": "variance explained",
131
+ "op2": ">",
132
+ "right2": "median_varex",
133
+ "tag_if_true": "Unlikely BOLD"
134
+ }
135
+ },
136
+ {
137
+ "functionname": "calc_kappa_elbow",
138
+ "parameters": {
139
+ "decide_comps": "all"
140
+ },
141
+ "_comment": ""
142
+ },
143
+ {
144
+ "functionname": "calc_rho_elbow",
145
+ "parameters": {
146
+ "decide_comps": "all"
147
+ },
148
+ "kwargs": {
149
+ "subset_decide_comps": "unclassified",
150
+ "rho_elbow_type": "liberal",
151
+ "log_extra_info": ""
152
+ },
153
+ "_comment": ""
154
+ },
155
+ {
156
+ "functionname": "dec_left_op_right",
157
+ "parameters": {
158
+ "if_true": "provisionalaccept",
159
+ "if_false": "provisionalreject",
160
+ "decide_comps": "unclassified",
161
+ "op": ">=",
162
+ "left": "kappa",
163
+ "right": "kappa_elbow_kundu"
164
+ },
165
+ "kwargs": {
166
+ "log_extra_info": "If kappa> kappa elbow and rho<rho elbow, provisional accept. Otherwise provisional reject",
167
+ "op2": "<",
168
+ "left2": "rho",
169
+ "right2": "rho_elbow_liberal",
170
+ "tag_if_true": "Likely BOLD"
171
+ }
172
+ },
173
+ {
174
+ "functionname": "dec_left_op_right",
175
+ "parameters": {
176
+ "if_true": "provisionalaccept",
177
+ "if_false": "nochange",
178
+ "decide_comps": "provisionalreject",
179
+ "op": ">",
180
+ "left": "kappa",
181
+ "right": "rho"
182
+ },
183
+ "kwargs": {
184
+ "log_extra_info": "If kappa>elbow and kappa>2*rho accept even if rho>elbow",
185
+ "right_scale": 2,
186
+ "op2": ">",
187
+ "left2": "kappa",
188
+ "right2": "kappa_elbow_kundu",
189
+ "tag_if_true": "Likely BOLD",
190
+ "tag_if_false": "Unlikely BOLD"
191
+ }
192
+ },
193
+ {
194
+ "functionname": "dec_left_op_right",
195
+ "parameters": {
196
+ "if_true": "provisionalreject",
197
+ "if_false": "nochange",
198
+ "decide_comps": "all",
199
+ "op": "<",
200
+ "left": "pval motion model",
201
+ "right": 0.05
202
+ },
203
+ "kwargs": {
204
+ "op2": ">",
205
+ "left2": "R2stat motion model",
206
+ "right2": 0.5,
207
+ "log_extra_info": "If motion regressors fit with p<0.05 and model R2>0.5 of the variance, then reject.",
208
+ "tag_if_true": "Motion"
209
+ },
210
+ "_comment": "Provisionally rejecting components that fit to the external regressor noise model"
211
+ },
212
+ {
213
+ "functionname": "dec_left_op_right",
214
+ "parameters": {
215
+ "if_true": "nochange",
216
+ "if_false": "nochange",
217
+ "decide_comps": "provisionalreject",
218
+ "op": "<",
219
+ "left": "pval motion model",
220
+ "right": 0.05
221
+ },
222
+ "kwargs": {
223
+ "op2": ">",
224
+ "left2": "R2stat motion model",
225
+ "right2": 0.5,
226
+ "op3": "<",
227
+ "left3": "pval motion Parameters partial model",
228
+ "right3": 0.05,
229
+ "tag_if_true": "Fits motion parameters"
230
+ },
231
+ "_comment": "Identical to the one above, & not changing classifications, but tagging if fits to motion regressors"
232
+ },
233
+ {
234
+ "functionname": "dec_left_op_right",
235
+ "parameters": {
236
+ "if_true": "nochange",
237
+ "if_false": "nochange",
238
+ "decide_comps": "provisionalreject",
239
+ "op": "<",
240
+ "left": "pval motion model",
241
+ "right": 0.05
242
+ },
243
+ "kwargs": {
244
+ "op2": ">",
245
+ "left2": "R2stat motion model",
246
+ "right2": 0.5,
247
+ "op3": "<",
248
+ "left3": "pval motion Expansion partial model",
249
+ "right3": 0.05,
250
+ "tag_if_true": "Fits motion expansion"
251
+ },
252
+ "_comment": "Identical to the one above, & not changing classifications, but tagging if fits to CSF regressors"
253
+ },
254
+ {
255
+ "functionname": "dec_variance_lessthan_thresholds",
256
+ "parameters": {
257
+ "if_true": "accepted",
258
+ "if_false": "nochange",
259
+ "decide_comps": "provisionalreject"
260
+ },
261
+ "kwargs": {
262
+ "var_metric": "variance explained",
263
+ "single_comp_threshold": 0.1,
264
+ "all_comp_threshold": 1.0,
265
+ "tag_if_true": "Low variance"
266
+ }
267
+ },
268
+ {
269
+ "functionname": "manual_classify",
270
+ "parameters": {
271
+ "new_classification": "accepted",
272
+ "decide_comps": "provisionalaccept"
273
+ },
274
+ "kwargs": {
275
+ "tag": "Likely BOLD"
276
+ }
277
+ },
278
+ {
279
+ "functionname": "manual_classify",
280
+ "parameters": {
281
+ "new_classification": "rejected",
282
+ "decide_comps": [
283
+ "provisionalreject",
284
+ "unclassified"
285
+ ]
286
+ },
287
+ "kwargs": {
288
+ "tag": "Unlikely BOLD"
289
+ }
290
+ }
291
+ ]
292
+ }