Hi Martin,

I came across a problem when shrinking longitudinal qdec tables with 345 subject in two time points, into cross sectional form. The error states as follows:

------------------------------------------
[jiyang@abc qdec]$ long_qdec_table --qdec ./long.qdec.table.dat --cross --out ./cross.qdec.table.test.dat
Parsing the qdec table: ./long.qdec.table.dat
Traceback (most recent call last):
  File "/usr/local/software/freesurfer/freesurfer-5.1.0/bin/long_qdec_table", line 142, in <module>
    longqdec = LongQdecTable(options.qdec)
  File "/usr/local/software/freesurfer/freesurfer-5.1.0/bin/LongQdecTable.py", line 30, in __init__
    self.parse(stpmap)
  File "/usr/local/software/freesurfer/freesurfer-5.1.0/bin/LongQdecTable.py", line 58, in parse
    if strlst[0].upper() == 'SUBJECTS_DIR':
IndexError: list index out of range
----------------------------------------------

I found Derin posted the same question on 20 Apr 2012, but it seems no following answers after.

This error disappeared after deconstructing longitudinal qdec table.

Any suggestion or clue will be appreciated. Thanks!

Jiyang