processing-scripts > typo in 5_nuisance.sh
Showing 1-3 of 3 posts
Display:
Results per page:
Aug 2, 2010  05:08 PM | Alok Deshpande
typo in 5_nuisance.sh
it gives error for 3dcalc.

## 8. Demeaning residuals and ADDING 100
3dTstat -mean -prefix ${nuisance_dir}/stats/res4d_mean.nii ${nuisance_dir}/stats/res4d.nii.gz
3dcalc -a ${nuisance_dir}/stats/res4d.nii.gz -b ${nuisance_dir}/stats/res4d_mean.nii.gz -expr '(a-b)+100' -prefix ${func_dir}/${rest}_res.nii.gz

instead of res4d_mean.nii, it should be res4d_mean.nii.gz when calling 3dTstat.
Aug 2, 2010  06:08 PM | Maarten Mennes
RE: typo in 5_nuisance.sh
Hi Alok,

Sorry you ran into that problem. Are you using version 1.1b of the scripts, since this bug was fixed in version 1.1.?

You can also bypass it by setting the AFNI environment variable AFNI_COMPRESSOR = GZIP in your .afnirc file. Having this variable set will automatically gzip .nii files, even if you only specify .nii as the extension.

Best,
Maarten
Aug 3, 2010  05:08 PM | Alok Deshpande
RE: typo in 5_nuisance.sh
Thanks Maarten! Thats helpful.

-Alok