You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FSL <6.0 outputs have .nii.gz_variance.nii.gz as extension
There it seems that this is a behavior for older FSL versions below 6.0.0. Is anyone else getting this in newer versions as well? Should this version switch be adapted to include newer versions as well?
Summary
The mcflirt node crashes when .inputs.stats_imgs = True
when using FSL 6.0.5.1:57b01774 because
it expects the output filename to be: BASEFILENAME_variance.nii.gz
but FSL outputs: BASEFILENAME.nii.gz_variance.nii.gz
There is a switch here that seems to fix this:
nipype/nipype/interfaces/fsl/preprocess.py
Line 914 in 450be34
There it seems that this is a behavior for older FSL versions below 6.0.0. Is anyone else getting this in newer versions as well? Should this version switch be adapted to include newer versions as well?
Actual behavior
FSL 6.0.5.1:57b01774 outputs: BASEFILENAME.nii.gz_variance.nii.gz
Nipype expects BASEFILENAME_variance.nii.gz
Expected behavior
Nipype should expect: BASEFILENAME.nii.gz_variance.nii.gz
How to replicate the behavior
mcflirt_run1 = fsl.MCFLIRT()
mcflirt_run1.inputs.ref_vol = 0
mcflirt_run1.inputs.save_mats = True
mcflirt_run1.inputs.save_plots = True
#error when stats_img = True -> works with False because image is not expected
mcflirt_run1.inputs.stats_imgs = True
mcflirt_run1.inputs.in_file = 'bold.nii.gz'
mcflirt_run1.inputs.out_file = 'mcflirt_bold.nii.gz'
mcflirt_run1.run()
Script/Workflow details
Please put URL to code or code here (if not too long).
Platform details:
The text was updated successfully, but these errors were encountered: