Hi experts, happy new year!
I want to run melodic ICA with CIFTI files. However, an error happened at the beginning of this analysis. The filename added the extension ‘.nii’ automatically, which means the filename became ‘xx.gii.nii’. As a result, the CIFTI data can’t be read. Did I use a wrong command? Or the input filetype should not be ‘.gii’?
Thank you very much!!!
Cross-posted to the FSL mailing list. melodic can work with CIfTI time series (.dtseries.nii), but it looks like the problem here is that the input files are GIfTI files (.func.gii).
Thanks for your reply!!!
Yes, you are right!
I 've been told that the input file type should be .dtseries.nii. Then I converted my GIFTI files to CIFTI through wb_command, which combines the left and right hemisphere. However, another error happened and the process stopped after MIGP.
error:
error: sort (): given object has non-finite elements
terminate called after throwing an instance of 'std::logic_error'
what () : sort () : given object has non-finite elements
melodic.sh: line 1: 52199 Aborted
(core dumped) melodic -i input_files.txt -o groupICA15 --CIFTI --nobet --nomask -a concat --report --Oall -d 15
the log ended at:
......
Removing mean image ... done
Removing mean image ... done
Reducing data matrix to a 2399 dimensional subspace
Removing mean image ... done
Removing mean image ... done
Reducing data matrix to a 2399 dimensional subspace
Normalising by voxel-wise variance ... done
Data size : 2399 x 64984
Hello, everyone!
I’ve just solved the problem above. The error happened because the vertex values of some time points are all NaN or 0, which came from interpolation during scrubbing. After deleting these time points,the process of ICA worked correctly.
However, there is still one more issue left. The output file type of CIFTI ICA is still .nii, not .dscalar.nii. How should I change the output file type?
Thank you very much!!!
Hi @Shulk, it appears that the --report option cannot be used when you are processing CIfTI files (JISCMail - FSL Archives). And melodic is also badly behaved in that it saves the outputs as .nii rather than (e.g.) .dscalar.nii, so you may need to rename the output files before they can be opened with Connectome workbench viewer.
I’m afraid that support for CIfTI files in FSL is very limited, so you are probably better off using workbench or the HCP pipeline scripts wherever possible.