@@ -268,7 +268,7 @@ def get_affine(volume):
268268tractography .connect ([(dtifit , fa , [("tensor_fitted" , "in_file" )])])
269269tractography .connect ([(fa , analyzeheader_fa , [("fa" , "in_file" )])])
270270tractography .connect ([(inputnode , analyzeheader_fa , [(('dwi' , get_vox_dims ), 'voxel_dims' ),
271- (('dwi' , get_data_dims ), 'data_dims' )])])
271+ (('dwi' , get_data_dims ), 'data_dims' )])])
272272tractography .connect ([(fa , fa2nii , [('fa' , 'data_file' )])])
273273tractography .connect ([(inputnode , fa2nii , [(('dwi' , get_affine ), 'affine' )])])
274274tractography .connect ([(analyzeheader_fa , fa2nii , [('header' , 'header_file' )])])
@@ -277,7 +277,7 @@ def get_affine(volume):
277277tractography .connect ([(dtifit , trace , [("tensor_fitted" , "in_file" )])])
278278tractography .connect ([(trace , analyzeheader_trace , [("trace" , "in_file" )])])
279279tractography .connect ([(inputnode , analyzeheader_trace , [(('dwi' , get_vox_dims ), 'voxel_dims' ),
280- (('dwi' , get_data_dims ), 'data_dims' )])])
280+ (('dwi' , get_data_dims ), 'data_dims' )])])
281281tractography .connect ([(trace , trace2nii , [('trace' , 'data_file' )])])
282282tractography .connect ([(inputnode , trace2nii , [(('dwi' , get_affine ), 'affine' )])])
283283tractography .connect ([(analyzeheader_trace , trace2nii , [('header' , 'header_file' )])])
@@ -287,10 +287,10 @@ def get_affine(volume):
287287tractography .connect ([(trackpico , cam2trk_pico , [('tracked' , 'in_file' )])])
288288tractography .connect ([(trackdt , cam2trk_dt , [('tracked' , 'in_file' )])])
289289tractography .connect ([(inputnode , cam2trk_pico , [(('dwi' , get_vox_dims ), 'voxel_dims' ),
290- (('dwi' , get_data_dims ), 'data_dims' )])])
290+ (('dwi' , get_data_dims ), 'data_dims' )])])
291291
292292tractography .connect ([(inputnode , cam2trk_dt , [(('dwi' , get_vox_dims ), 'voxel_dims' ),
293- (('dwi' , get_data_dims ), 'data_dims' )])])
293+ (('dwi' , get_data_dims ), 'data_dims' )])])
294294
295295
296296"""
@@ -303,9 +303,9 @@ def get_affine(volume):
303303workflow .base_dir = os .path .abspath ('camino_dti_tutorial' )
304304workflow .connect ([(infosource , datasource , [('subject_id' , 'subject_id' )]),
305305 (datasource , tractography , [('dwi' , 'inputnode.dwi' ),
306- ('bvals' , 'inputnode.bvals' ),
307- ('bvecs' , 'inputnode.bvecs' )
308- ])
306+ ('bvals' , 'inputnode.bvals' ),
307+ ('bvecs' , 'inputnode.bvecs' )
308+ ])
309309 ])
310310"""
311311The following functions run the whole workflow and produce a .dot and .png graph of the processing pipeline.
0 commit comments