@@ -204,7 +204,11 @@ class FunctionalSummaryInputSpec(TraitedSpec):
204
204
desc = 'Phase-encoding direction detected' ,
205
205
)
206
206
registration = traits .Enum (
207
- 'FSL' , 'FreeSurfer' , mandatory = True , desc = 'Functional/anatomical registration method'
207
+ 'FSL' ,
208
+ 'FreeSurfer' ,
209
+ 'Precomputed' ,
210
+ mandatory = True ,
211
+ desc = 'Functional/anatomical registration method' ,
208
212
)
209
213
fallback = traits .Bool (desc = 'Boundary-based registration rejected' )
210
214
registration_dof = traits .Enum (
@@ -239,18 +243,21 @@ def _generate_segment(self):
239
243
else :
240
244
stc = 'n/a'
241
245
# TODO: Add a note about registration_init below?
242
- reg = {
243
- 'FSL' : [
244
- 'FSL <code>flirt</code> with boundary-based registration'
245
- f' (BBR) metric - { dof } dof' ,
246
- 'FSL <code>flirt</code> rigid registration - 6 dof' ,
247
- ],
248
- 'FreeSurfer' : [
249
- 'FreeSurfer <code>bbregister</code> '
250
- f'(boundary-based registration, BBR) - { dof } dof' ,
251
- f'FreeSurfer <code>mri_coreg</code> - { dof } dof' ,
252
- ],
253
- }[self .inputs .registration ][self .inputs .fallback ]
246
+ if self .inputs .registration == 'Precomputed' :
247
+ reg = 'Precomputed affine transformation'
248
+ else :
249
+ reg = {
250
+ 'FSL' : [
251
+ 'FSL <code>flirt</code> with boundary-based registration'
252
+ f' (BBR) metric - { dof } dof' ,
253
+ 'FSL <code>flirt</code> rigid registration - 6 dof' ,
254
+ ],
255
+ 'FreeSurfer' : [
256
+ 'FreeSurfer <code>bbregister</code> '
257
+ f'(boundary-based registration, BBR) - { dof } dof' ,
258
+ f'FreeSurfer <code>mri_coreg</code> - { dof } dof' ,
259
+ ],
260
+ }[self .inputs .registration ][self .inputs .fallback ]
254
261
255
262
pedir = get_world_pedir (self .inputs .orientation , self .inputs .pe_direction )
256
263
0 commit comments