History of AFNI updates  

|
March 16, 2023 03:18PM
If you want to save all of those files, just rename them in the loop. Move them to the
${global_path}5.1st_level_analysis/sub-0${i}/func/GLM_INPUT
directory, which is already being referenced for the subject in the loop.

The reason they are being overwritten is presumably because they are written to your current directory. So do something like:

for ((i=1;i<10;i++)); do
for ((j=1; j<6; j++)); do

   3dBlurToFWHM -input ${global_path}2.derivatives/sub-0${i}/func/sub-0${i}_task-stress_run-${j}_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz \
      -prefix ${global_path}5.1st_level_analysis/sub-0${i}/func/GLM_INPUT/sub-0${i}_task-stress_run-${j}_space-MNI152NLin6Asym_res-2_desc-preproc_bold_blur.nii.gz \
      -mask ${global_path}2.derivatives/sub-0${i}/func/sub-0${i}_task-stress_run-${j}_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz \
      -FWHM 6 -detrend

   mv 3dFWHMx.1D ${global_path}5.1st_level_analysis/sub-0${i}/func/GLM_INPUT

done
done

Does that seem reasonable?

- rick
Subject Author Posted

ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

Galit December 11, 2018 12:45AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

rick reynolds December 11, 2018 10:59AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

Galit December 12, 2018 10:01AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

rick reynolds December 12, 2018 11:33AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ruben.nechifor March 14, 2023 01:58PM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ptaylor March 14, 2023 03:35PM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ruben.nechifor March 14, 2023 11:53PM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ptaylor March 15, 2023 07:14AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ruben.nechifor March 16, 2023 07:09AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

rick reynolds March 16, 2023 03:18PM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

ruben.nechifor March 17, 2023 07:39AM

Re: ERROR: (FAILED) attempt to over-write file 3dFWHMx.1D

rick reynolds March 17, 2023 09:27AM