1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
1
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
4
2
# vi: set ft=python sts=4 ts=4 sw=4 et:
5
3
"""
28
26
\t \t <li>Structural images: {n_t1s:d} T1-weighted {t2w}</li>
29
27
\t \t <li>Functional series: {n_bold:d}</li>
30
28
{tasks}
31
- \t \t <li>Standard output spaces: {output_spaces}</li>
29
+ \t \t <li>Standard output spaces: {std_spaces}</li>
30
+ \t \t <li>Non-standard output spaces: {nstd_spaces}</li>
32
31
\t \t <li>FreeSurfer reconstruction: {freesurfer_status}</li>
33
32
\t </ul>
34
33
"""
40
39
\t \t \t <li>Slice timing correction: {stc}</li>
41
40
\t \t \t <li>Susceptibility distortion correction: {sdc}</li>
42
41
\t \t \t <li>Registration: {registration}</li>
43
- \t \t \t <li>Functional series resampled to spaces: {output_spaces}</li>
44
42
\t \t \t <li>Confounds collected: {confounds}</li>
45
43
\t \t </ul>
46
44
"""
@@ -81,7 +79,8 @@ class SubjectSummaryInputSpec(BaseInterfaceInputSpec):
81
79
bold = InputMultiObject (traits .Either (
82
80
File (exists = True ), traits .List (File (exists = True ))),
83
81
desc = 'BOLD functional series' )
84
- output_spaces = InputMultiObject (Str , desc = 'list of standard spaces' )
82
+ std_spaces = InputMultiObject (Str , desc = 'list of standard spaces' )
83
+ nstd_spaces = InputMultiObject (Str , desc = 'list of non-standard spaces' )
85
84
86
85
87
86
class SubjectSummaryOutputSpec (SummaryOutputSpec ):
@@ -138,7 +137,8 @@ def _generate_segment(self):
138
137
t2w = t2w_seg ,
139
138
n_bold = len (bold_series ),
140
139
tasks = tasks ,
141
- output_spaces = ', ' .join (self .inputs .output_spaces ),
140
+ std_spaces = ', ' .join (self .inputs .std_spaces ),
141
+ nstd_spaces = ', ' .join (self .inputs .nstd_spaces ),
142
142
freesurfer_status = freesurfer_status )
143
143
144
144
@@ -154,7 +154,6 @@ class FunctionalSummaryInputSpec(BaseInterfaceInputSpec):
154
154
fallback = traits .Bool (desc = 'Boundary-based registration rejected' )
155
155
registration_dof = traits .Enum (6 , 9 , 12 , desc = 'Registration degrees of freedom' ,
156
156
mandatory = True )
157
- output_spaces = traits .List (desc = 'Target spaces' )
158
157
confounds_file = File (exists = True , desc = 'Confounds file' )
159
158
tr = traits .Float (desc = 'Repetition time' , mandatory = True )
160
159
@@ -187,7 +186,6 @@ def _generate_segment(self):
187
186
conflist = cfh .readline ().strip ('\n ' ).strip ()
188
187
return FUNCTIONAL_TEMPLATE .format (
189
188
pedir = pedir , stc = stc , sdc = self .inputs .distortion_correction , registration = reg ,
190
- output_spaces = ', ' .join (self .inputs .output_spaces ),
191
189
confounds = re .sub (r'[\t ]+' , ', ' , conflist ), tr = self .inputs .tr )
192
190
193
191
0 commit comments