@@ -16,9 +16,6 @@ class ICCInputSpec(BaseInterfaceInputSpec):
16
16
17
17
class ICCOutputSpec (TraitedSpec ):
18
18
icc_map = File (exists = True )
19
- sessions_F_map = File (exists = True , desc = "F statistics for the effect of session" )
20
- sessions_df_1 = traits .Int ()
21
- sessions_df_2 = traits .Int ()
22
19
session_var_map = File (exists = True , desc = "variance between sessions" )
23
20
subject_var_map = File (exists = True , desc = "variance between subjects" )
24
21
@@ -47,18 +44,13 @@ def _run_interface(self, runtime):
47
44
48
45
for x in range (icc .shape [0 ]):
49
46
Y = all_data [x , :, :]
50
- icc [x ], subject_var [x ], session_var [x ], session_F [x ], self . _df1 , self . _df2 = ICC_rep_anova (Y )
47
+ icc [x ], subject_var [x ], session_var [x ], session_F [x ], _ , _ = ICC_rep_anova (Y )
51
48
52
49
nim = nb .load (self .inputs .subjects_sessions [0 ][0 ])
53
50
new_data = np .zeros (nim .get_shape ())
54
51
new_data [maskdata ] = icc .reshape (- 1 ,)
55
52
new_img = nb .Nifti1Image (new_data , nim .get_affine (), nim .get_header ())
56
53
nb .save (new_img , 'icc_map.nii' )
57
-
58
- new_data = np .zeros (nim .get_shape ())
59
- new_data [maskdata ] = session_F .reshape (- 1 ,)
60
- new_img = nb .Nifti1Image (new_data , nim .get_affine (), nim .get_header ())
61
- nb .save (new_img , 'sessions_F_map.nii' )
62
54
63
55
new_data = np .zeros (nim .get_shape ())
64
56
new_data [maskdata ] = session_var .reshape (- 1 ,)
@@ -76,8 +68,6 @@ def _list_outputs(self):
76
68
outputs = self ._outputs ().get ()
77
69
outputs ['icc_map' ] = os .path .abspath ('icc_map.nii' )
78
70
outputs ['sessions_F_map' ] = os .path .abspath ('sessions_F_map.nii' )
79
- outputs ['sessions_df_1' ] = self ._df1
80
- outputs ['sessions_df_2' ] = self ._df2
81
71
outputs ['session_var_map' ] = os .path .abspath ('session_var_map.nii' )
82
72
outputs ['subject_var_map' ] = os .path .abspath ('subject_var_map.nii' )
83
73
return outputs
0 commit comments