Dear AFNI Folks,
I've run into some trouble using 3dLME and referencing a separate dataTable file. Perhaps you'd be good enough to point out the error of my ways.
The following command works for me:
#!/bin/bash
3dLME \
-prefix LELMLeftLME \
-model "1+Time" \
-ranEff '~1' \
-dataTable \
Subj Time InputFile \
10124 T00 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[0]' \
10124 T01 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[1]' \
10124 T02 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[2]'
However, for this analysis I have many more subjects and time points, so many so that if the dataTable contents are passed to 3dLME via command line I receive this error:
./LELMLeftModelTable.txt: line 3: /opt/ni_tools/afni/3dLME: Argument list too long
Following the directions in the 3dLME documentation, I created a table called 'table.txt' such that the command cat table.txt returns this:
Subj Time InputFile \
10124 T00 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[0]' \
10124 T01 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[1]' \
10124 T02 '/Volumes/Phillips/COG/AttentionAxis/10124/20060803/Deconvolve/LELMLeftIRESPZScore+tlrc[2]'
I also created script file containing the call to 3dLME:
#!/bin/bash
3dLME \
-prefix LELMLeftLME \
-model "1+Time" \
-ranEff '~1' \
-dataTable table.txt
When I execute the script above from within the directory containing the 'table.txt' file I receive the follow error:
Error in if (len%%wd != 0) errex.AFNI(paste("The content under -dataTable is not rectangular !", :
argument is of length zero
Calls: process.LME.opts
Execution halted
Bizarrely, if the -dataTable flag references a file that does not exist, I receive the same error:
#!/bin/bash
3dLME \
-prefix LELMLeftLME \
-model "1+Time" \
-ranEff '~1' \
-dataTable nonexistent_table.txt
returns
Error in if (len%%wd != 0) errex.AFNI(paste("The content under -dataTable is not rectangular !", :
argument is of length zero
Calls: process.LME.opts
Execution halted
This leads me to think that there is some very simple problem with the way that I am formatting the call to 3dLME. Any suggestions would be much appreciated.
Also, because it may be relevant, afni -ver returns:
afni -ver
Precompiled binary macosx_10.7_Intel_64: Feb 27 2015 (Version AFNI_2011_12_21_1014)
Cheers!
David