Open JoyceWoo97 opened 5 years ago
nipype.interfaces.fsl.epi.TOPUP error
The nodes in workflow should connect to TOPUP
Please put URL to code or code here (if not too long).
Can you provide the full script?
Summary
nipype.interfaces.fsl.epi.TOPUP error
Actual behavior
The nodes in workflow should connect to TOPUP
Expected behavior
How to replicate the behavior
Script/Workflow details
Please put URL to code or code here (if not too long).
Platform details:
prepreprocflow = Workflow(name='prepreprocflow') prepreprocflow.connect([(infosource,select_pes, [('subject_id','subject_id')]), (infosource,select_func, [('subject_id','subject_id')]), (select_pes,trim_PEs, [('pes','in_file')]), (trim_PEs,sort_pe_list, [('roi_file','pes')]), (sort_pe_list,topup, [('in_file','in_file')]), (topup, apply_topup, [('out_fieldcoef','in_topup_fieldcoef'), ('out_movpar','in_topup_movpar')]), (select_func, apply_topup, [('func','in_files')]), (apply_topup, datasink, [('out_corrected','unwarped_funcs')]) ]) prepreprocflow.base_dir = workflow_dir prepreprocflow.write_graph(graph2use='flat') prepreprocflow.run('MultiProc', plugin_args={'n_procs': proc_cores, 'memory_gb':20}) ``` 190625-14:25:08,994 nipype.workflow INFO: Generated workflow graph: /Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/graph.png (graph2use=flat, simple_form=True). 190625-14:25:09,23 nipype.workflow INFO: Workflow prepreprocflow settings: ['check', 'execution', 'logging', 'monitoring'] 190625-14:25:09,92 nipype.workflow INFO: Running in parallel. 190625-14:25:09,124 nipype.workflow INFO: [MultiProc] Running 0 tasks, and 2 jobs ready. Free memory (GB): 20.00/20.00, Free processors: 4/4. 190625-14:25:09,297 nipype.workflow INFO: [Node] Setting-up "prepreprocflow.select_pes" in "/private/var/folders/bp/8cgkghx93b5gth_xyw10zjw40000gn/T/tmppBKg6y/select_pes". 190625-14:25:09,263 nipype.workflow INFO: [Node] Setting-up "prepreprocflow.select_func" in "/private/var/folders/bp/8cgkghx93b5gth_xyw10zjw40000gn/T/tmpznyulQ/select_func". 190625-14:25:09,340 nipype.workflow INFO: [Node] Running "select_func" ("nipype.interfaces.io.SelectFiles") 190625-14:25:09,341 nipype.workflow INFO: [Node] Running "select_pes" ("nipype.interfaces.io.SelectFiles") 190625-14:25:09,367 nipype.workflow INFO: [Node] Finished "prepreprocflow.select_func". 190625-14:25:09,372 nipype.workflow INFO: [Node] Finished "prepreprocflow.select_pes". 190625-14:25:11,125 nipype.workflow INFO: [Job 0] Completed (prepreprocflow.select_func). 190625-14:25:11,140 nipype.workflow INFO: [Job 1] Completed (prepreprocflow.select_pes). 190625-14:25:11,145 nipype.workflow INFO: [MultiProc] Running 0 tasks, and 1 jobs ready. Free memory (GB): 20.00/20.00, Free processors: 4/4. 190625-14:25:11,356 nipype.workflow INFO: [Job 2] Cached (prepreprocflow.trim_PEs). 190625-14:25:13,209 nipype.workflow INFO: [Node] Outdated cache found for "prepreprocflow.sort_pe_list". 190625-14:25:13,220 nipype.workflow INFO: [Node] Setting-up "prepreprocflow.sort_pe_list" in "/Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list". 190625-14:25:13,229 nipype.workflow INFO: [Node] Outdated cache found for "prepreprocflow.sort_pe_list". 190625-14:25:13,251 nipype.workflow INFO: [Node] Running "sort_pe_list" ("nipype.interfaces.utility.wrappers.Function") [u'/Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/trim_PEs/mapflow/_trim_PEs0/Humphreys_137502.09.01.21-53-52.WIP_rsEPI-Fsp_180mm_MB3R1_HS0.8.01_roi.nii.gz'] 190625-14:25:13,277 nipype.workflow DEBUG: Needed files: /Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/_0x5073159788c38fb8342daa4a0fc7f8de_unfinished.json;/Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/_inputs.pklz;/Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/_node.pklz 190625-14:25:13,280 nipype.workflow DEBUG: Needed dirs: /Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/_report 190625-14:25:13,288 nipype.workflow DEBUG: Removing files: 190625-14:25:13,303 nipype.workflow DEBUG: saved results in /Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/result_sort_pe_list.pklz 190625-14:25:13,307 nipype.workflow DEBUG: [Node] Writing post-exec report to "/Users/joyce/Desktop/SUMMER_2019_HUMPHREYS/1058/workflows/prepreprocflow/_subject_id_1058/sort_pe_list/_report/report.rst" 190625-14:25:13,319 nipype.workflow DEBUG: Aggregate: False 190625-14:25:13,336 nipype.workflow INFO: [Node] Finished "prepreprocflow.sort_pe_list". 190625-14:25:15,123 nipype.workflow INFO: [Job 3] Completed (prepreprocflow.sort_pe_list). 190625-14:25:15,131 nipype.workflow INFO: [MultiProc] Running 0 tasks, and 1 jobs ready. Free memory (GB): 20.00/20.00, Free processors: 4/4. 190625-14:25:15,213 nipype.workflow WARNING: Error while checking node hash, forcing re-run. Although this error may not prevent the workflow from running, it could indicate a major problem. Please report a new issue at https://github.com/nipy/nipype/issues adding the following information: Node: prepreprocflow.topup Interface: nipype.interfaces.fsl.epi.TOPUP Traceback: Traceback (most recent call last): File "/anaconda2/lib/python2.7/site-packages/nipype/pipeline/plugins/base.py", line 338, in _local_hash_check cached, updated = self.procs[jobid].is_cached() File "/anaconda2/lib/python2.7/site-packages/nipype/pipeline/engine/nodes.py", line 296, in is_cached hashed_inputs, hashvalue = self._get_hashval() File "/anaconda2/lib/python2.7/site-packages/nipype/pipeline/engine/nodes.py", line 493, in _get_hashval self._get_inputs() File "/anaconda2/lib/python2.7/site-packages/nipype/pipeline/engine/nodes.py", line 540, in _get_inputs self.set_input(key, deepcopy(output_value)) File "/anaconda2/lib/python2.7/site-packages/nipype/pipeline/engine/nodes.py", line 278, in set_input setattr(self.inputs, parameter, deepcopy(val)) File "/anaconda2/lib/python2.7/site-packages/nipype/interfaces/base/traits_extension.py", line 103, in validate validated_value = super(File, self).validate(object, name, value) File "/anaconda2/lib/python2.7/site-packages/traits/trait_types.py", line 491, in validate self.error(object, name, value) File "/anaconda2/lib/python2.7/site-packages/traits/trait_handlers.py", line 236, in error object, name, self.full_info(object, name, value), value TraitError: The 'in_file' trait of a TOPUPInputSpec instance must be an existing file name, but a value of []