Hello-
I'm getting a rather nondescript message of "Error loading the data table" when I try to load my qdec.table.dat into the qdec GUI. I've tried using Excel, OpenOffice Calc, OpenOffice Wordprocessor, and Kate to save my table as a tab-delimited text file. Nothing works. Any suggestions on where I can go next to get a table in the proper format for qdec to read?
Actually, scratch that. I had a hunch that I should change my header from "subj" to "fsid" like the wiki guide has, and now the table loads. However, qdec immediately crashes afterwards.
Now my error is "qdec.bin: QdecDataTable.cpp:438: void QdecDataTable::Dump(FILE*): Assertion 'nInputs' failed. Abort."
Is there some sort of limit on number of subjects that I'm running into? I have 179 subjects, and I'm attempting to load a data table that lists out 176 of them. Any suggestions?
Jim Porter Graduate Student Clinical Science & Psychopathology Research University of Minnesota
James N. Porter wrote:
Hello-
I'm getting a rather nondescript message of "Error loading the data table" when I try to load my qdec.table.dat into the qdec GUI. I've tried using Excel, OpenOffice Calc, OpenOffice Wordprocessor, and Kate to save my table as a tab-delimited text file. Nothing works. Any suggestions on where I can go next to get a table in the proper format for qdec to read?
Jim,
Can you send me the file?
Nick
On Tue, 2007-12-04 at 22:10 -0600, James N. Porter wrote:
Actually, scratch that. I had a hunch that I should change my header from "subj" to "fsid" like the wiki guide has, and now the table loads. However, qdec immediately crashes afterwards.
Now my error is "qdec.bin: QdecDataTable.cpp:438: void QdecDataTable::Dump(FILE*): Assertion 'nInputs' failed. Abort."
Is there some sort of limit on number of subjects that I'm running into? I have 179 subjects, and I'm attempting to load a data table that lists out 176 of them. Any suggestions?
Jim Porter Graduate Student Clinical Science & Psychopathology Research University of Minnesota
James N. Porter wrote:
Hello-
I'm getting a rather nondescript message of "Error loading the data table" when I try to load my qdec.table.dat into the qdec GUI. I've tried using Excel, OpenOffice Calc, OpenOffice Wordprocessor, and Kate to save my table as a tab-delimited text file. Nothing works. Any suggestions on where I can go next to get a table in the proper format for qdec to read?
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Jim,
I looked at the qdec.table.dat file that you sent me. The problem was that it was in 'Mac' text format, which uses the LF char to indicate end-of-line, whereas the 'Unix' text format was expected, which uses the 'CR' char to indicate end-of-line (and fyi, 'DOS' text file use two chars: CR LF to indicate end-of-line).
So for now, do this:
dos2unix -c mac qdec.table.dat
which will convert the file (ie, it replaces LF chars with CR chars).
Also, you will need to add an extra line-feed to the end of the file, otherwise the last line (subject) will not be found.
I will try to improve the qdec code to automatically handle files like this (ie 'Mac' text files).
Nick
On Tue, 2007-12-04 at 22:10 -0600, James N. Porter wrote:
Actually, scratch that. I had a hunch that I should change my header from "subj" to "fsid" like the wiki guide has, and now the table loads. However, qdec immediately crashes afterwards.
Now my error is "qdec.bin: QdecDataTable.cpp:438: void QdecDataTable::Dump(FILE*): Assertion 'nInputs' failed. Abort."
Is there some sort of limit on number of subjects that I'm running into? I have 179 subjects, and I'm attempting to load a data table that lists out 176 of them. Any suggestions?
Jim Porter Graduate Student Clinical Science & Psychopathology Research University of Minnesota
James N. Porter wrote:
Hello-
I'm getting a rather nondescript message of "Error loading the data table" when I try to load my qdec.table.dat into the qdec GUI. I've tried using Excel, OpenOffice Calc, OpenOffice Wordprocessor, and Kate to save my table as a tab-delimited text file. Nothing works. Any suggestions on where I can go next to get a table in the proper format for qdec to read?
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Jim,
I've updated qdec such that it will automatically handle qdec.table.dat files originating on either Mac, Windows or Unix. This will appear in the next public release.
Also, to correct an inaccuracy on my part, Mac's use CR as end-of-line, Unix uses LF, while Windows (DOS) uses CR LF.
Nick
On Wed, 2007-12-05 at 15:18 -0600, James N. Porter wrote:
Yep, that does it. I had hoped my use of Kate and Open Office would have corrected this type of thing, but I guess not. Thanks for the new command to add to my repertoire.
Jim Porter Graduate Student Clinical Science & Psychopathology Research University of Minnesota
Nick Schmansky wrote:
Jim,
I looked at the qdec.table.dat file that you sent me. The problem was that it was in 'Mac' text format, which uses the LF char to indicate end-of-line, whereas the 'Unix' text format was expected, which uses the 'CR' char to indicate end-of-line (and fyi, 'DOS' text file use two chars: CR LF to indicate end-of-line).
So for now, do this:
dos2unix -c mac qdec.table.dat
which will convert the file (ie, it replaces LF chars with CR chars).
Also, you will need to add an extra line-feed to the end of the file, otherwise the last line (subject) will not be found.
I will try to improve the qdec code to automatically handle files like this (ie 'Mac' text files).
Nick
On Tue, 2007-12-04 at 22:10 -0600, James N. Porter wrote:
Actually, scratch that. I had a hunch that I should change my header from "subj" to "fsid" like the wiki guide has, and now the table loads. However, qdec immediately crashes afterwards.
Now my error is "qdec.bin: QdecDataTable.cpp:438: void QdecDataTable::Dump(FILE*): Assertion 'nInputs' failed. Abort."
Is there some sort of limit on number of subjects that I'm running into? I have 179 subjects, and I'm attempting to load a data table that lists out 176 of them. Any suggestions?
Jim Porter Graduate Student Clinical Science & Psychopathology Research University of Minnesota
James N. Porter wrote:
Hello-
I'm getting a rather nondescript message of "Error loading the data table" when I try to load my qdec.table.dat into the qdec GUI. I've tried using Excel, OpenOffice Calc, OpenOffice Wordprocessor, and Kate to save my table as a tab-delimited text file. Nothing works. Any suggestions on where I can go next to get a table in the proper format for qdec to read?
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu