AFNI version info (afni -ver
):
Personal Laptop)
Precompiled binary macos_13_ARM_clang: May 22 2024 (Version AFNI_24.1.10 'Publius Septimius Geta')
Server)
Precompiled binary linux_ubuntu_16_64: Oct 31 2024 (Version AFNI_24.3.06 'Elagabalus')
afni_proc.py -subj_id sub-100307 -script proc.sub-100307 -scr_overwrite \
-out_dir \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/../derivatives/FS/sub-100307/afniproc_output \
-dsets \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/func/sub-100307_task-REST_acq-LR_run-01_bold.nii.gz \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/func/sub-100307_task-REST_acq-LR_run-02_bold.nii.gz \
-copy_anat \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/anat/sub-100307_run-01_T1w.nii.gz \
-anat_has_skull yes -anat_follower anat_w_skull anat \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/anat/sub-100307_run-01_T1w.nii.gz \
-tcat_remove_first_trs 4 -blocks tshift align volreg mask surf scale \
regress -align_opts_aea -cost lpc+ZZ -giant_move -cmass cmass \
-check_flip -volreg_align_to first -volreg_align_e2a -mask_epi_anat yes \
-mask_segment_anat yes -mask_segment_erode yes -surf_anat \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/../derivatives/FS/sub-100307/surf/SUMA/sub-100307_SurfVol.nii \
-surf_spec \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/../derivatives/FS/sub-100307/surf/SUMA/sub-100307_lh.spec \
/Volumes/scratch/usr_name/HCP/HCP_bids/sub-100307/../derivatives/FS/sub-100307/surf/SUMA/sub-100307_rh.spec \
-regress_censor_motion 0.4 -regress_censor_outliers 0.05 \
-regress_bandpass 0.01 0.1 -regress_ROI WMe CSFe \
-regress_apply_mot_types demean deriv -regress_motion_per_run \
-regress_opts_3dD -jobs 8 -execute
error massage
-- applying input view as +orig
** warning: removing first 4 TRs from beginning of each run
--> the stimulus timing files must reflect the removal of these TRs
** error: spec files MUST contain lh or rh, and otherwise
match (consider making copies, like SUBJ.stdmesh.lh.spec)
** invalid block : surf
The script works well in my personal laptop (Mac), but does not work at my server computer (Linux).
Since my input was sub-100307_?h.spec, I think script might misunderstand as my command did not have rh or lh. I tested it after changing my spec file name like rh_sub-100307_rh.spec and rh_sub-100307_lh.spec and changing command like rh_sub-100307_?h.spec. Then, it did work!!! I can easily recall some indirect way to solve this error, but I just want to report it
Other questions on surface-based afni_proc.py:
- Is it okay to include mask between volreg and surface? Many example on the web don't have mask block, but I would like to regress out WM and CSF. So, I did like that, but I am not sure it's okay.
- Does afni_proc.py save the regressor vector(?) in the output folder or somewhere?