I am having issues using mapnode for gunzip which creates the same names for all the files for my different functional runs.
tsnr = MapNode(TSNR(regress_poly=2), name=‘tsnr’, iterfield=[‘in_file’])
gunzip = MapNode(Gunzip(), name=“gunzip”, iterfield=[‘in_file’])
smooth = Node(Smooth(), name=“smooth”)
smooth.iterables = (“fwhm”, [4, 6, 8])
Creating the below connection between gunzip and smooth creates output with same names
( tsnr, gunzip, [ ( ‘detrended_file’ , ‘in_file’ ) ] ),
(gunzip, smooth, [(‘out_file’, ‘in_files’)])
For my 4 functional runs, I get the output file names as sdetrend.nii, sdetrend_c0000.nii and so on, thus losing the functional run information in the names. Is there a better way to do this ?