AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
JW
June 29, 2018 04:23PM
Hi AFNI experts,


#!/bin/tcsh

foreach subj (`ls -d /Volumes/JW/AES2016/data/AES* | sed 's/\// /g' | awk '{print $5}'`)

foreach cond (Ex Rest)

echo "subj = " ${subj} ", cond = " ${cond}

cd /Volumes/JW/AES2016/data/AES101/${subj}.${cond}

afni_proc.py \
-blocks despike tlrc align volreg mask regress \
-copy_anat /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/fs_output/mri/SUMA/${subj}.${cond}_SurfVol.nii \
-anat_has_skull no \
-anat_follower_ROI aaseg anat /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/fs_output/mri/SUMA/aparc.a2009s+aseg.nii \
-anat_follower_ROI aeseg epi /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/fs_output/mri/SUMA/aparc.a2009s+aseg.nii \
-anat_follower_ROI FSvent epi /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/fs_output/mri/SUMA/${subj}.${cond}_vent.nii \
-anat_follower_ROI FSwm epi /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/fs_output/mri/SUMA/${subj}.${cond}_wm.nii \
-anat_follower_erode FSvent FSwm \
-dsets /Volumes/JW/AES2016/data/${subj}/${subj}.${cond}/resting/epi.resting_t.slicemocoxy_afni.slomoco+orig \
-align_opts_aea -cost lpc+ZZ \
-tlrc_base MNI152_T1_2009c+tlrc \
-tlrc_NL_warp \
-tlrc_NL_awpy_rm no \
-volreg_align_to MIN_OUTLIER \
-volreg_align_e2a \
-volreg_tlrc_warp \
-regress_motion_per_run \
-volreg_warp_dxyz 2.0 \
-regress_apply_mask \
-regress_ROI_PC FSvent 3 \
-regress_make_corr_vols aeseg FSvent \
-regress_anaticor_fast \
-regress_anaticor_label FSwm \
-regress_censor_motion 0.2 \
-regress_censor_outliers 0.1 \
-regress_apply_mot_types demean deriv \
-regress_est_blur_epits \
-regress_est_blur_errts \


tcsh -xef proc.SUBJ |& tee output.proc.SUBJ

@ linenum++
end
end


I was running the above resting-state proc script and got an error message below.



Warping used up maximum iterations
even after doubling number of iterations to 274.
Convergence might not have been reached.

If you find the alignment poor, try
rerunning the script with a transform
type of fewer parameters (-xform) or by using
an even higher number of iterations (-maxite).
You can also choose to continue with the
current result (dset: __ats_tmp__reg_warpdriveout+orig
by using the option: -OK_maxite

Script will stop ...

#**ERROR Failed in affine step
** ERROR - script failed
3dbucket: No match.



I wasn't sure what is the issue here. Is it simply be solved by adding -OK_maxite to the script?


Thank you in advance for your help,
Jun
Subject Author Posted

Resting State proc.py

JW June 29, 2018 04:23PM

Re: Resting State proc.py

dowdlelt June 29, 2018 07:44PM

Re: Resting State proc.py

JW June 30, 2018 12:12PM

Re: Resting State proc.py

dowdlelt June 30, 2018 12:47PM

Re: Resting State proc.py

JW June 30, 2018 02:37PM