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  

|
dfm
May 20, 2015 03:08PM
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
Subject Author Posted

3dLME dataTable problem

dfm May 20, 2015 03:08PM

Re: 3dLME dataTable problem

gang May 20, 2015 06:01PM

Re: 3dLME dataTable problem

dfm May 20, 2015 06:38PM