I am getting a few error messages when attempting to run a script to contrast activity across conditions. Here is the script I am running:
3dDeconvolve -force_TR 2 -input scaled_allruns+orig -mask retrieval_mask+orig -concat ‘1D: 0 60 120 180 240 300’ \
Here is the error I am getting:
** ERROR: mri_read_ascii_ragged_fvect: couldn’t open file stimtimes_list
** FATAL ERROR: ‘-stim_times 1’ can’t read file ‘stimtimes_list’ [nopt=15]
I’ve checked to ensure that the stimtimes files are properly named, so I am unsure how to proceed. Please advise.
Thank you,
At least we are zeroing in on this. It seems likely that either the name is not quite what it seems to be, or maybe they are not in the directory the script is trying to access them from.
What is the output from these commands (please copy-and-paste to be careful)?
ls -l | grep times
\ls | \grep stimtimes_list | od -xc
v1040-wn-rt-c-79-105:Allruns nikkistuart$ ls -l | grep times
-rwxrwxrwx@ 1 nikkistuart staff 437 11 Jul 12:00 stimtimes_draw.rtf
-rwxrwxrwx@ 1 nikkistuart staff 428 11 Jul 12:09 stimtimes_list.rtf
-rwxrwxrwx@ 1 nikkistuart staff 587 11 Jul 12:11 stimtimes_new.rtf
-rwxrwxrwx@ 1 nikkistuart staff 390 11 Jul 12:10 stimtimes_write.rtf
v1040-wn-rt-c-79-105:Allruns nikkistuart$ \ls | \grep stimtimes_list | od -xc
0000000 7473 6d69 6974 656d 5f73 696c 7473 722e
s t i m t i m e s _ l i s t . r
0000020 6674 000a
t f \n
0000023
Ah, that clarifies things. There are probably 2 issues. One is that the files end in the extension .rtf, which is not included in your 3dDeconvolve command. The other is that rtf (rich text format) will probably not work in any case. That is a format to make text look pretty, but it is not for processing as unix ASCII text.
file ‘stimtimes_list.rtf’: missing final newline
stimtimes_list.rtf has 0 bad characters
stimtimes_list.rtf file type: UNIX
file ‘stimtimes_list.rtf’, line 8 : consider space before ''
file ‘stimtimes_list.rtf’, line 9 : consider space before ''
file ‘stimtimes_list.rtf’, line 10 : consider space before ''
file ‘stimtimes_list.rtf’, line 11 : consider space before ''
file ‘stimtimes_list.rtf’, line 12 : consider space before ''
Well, maybe the file is okay, but those warnings about backslash characters are concerning. I though you had posted a copy of this file, and there was nothing but numbers in it. Are there slashes in the file? Maybe you should re-post it, just to be sure.
If you would like to, mail me the actual file(s), and I will see whether anything seems odd.
But maybe you just need to add the .rtf suffixes, so that 3dDeconvolve knows the full file names.
I haven’t added any backslashes into the files, copy and pasted is one of the files below:
2 17 32 104
0 13 21 30 95
0 10 16 43 103
18 31 83 94 99
11 61 66 84
6 16 26 47
I will also email you an example of one of the files.
Adding .rtf to the file names allowed me to run the script.
Thank you for all your help,
Nicole
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.