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  

|
January 22, 2015 04:20PM
Hi all-

I've been wrestling with this code for quite awhile, to no avail, and need a clear head. I'm frustrated, because it's such a simple thing that I *know* (think, hope...) has worked in dozens of previous scripts.

This does not work:

3droistats -mask mymask+tlrc `cat 3droistats_dset_list` > roistats_output.txt

It returns:
Warning: Cannot open input dataset "stats.4028+tlrc[16]"\
Warning: Cannot open input dataset "stats.4074+tlrc[16]"\
Warning: Cannot open input dataset "stats.4092+tlrc[16]"\
Warning: Cannot open input dataset "stats.4114+tlrc[16]"\
Warning: Cannot open input dataset "stats.4135+tlrc[16]"\
Warning: Cannot open input dataset "stats.4138+tlrc[16]"\
Warning: Cannot open input dataset "stats.4159+tlrc[16]"\
Warning: Cannot open input dataset "stats.5020+tlrc[16]"\
Warning: Cannot open input dataset "stats.5024+tlrc[16]"\
Warning: Cannot open input dataset "stats.5062+tlrc[16]"\
Warning: Cannot open input dataset "stats.5085+tlrc[16]"\

However, if I copy/paste the list into the command, I have no problem. Like so:

3droistats -mask mymask+tlrc "stats.4028+tlrc[16]"\
"stats.4074+tlrc[16]"\
"stats.4092+tlrc[16]"\
"stats.4114+tlrc[16]"\
"stats.4135+tlrc[16]"\
"stats.4138+tlrc[16]"\
"stats.4159+tlrc[16]"\
"stats.5020+tlrc[16]"\
"stats.5024+tlrc[16]"\
"stats.5062+tlrc[16]"\
"stats.5085+tlrc[16]"\
 > roistats_output2.txt

It returns expected output to roistats_output2.txt.

I've tried a variety of things, including single quotes, double quotes, bucketing with 3dbucket first (the same input problem occurs with 3dbucket), putting the dataset names into a variable...with no luck.

Pasting the list into my code is not an option; I need to loop through several lists.

Any suggestions?

Gratefully,
Josh

---------------------------------
Josh Powell
Research Associate
Center for Health Behavior Neuroscience
University of Kansas Medical Center

jpowell <two> <at> kumc <dot> edu
Subject Author Posted

tcsh syntax help - cat list of datasets

JoshPowell January 22, 2015 04:20PM

Re: tcsh syntax help - cat list of datasets

rick reynolds January 22, 2015 04:37PM

Re: tcsh syntax help - cat list of datasets

JoshPowell January 22, 2015 05:06PM