Hello,
Thanks for the advice. So I decided to run afni_proc.py and add regression steps, rather than do 3dDeconvolve separately. I used the regress_stim_times option and am getting a fatal error. I will paste most of the afni_proc.py script below as well as the fatal error below it. Please let me know what I'm doing wrong. Thanks so much!!!
cd ${EXPDIR}${SUBNUM}
afni_proc.py \
-subj_id $SUBNUM \
-dsets ${EXPDIR}${SUBNUM}/${RUN1DIR}/${SUBNUM}_r1+orig ${EXPDIR}${SUBNUM}/${RUN2DIR}/${SUBNUM}_r2+orig \
-blocks tshift align tlrc volreg blur mask scale regress \
-copy_anat ${EXPDIR}${SUBNUM}/${T1DIR}/t1+orig \
-execute \
-move_preproc_files \
-outlier_count yes \
-tshift_interp -Fourier \
-volreg_align_e2a \
-volreg_tlrc_warp \
-gen_epi_review review_orig_EPI.txt \
-regress_stim_times ${EXPDIR}${SUBNUM}/onset_files/scan1to2NPB.1D \
${EXPDIR}${SUBNUM}/onset_files/scan1to2NPNB.1D \
${EXPDIR}${SUBNUM}/onset_files/scan1to2PB.1D \
${EXPDIR}${SUBNUM}/onset_files/scan1to2PNB.1D \
-regress_stim_types IM IM IM IM \
-regress_stim_labels nopickandbid nopickandnobid pickandbid pickandnobid \
-regress_censor_motion 0.3 \
-regress_censor_outliers 0.1 \
This is the fatal error: ** FATAL ERROR: '-stim_times_IM 1 stimuli/scan1to2NPB.1D' has 1 amplitude modulation parameters - not legal! [nopt=13]
My stim files are in this format:
156.767800:3.785400 198.038800:5.475900 545.896000:3.857900 28.026700:3.782000 508.694400:5.247900
where the first number is the onset and the second number 'married' to it is the duration of the trial.
Thoughts??
Thanks!