I’m new to nipype and need some support for using MapNodes. I’d like to smooth a collection of files in parallel and thought a MapNode with a list of filenames for input image and smoothed image could be what I need for this. The MapNode is configured like this:
from nipype.interfaces.fsl import Smooth
smooth_node = MapNode(Smooth(), name=‘smooth’, iterfield=[‘in_file’, ‘smoothed_file’])
smooth_node.inputs.in_file=files_in[0:2]
smooth_node.inputs.output_type = ‘NIFTI_GZ’
smooth_node.inputs.fwhm=6
smooth_node.inputs.smoothed_file=files_out[0:2]
Can I add some option to indicate that processing should be done in parallel? Or do I have to setup a Workflow for this?
nipype.version: ‘1.8.5’
Kind regards,
Christina Rossmanith