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  

|
September 29, 2014 01:28PM
Hello AFNI experts!

This is the error I am getting that crashes my script. (See script is below error message).

Warning:
Because of the error in older versions of TT_avg152 template, this script
requires that you use the flag -ok_notice to proceed.
Before proceeding, DO check the error message at:
[afni.nimh.nih.gov]
To produce results using the old version of the template,
use template MNI_avg152T1+tlrc .

if ( ! -f sub16.IRCPTSD.spgr_strip+tlrc.HEAD ) then
echo ** missing +tlrc warp dataset: sub16.IRCPTSD.spgr_strip+tlrc.HEAD
** missing +tlrc warp dataset: sub16.IRCPTSD.spgr_strip+tlrc.HEAD
exit


THIS IS A COPY OF THE SCRIPT I AM USING:

#!/bin/tcsh

# ptsd_faces_afni_proc.py.tcsh
#
#
# Created by Lauren Taubitz on 5/2/13.
# Copyright 2013 __LaurenTaubitz!__. All rights reserved.

#This script runs afni_proc.py for the IRC PTSD Study for the FACES conditions ONLY!

#Removes stack size allocation limits to prevent killing this script
#ulimit -s unlimited

#Sets the folder containing the subject data
setenv subfolder /media/larson_buffalo/MRI7/IRC_PTSD/Data

#Creates a variable called "study" and sets its value.
set study = IRCPTSD

#Opens the scripts directory
cd /media/larson_buffalo/MRI7/IRC_PTSD/Scripts

#Sets a variable called "subject" and opens the folder containing this subject's data
foreach subject (sub16)

#THIS IS THE ERROR MESSAGE THAT CRASHES THE SCRIPT AS OF 9/18/19 jh EMILY WILL EMAIL US HER WAY THAT WORKS
#afni_proc.py generates a script that does all single-subject processing through 3dDeconvolve
#FIX SOME OPTIONS- CHECK THE MODEL FOR DECONVOLVE

#Warning:
#Because of the error in older versions of TT_avg152 template, this script
#requires that you use the flag -ok_notice to proceed.
#Before proceeding, DO check the error message at:
#[afni.nimh.nih.gov]
#To produce results using the old version of the template,
#use template MNI_avg152T1+tlrc .

#if ( ! -f sub16.IRCPTSD.spgr_strip+tlrc.HEAD ) then
#echo ** missing +tlrc warp dataset: sub16.IRCPTSD.spgr_strip+tlrc.HEAD
#** missing +tlrc warp dataset: sub16.IRCPTSD.spgr_strip+tlrc.HEAD

afni_proc.py \
-subj_id ${subject} \
-script proc_${subject}.faces \
-out_dir ${subfolder}/${subject}/${subject}.faces.results \
-dsets ${subfolder}/${subject}/${subject}.${study}.faces1+orig.HEAD \
${subfolder}/${subject}/${subject}.${study}.faces2+orig.HEAD \
-do_block align tlrc \
-copy_anat ${subfolder}/${subject}/${subject}.${study}.spgr+orig \
-tcat_remove_first_trs 3 \
-volreg_align_to third \
-volreg_align_e2a \
-volreg_tlrc_warp \
-tlrc_base ${subfolder}/MNI_avg152T1+tlrc \
-ok_notice \
-blur_size 6 \
-regress_stim_times faces_stim_times.01.happy.1D faces_stim_times.02.neutral.1D faces_stim_times.03.fear.1D \
-regress_stim_labels faces_happy faces_neut faces_fear \
-regress_basis 'BLOCK(10,1)' \
-regress_censor_motion 0.3 \
-regress_censor_outliers 0.1 \
-regress_opts_3dD \
-gltsym 'SYM: +faces_happy -faces_neut' -glt_label 1 happy_vs_neut \
-gltsym 'SYM: +faces_fear -faces_neut' -glt_label 2 fear_vs_neut \
-gltsym 'SYM: +faces_happy -faces_fear' -glt_label 3 happy_vs_fear \
-jobs 10 \
-regress_est_blur_epits \
-regress_est_blur_errts

#This runs the script generated by afni_proc.py
tcsh -xef proc_${subject}.faces |& tee output.proc_${subject}.faces

#Ends the foreach subject loop
end



Thanks for your time :)

~Jessica Hanson
Subject Author Posted

Error requiring "-ok_notice" to proceed

lindsle6 September 29, 2014 01:28PM

Re: Error requiring "-ok_notice" to proceed

Peter Molfese September 29, 2014 04:33PM