|
64 | 64 | \t\t\t<li>Repetition time (TR): {tr:.03g}s</li>
|
65 | 65 | \t\t\t<li>Phase-encoding (PE) direction: {pedir}</li>
|
66 | 66 | \t\t\t<li>{multiecho}</li>
|
| 67 | +\t\t\t<li>Slice timing correction: {stc}</li> |
67 | 68 | \t\t\t<li>Susceptibility distortion correction: {sdc}</li>
|
68 | 69 | \t\t\t<li>Registration: {registration}</li>
|
69 | 70 | \t\t\t<li>Non-steady-state volumes: {dummy_scan_desc}</li>
|
@@ -189,6 +190,7 @@ def _generate_segment(self):
|
189 | 190 |
|
190 | 191 |
|
191 | 192 | class FunctionalSummaryInputSpec(TraitedSpec):
|
| 193 | + slice_timing = traits.Enum(False, True, 'TooShort', desc='Slice timing correction used') |
192 | 194 | distortion_correction = traits.Str(
|
193 | 195 | desc='Susceptibility distortion correction method', mandatory=True
|
194 | 196 | )
|
@@ -229,7 +231,15 @@ class FunctionalSummary(SummaryInterface):
|
229 | 231 |
|
230 | 232 | def _generate_segment(self):
|
231 | 233 | dof = self.inputs.registration_dof
|
232 |
| - # #TODO: Add a note about registration_init below? |
| 234 | + if isdefined(self.inputs.slice_timing): |
| 235 | + stc = { |
| 236 | + True: 'Applied', |
| 237 | + False: 'Not applied', |
| 238 | + 'TooShort': 'Skipped (too few volumes)', |
| 239 | + }[self.inputs.slice_timing] |
| 240 | + else: |
| 241 | + stc = 'n/a' |
| 242 | + # TODO: Add a note about registration_init below? |
233 | 243 | reg = {
|
234 | 244 | 'FSL': [
|
235 | 245 | 'FSL <code>flirt</code> with boundary-based registration'
|
@@ -272,6 +282,7 @@ def _generate_segment(self):
|
272 | 282 |
|
273 | 283 | return FUNCTIONAL_TEMPLATE.format(
|
274 | 284 | pedir=pedir,
|
| 285 | + stc=stc, |
275 | 286 | sdc=self.inputs.distortion_correction,
|
276 | 287 | registration=reg,
|
277 | 288 | tr=self.inputs.tr,
|
|
0 commit comments