History of AFNI updates  

|
Jim Bjork
May 10, 2004 03:43PM
Hello,

I used Excel spreadsheet logical operations to create a columnar matrix (let's call it "behavior.txt". In this matrix, the first column is not to be considered, but each subsequent column is an event class, where a "1" indicates an event occurred in the experiment as one travels thru the time series down the column. I would like to model these behavioral data.

Example here:

F 0 0 0 0 0 0 0 0
F 0 0 0 0 0 0 0 0
F 0 0 0 0 0 0 0 0
a 0 0 0 0 0 0 0 0
a 0 0 0 0 0 0 0 0
a 0 0 0 0 0 0 0 0
+D 0 0 0 0 0 0 0 0
+D 0 0 0 0 0 0 0 0
+D 0 0 0 0 1 0 0 0
c 0 0 0 0 0 0 0 0
c 0 0 0 0 0 0 0 0
c 0 0 0 0 0 0 0 0
j 0 0 0 0 0 0 0 0
j 0 0 0 0 0 0 0 0
j 0 0 0 0 0 0 0 0
+I 0 0 0 0 0 0 0 0
+I 0 0 0 0 0 0 0 0
+I 0 0 1 0 0 0 0 0
+H 0 0 0 0 0 0 0 0
+H 0 0 0 0 0 0 0 0
+H 0 0 0 0 0 0 0 0
+D 0 0 0 0 0 0 0 0
+D 0 0 0 0 0 0 0 0
+D 0 0 0 0 1 0 0 0
etc...


however, when I tried to set up a script to read the columns [1]-[7] in to waver, (since [0] is the character column from which the subsequent columns had been calculated)as follows:


waver -GAM -dt 2.0 -input 'behavior.txt[1]' > hits
waver -GAM -dt 2.0 -input 'behavior.txt[2]' > misses

iI get illegal input errors, even after I rename the file to a .1D file, and whether I used single quotes, double quotes or no quotes.

The waver -help tells me I could specify columns. Is the fact that the first column (column [0] in this file) is text screwing things up? I would really hate to go in and edit out the first column of all 540 points in the time series for several dozen subjects! How can I get waver to read down each of columns [1] thru [7] to get me the idealized time series I need?

Jim
Subject Author Posted

column-specific inputs for waver

Jim Bjork May 10, 2004 03:43PM

Re: column-specific inputs for waver

Gang Chen May 11, 2004 10:45AM

Re: column-specific inputs for waver

Robert Cox May 11, 2004 11:21AM