Skip to content

Commit 518233d

Browse files
committed
Merge pull request #653 from satra/fix/atlasupdate
Fix/atlasupdate
2 parents 6682859 + 377cacd commit 518233d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

examples/rsfmri_preprocessing.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
3434
specifically the 2mm versions of:
3535
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>`_
3838
3939
The 2mm version was generated with::
4040
4141
>>> from nipype import freesurfer as fs
4242
>>> 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'
4545
>>> rs.inputs.voxel_size = (2., 2., 2.)
4646
>>> rs.inputs.args = '-rt nearest -ns 1'
4747
>>> res = rs.run()
@@ -584,7 +584,7 @@ def create_workflow(files,
584584
reg.inputs.use_histogram_matching = [False] * 3 + [True]
585585
reg.inputs.output_warped_image = 'output_warped_image.nii.gz'
586586
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')
588588
reg.inputs.num_threads = 4
589589
reg.plugin_args = {'qsub_args': '-l nodes=1:ppn=4'}
590590

@@ -625,7 +625,7 @@ def create_workflow(files,
625625
sample2mni.inputs.interpolation = 'BSpline'
626626
sample2mni.inputs.invert_transform_flags = [False, False]
627627
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')
629629
sample2mni.inputs.terminal_output = 'file'
630630
wf.connect(bandpass, 'out_file', sample2mni, 'input_image')
631631
wf.connect(merge, 'out', sample2mni, 'transforms')
@@ -641,8 +641,8 @@ def create_workflow(files,
641641
ts2txt.inputs.indices = [8] + range(10, 14) + [17, 18, 26, 47] +\
642642
range(49, 55) + [58]
643643
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'))
646646
wf.connect(sample2mni, 'output_image', ts2txt, 'timeseries_file')
647647

648648
# Save the relevant data into an output directory
@@ -699,7 +699,7 @@ def create_workflow(files,
699699
"""
700700

701701

702-
def create_resting_workflow(args):
702+
def create_resting_workflow(args, name='resting'):
703703
TR = args.TR
704704
slice_times = args.slice_times
705705
slice_thickness = None
@@ -722,7 +722,8 @@ def create_resting_workflow(args):
722722
slice_thickness=slice_thickness,
723723
lowpass_freq=args.lowpass_freq,
724724
highpass_freq=args.highpass_freq,
725-
sink_directory=os.path.abspath(args.sink))
725+
sink_directory=os.path.abspath(args.sink),
726+
name=name)
726727
if args.field_maps:
727728
kwargs.update(**dict(fieldmap_images=args.field_maps,
728729
FM_TEdiff=args.TE_diff,

0 commit comments

Comments
 (0)