Hi Rick this is the script.
#!/bin/tcsh
foreach subj (4310)
fixMacfile.sh ${subj}.txt
3dDeconvolve -input ${subj}_r1_psc+orig ${subj}_r2_psc+orig ${subj}_r3_psc+orig ${subj}_r4_psc+orig ${subj}_r5_psc+orig \
-nobout \
-bucket ${subj}_statsMotion_irf \
-cbucket ${subj}_coeff_fittsMotion_irf \
-full_first \
-xsave \
-polort 2 \
-fitts ${subj}_fittsMotion_irf \
-legendre \
-num_stimts 10 \
-stim_file 1 ${subj}.txt'[0]' -stim_label 1 pi \
-stim_minlag 1 0 -stim_maxlag 1 9 \
-stim_file 2 ${subj}.txt'[1]' -stim_label 2 pt \
-stim_minlag 2 0 -stim_maxlag 2 9 \
-stim_file 3 ${subj}.txt'[2]' -stim_label 3 ni \
-stim_minlag 3 0 -stim_maxlag 3 9 \
-stim_file 4 ${subj}.txt'[3]' -stim_label 4 nt \
-stim_minlag 4 0 -stim_maxlag 4 9 \
-stim_file 5 ${subj}_all_motion.1D'[0]' -stim_base 5 \
-stim_file 6 ${subj}_all_motion.1D'[1]' -stim_base 6 \
-stim_file 7 ${subj}_all_motion.1D'[2]' -stim_base 7 \
-stim_file 8 ${subj}_all_motion.1D'[3]' -stim_base 8 \
-stim_file 9 ${subj}_all_motion.1D'[4]' -stim_base 9 \
-stim_file 10 ${subj}_all_motion.1D'[5]' -stim_base 10 \
-tout \
-num_glt 8 \
-gltsym 'SYM: pt[1-3] -pi[1-3]' -glt_label 1 pt-pi \
-gltsym 'SYM: nt[1-3] -ni[1-3]' -glt_label 2 nt-ni \
-gltsym 'SYM: nt[1-3] -pt[1-3]' -glt_label 3 nt-pt \
-gltsym 'SYM: ni[1-3] -pi[1-3]' -glt_label 4 ni-pi \
-gltsym 'SYM: pt[1-3]' -glt_label 5 pt \
-gltsym 'SYM: nt[1-3]' -glt_label 6 nt \
-gltsym 'SYM: pi[1-3]' -glt_label 7 pi \
-gltsym 'SYM: ni[1-3]' -glt_label 8 ni \
-iresp 1 ${subj}_pi_irf -iresp 2 ${subj}_pt_irf -iresp 3 ${subj} _ni_irf -iresp 4 ${subj}_nt_irf \
-sresp 1 ${subj}_pi_std -sresp 2 ${subj}_pt_std -sresp 3 ${subj}_ni_std -sresp 4 ${subj}_nt_std