@@ -228,7 +228,6 @@ def create_reg_workflow(name='registration'):
228
228
register .connect (stripper , 'out_file' , reg , 'moving_image' )
229
229
register .connect (inputnode ,'target_image_brain' , reg ,'fixed_image' )
230
230
231
-
232
231
"""
233
232
Concatenate the affine and ants transforms into a list
234
233
"""
@@ -239,7 +238,6 @@ def create_reg_workflow(name='registration'):
239
238
register .connect (convert2itk , 'itk_transform' , merge , 'in2' )
240
239
register .connect (reg , ('composite_transform' , pickfirst ), merge , 'in1' )
241
240
242
-
243
241
"""
244
242
Transform the mean image. First to anatomical and then to target
245
243
"""
@@ -271,7 +269,6 @@ def create_reg_workflow(name='registration'):
271
269
register .connect (inputnode ,'source_files' , warpall , 'input_image' )
272
270
register .connect (merge , 'out' , warpall , 'transforms' )
273
271
274
-
275
272
"""
276
273
Assign all the output files
277
274
"""
@@ -379,6 +376,7 @@ def create_fs_reg_workflow(name='registration'):
379
376
"""
380
377
Apply inverse transform to aparc file
381
378
"""
379
+
382
380
aparcxfm = Node (freesurfer .ApplyVolTransform (inverse = True ,
383
381
interp = 'nearest' ),
384
382
name = 'aparc_inverse_transform' )
@@ -439,7 +437,6 @@ def create_fs_reg_workflow(name='registration'):
439
437
register .connect (stripper , 'out_file' , reg , 'moving_image' )
440
438
register .connect (inputnode ,'target_image' , reg ,'fixed_image' )
441
439
442
-
443
440
"""
444
441
Concatenate the affine and ants transforms into a list
445
442
"""
@@ -450,10 +447,10 @@ def create_fs_reg_workflow(name='registration'):
450
447
register .connect (convert2itk , 'itk_transform' , merge , 'in2' )
451
448
register .connect (reg , ('composite_transform' , pickfirst ), merge , 'in1' )
452
449
453
-
454
450
"""
455
451
Transform the mean image. First to anatomical and then to target
456
452
"""
453
+
457
454
warpmean = Node (ants .ApplyTransforms (), name = 'warpmean' )
458
455
warpmean .inputs .input_image_type = 0
459
456
warpmean .inputs .interpolation = 'Linear'
@@ -492,7 +489,6 @@ def create_fs_reg_workflow(name='registration'):
492
489
register .connect (inputnode ,'source_files' , warpall , 'input_image' )
493
490
register .connect (merge , 'out' , warpall , 'transforms' )
494
491
495
-
496
492
"""
497
493
Assign all the output files
498
494
"""
@@ -659,6 +655,7 @@ def analyze_openfmri_dataset(data_dir, subject=None, model_id=None,
659
655
"""
660
656
Return data components as anat, bold and behav
661
657
"""
658
+
662
659
contrast_file = os .path .join (data_dir , 'models' , 'model%03d' % model_id ,
663
660
'task_contrasts.txt' )
664
661
has_contrast = os .path .exists (contrast_file )
0 commit comments