Skip to content

Commit d1ad1f9

Browse files
committed
Removed session F test.
1 parent bdd63e0 commit d1ad1f9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

nipype/algorithms/icc.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class ICCInputSpec(BaseInterfaceInputSpec):
1616

1717
class ICCOutputSpec(TraitedSpec):
1818
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()
2219
session_var_map = File(exists=True, desc="variance between sessions")
2320
subject_var_map = File(exists=True, desc="variance between subjects")
2421

@@ -47,18 +44,13 @@ def _run_interface(self, runtime):
4744

4845
for x in range(icc.shape[0]):
4946
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)
5148

5249
nim = nb.load(self.inputs.subjects_sessions[0][0])
5350
new_data = np.zeros(nim.get_shape())
5451
new_data[maskdata] = icc.reshape(-1,)
5552
new_img = nb.Nifti1Image(new_data, nim.get_affine(), nim.get_header())
5653
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')
6254

6355
new_data = np.zeros(nim.get_shape())
6456
new_data[maskdata] = session_var.reshape(-1,)
@@ -76,8 +68,6 @@ def _list_outputs(self):
7668
outputs = self._outputs().get()
7769
outputs['icc_map'] = os.path.abspath('icc_map.nii')
7870
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
8171
outputs['session_var_map'] = os.path.abspath('session_var_map.nii')
8272
outputs['subject_var_map'] = os.path.abspath('subject_var_map.nii')
8373
return outputs

0 commit comments

Comments
 (0)