use nii instead of hdr/img
split files in smooth, because it cannot handle very large files
fslinfo can be erratic, n_vol based on name
resplit into 3d before running model estimation, otherwise file is too small...
check that recordings directory exists, otherwise it crashes but it's not clear why. Now it's more explicit
GOOD RESULTS using nifti
do realignment in spm BEFORE MELODIC, keep track of this edit
run melodic function. It takes quite some time but it should run. It needs to be tested. If all's well, the function already returns the smoothed realigned images that can be used for the first-level analysis. At the moment, I'm using FSL 5.06 and fix 1.06
use 6 dof instead of BBR, it seems much more instable
replace library when running bash within matlab, otherwise it doesn't find the right libraries
use options to run feat/fix
clean up before merging