3dDeconvolve AM2 - error reading input stimulus file

Hi

please could you help me - I am try to run 3dDeconvolve (command pasted below) with -stim_times_AM2 option but getting an error reading the stimuli file (see below). I have copied the contents of the stimulus file at the end. I also tried using file_tool seeing what Rick said to someone else in another thread but didnt shed any light (pasted output below).

Thanks for any advice

Sincerely

Prerona

** ERROR: mri_read_ascii_ragged_fvect: couldn’t open file stimuli/CG1362_choiceT1_sam8apr21
** FATAL ERROR: ‘-stim_times_AM2 1’ can’t read file ‘stimuli/CG1362_choiceT1_sam8apr21’ [nopt=17]
** Program compile date = Oct 16 2019

MY 3dDeconvolve COMMAND is:

run the regression analysis

3dDeconvolve -input pb04.$subj.r*.scale+tlrc.HEAD
-censor censor_${subj}_combined_2.1D
-polort 3
-global_times
-num_stimts 13
-jobs 3
-stim_times_AM2 1 stimuli/${subj}_choiceT1_sam8apr21 ‘BLOCK(8,1)’
-stim_label 1 Choice
-stim_file 2 motion_demean.1D’[0]’ -stim_base 2 -stim_label 2 roll_01
-stim_file 3 motion_demean.1D’[1]’ -stim_base 3 -stim_label 3 pitch_01
-stim_file 4 motion_demean.1D’[2]’ -stim_base 4 -stim_label 4 yaw_01
-stim_file 5 motion_demean.1D’[3]’ -stim_base 5 -stim_label 5 dS_01
-stim_file 6 motion_demean.1D’[4]’ -stim_base 6 -stim_label 6 dL_01
-stim_file 7 motion_demean.1D’[5]’ -stim_base 7 -stim_label 7 dP_01
-stim_file 8 motion_deriv.1D’[0]’ -stim_base 8 -stim_label 8 roll_02
-stim_file 9 motion_deriv.1D’[1]’ -stim_base 9 -stim_label 9 pitch_02
-stim_file 10 motion_deriv.1D’[2]’ -stim_base 10 -stim_label 10 yaw_02
-stim_file 11 motion_deriv.1D’[3]’ -stim_base 11 -stim_label 11 dS_02
-stim_file 12 motion_deriv.1D’[4]’ -stim_base 12 -stim_label 12 dL_02
-stim_file 13 motion_deriv.1D’[5]’ -stim_base 13 -stim_label 13 dP_02
-x1D_uncensored X.nocensor.xmat.1D
-censorTR $IvDcensors
-fout -tout -x1D X.xmat.1D -xjpeg X.jpg
-errts errts.${subj}
-bucket stats.$subj

stimuli/CG1362_choiceT1_sam8apr21
41,-1 181,-1 321,1 481,1 62*-1,-1 74*-1,-1 881,-1 1021,-1 116*-1,-1 1281,-1 1441,1 156*-1,-1 172*-1,1 1861,-1 1981,-1 212*-1,-1 2281,1 244-1,-1 260*-1,1 276*-1,-1 2901,-1 306-1,-1 318*-1,1 3301,-1 3421,-1 358*-1,-1 374*-1,-1 390*-1,-1 4041,-1 4161,1 4301,-1 444-1,1 4561,-1 470-1,1 4841,-1 4981,-1 516*-1,-1 5281,-1 5401,-1 5521,-1 566-1,-1 582*-1,-1 5961,-1 6121,-1 626*-1,1 642*-1,-1 6561,-1 6701,-1 682*-1,1 696*-1,-1 710*-1,-1 7261,-1 7401,-1 752*-1,-1 772*-1,-1 7881,1 800-1,-1 8121,-1 8281,-1 842*-1,-1 856*-1,-1 8681,-1 8801,-1 8941,-1 9081,1 9201,-1 934-1,-1 948*-1,-1 964*-1,-1 978*-1,-1 9921,-1 10081,-1

/regression_only$ file_tool -test -infile …/…/CurrResults/SubjectsFolders/SUBJECT_FOLDERS_APR_2021/CG1362.results/stimuli/CG1362_choiceT1_sam8apr21.txt
stimuli/CG1362_choiceT1_sam8apr21.txt has 0 bad characters
stimuli/CG1362_choiceT1_sam8apr21.txt file type: UNIX

Hi Prerona,

This looks fine to me, except that the file_tool command has the input with a .txt extension, which is not present in the 3dDeconvolve command.
Does that seem to be the problem?

  • rick

That did fix the problem! I am so sorry - I didn’t spot that :frowning:

No biggie, some time extra eyes help…

  • rick