I quickly looked for it before posting, but could not find such posts. Let me know if they exist.
Executable commands seem very simple. The directory listing is used as input to the function.
The directory contains a bunch of files named "epi1_mcf_0 ###. Nii.gz"
Command line version (bash is executed when it is executed):
fslmerge -t output_file `ls epi1_mcf_0*.nii.gz`
Shell version of the script:
#!/bin/bash
fslmerge -t output_file `ls epi1_mcf_0*.nii.gz`
A command line error, but the shell script works fine.
The error message refers to the function, but it is enabled in any case.
** ERROR (nifti_image_read): failed to find header file for 'epi1_mcf_0000.nii.gz'
** ERROR: nifti_image_open(epi1_mcf_0000.nii.gz): bad header info
Error: failed to open file epi1_mcf_0000.nii.gz
Cannot open volume epi1_mcf_0000.nii.gz for reading!
I was very upset by this problem (moreover, after I realized that there is a way to make the team work).
Any help would be appreciated.
(Or is there a general consensus that the problem needs to be looked for in the "fslmerge" function?)