33
33
34
34
specifically the 2mm versions of:
35
35
36
- - `Joint Fusion Atlas <http://mindboggle.info/data/atlases/jointfusion/OASIS-TRT-20_DKT31_CMA_jointfusion_labels_in_MNI152_2mm .nii.gz>`_
37
- - `MNI template <http://mindboggle.info/data/templates/ants/OASIS-TRT-20_template_in_MNI152_2mm .nii.gz>`_
36
+ - `Joint Fusion Atlas <http://mindboggle.info/data/atlases/jointfusion/OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152_2mm .nii.gz>`_
37
+ - `MNI template <http://mindboggle.info/data/templates/ants/OASIS-30_Atropos_template_in_MNI152_2mm .nii.gz>`_
38
38
39
39
The 2mm version was generated with::
40
40
41
41
>>> from nipype import freesurfer as fs
42
42
>>> rs = fs.Resample()
43
- >>> rs.inputs.in_file = 'OASIS-TRT-20_DKT31_CMA_jointfusion_labels_in_MNI152 .nii.gz'
44
- >>> rs.inputs.resampled_file = 'OASIS-TRT-20_DKT31_CMA_jointfusion_labels_in_MNI152_2mm .nii.gz'
43
+ >>> rs.inputs.in_file = 'OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152 .nii.gz'
44
+ >>> rs.inputs.resampled_file = 'OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152_2mm .nii.gz'
45
45
>>> rs.inputs.voxel_size = (2., 2., 2.)
46
46
>>> rs.inputs.args = '-rt nearest -ns 1'
47
47
>>> res = rs.run()
@@ -584,7 +584,7 @@ def create_workflow(files,
584
584
reg .inputs .use_histogram_matching = [False ] * 3 + [True ]
585
585
reg .inputs .output_warped_image = 'output_warped_image.nii.gz'
586
586
reg .inputs .fixed_image = \
587
- os .path .abspath ('OASIS-TRT-20_template_to_MNI152_2mm .nii.gz' )
587
+ os .path .abspath ('OASIS-30_Atropos_template_in_MNI152_2mm .nii.gz' )
588
588
reg .inputs .num_threads = 4
589
589
reg .plugin_args = {'qsub_args' : '-l nodes=1:ppn=4' }
590
590
@@ -625,7 +625,7 @@ def create_workflow(files,
625
625
sample2mni .inputs .interpolation = 'BSpline'
626
626
sample2mni .inputs .invert_transform_flags = [False , False ]
627
627
sample2mni .inputs .reference_image = \
628
- os .path .abspath ('OASIS-TRT-20_template_to_MNI152_2mm .nii.gz' )
628
+ os .path .abspath ('OASIS-30_Atropos_template_in_MNI152_2mm .nii.gz' )
629
629
sample2mni .inputs .terminal_output = 'file'
630
630
wf .connect (bandpass , 'out_file' , sample2mni , 'input_image' )
631
631
wf .connect (merge , 'out' , sample2mni , 'transforms' )
@@ -641,8 +641,8 @@ def create_workflow(files,
641
641
ts2txt .inputs .indices = [8 ] + range (10 , 14 ) + [17 , 18 , 26 , 47 ] + \
642
642
range (49 , 55 ) + [58 ]
643
643
ts2txt .inputs .label_file = \
644
- os .path .abspath (('OASIS-TRT-20_DKT31_CMA_jointfusion_labels_in_MNI152 '
645
- '_2mm .nii.gz' ))
644
+ os .path .abspath (('OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_MNI152_ '
645
+ '2mm .nii.gz' ))
646
646
wf .connect (sample2mni , 'output_image' , ts2txt , 'timeseries_file' )
647
647
648
648
# Save the relevant data into an output directory
@@ -699,7 +699,7 @@ def create_workflow(files,
699
699
"""
700
700
701
701
702
- def create_resting_workflow (args ):
702
+ def create_resting_workflow (args , name = 'resting' ):
703
703
TR = args .TR
704
704
slice_times = args .slice_times
705
705
slice_thickness = None
@@ -722,7 +722,8 @@ def create_resting_workflow(args):
722
722
slice_thickness = slice_thickness ,
723
723
lowpass_freq = args .lowpass_freq ,
724
724
highpass_freq = args .highpass_freq ,
725
- sink_directory = os .path .abspath (args .sink ))
725
+ sink_directory = os .path .abspath (args .sink ),
726
+ name = name )
726
727
if args .field_maps :
727
728
kwargs .update (** dict (fieldmap_images = args .field_maps ,
728
729
FM_TEdiff = args .TE_diff ,
0 commit comments