Skip to content

Commit f34ab50

Browse files
committed
added mandatory dtatgrabber field
1 parent 66ae695 commit f34ab50

30 files changed

+43
-7
lines changed

examples/dmri_camino_dti.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def get_affine(volume):
102102

103103
datasource.inputs.field_template = dict(dwi='%s/%s.nii.gz')
104104
datasource.inputs.template_args = info
105+
datasource.inputs.sort_filelist = True
105106

106107
"""
107108
An inputnode is used to pass the data obtained by the data grabber to the actual processing functions

examples/dmri_connectivity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def select_aparc_annot(list_of_files):
154154
datasource.inputs.field_template = dict(dwi='%s/%s.nii.gz')
155155
datasource.inputs.template_args = info
156156
datasource.inputs.base_directory = data_dir
157+
datasource.inputs.sort_filelist = True
157158

158159
"""
159160
FreeSurferSource nodes are used to retrieve a number of image

examples/dmri_connectivity_advanced.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
datasource.inputs.base_directory = data_dir
122122
datasource.inputs.field_template = dict(dwi='%s/%s.nii.gz')
123123
datasource.inputs.template_args = info
124+
datasource.inputs.sort_filelist = True
124125

125126
"""
126127
The input node and Freesurfer sources declared here will be the main

examples/dmri_dtk_dti.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109

110110
datasource.inputs.field_template = dict(dwi='%s/%s.nii.gz')
111111
datasource.inputs.template_args = info
112+
datasource.inputs.sort_filelist = True
112113

113114

114115
"""

examples/dmri_dtk_odf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109

110110
datasource.inputs.field_template = dict(dwi='%s/%s.nii')
111111
datasource.inputs.template_args = info
112+
datasource.inputs.sort_filelist = True
112113

113114

114115
"""

examples/dmri_fsl_dti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
seed_file="%s.bedpostX/%s.nii.gz",
121121
target_masks="%s.bedpostX/%s.nii.gz")
122122
datasource.inputs.template_args = info
123-
123+
datasource.inputs.sort_filelist = True
124124

125125
"""
126126
Setup for Diffusion Tensor Computation

examples/dmri_mrtrix_dti.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
datasource.inputs.base_directory = data_dir
6565
datasource.inputs.field_template = dict(dwi='%s/%s.nii.gz')
6666
datasource.inputs.template_args = info
67+
datasource.inputs.sort_filelist = True
6768

6869
"""
6970
An inputnode is used to pass the data obtained by the data grabber to the actual processing functions

examples/dmri_tbss_nki.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
datasource.inputs.template_args = dict(dwi=[['subject_id', 'nii.gz']],
5252
bvec=[['subject_id', 'bvec']],
5353
bval=[['subject_id', 'bval']])
54+
datasource.inputs.sort_filelist = True
5455
gen_fa.connect(subject_id_infosource, 'subject_id', datasource, 'subject_id')
5556

5657
eddy_correct = create_eddy_correct_pipeline()
@@ -92,6 +93,7 @@
9293
tbss_source.inputs.template = '%s/%s_%s.nii'
9394
tbss_source.inputs.template_args = dict(fa_list=[['FA', subjects_list, 'FA']],
9495
md_list=[['MD', subjects_list, 'MD']])
96+
tbss_source.inputs.sort_filelist = True
9597

9698
"""
9799
TBSS analysis

examples/fmri_freesurfer_smooth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@
418418
datasource.inputs.base_directory = data_dir
419419
datasource.inputs.template = '%s/%s.nii'
420420
datasource.inputs.template_args = info
421+
datasource.inputs.sort_filelist = True
421422

422423

423424
"""
@@ -588,6 +589,7 @@ def getsubs(subject_id):
588589
l2source.inputs.field_template = dict(con='*/contrasts/con_%04d.img',
589590
reg='*/registrations/*.dat')
590591
l2source.inputs.template_args = dict(con=[['con_id']],reg=[[]])
592+
l2source.inputs.sort_filelist = True
591593

592594
l2flow.connect(l2inputnode, 'contrasts', l2source, 'con_id')
593595

examples/fmri_fsl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ def num_copes(files):
539539
datasource.inputs.base_directory = data_dir
540540
datasource.inputs.template = '%s/%s.nii'
541541
datasource.inputs.template_args = info
542+
datasource.inputs.sort_filelist = True
542543

543544
"""
544545
Use the get_node function to retrieve an internal node by name. Then set the

0 commit comments

Comments
 (0)