I am trying to use qdec but it gave me this error. I don’t understand what is wrong because it read the diagnosis factor level of COS & NV but then says subject 00308 has invalid level of COS in diagnosis column.
Any ideas?
CHP-MP2:freesurfer brianweisinger$ qdec & [1] 7902 CHP-MP2:freesurfer brianweisinger$ Reading /Applications/freesurfer/lib/tcl/tkUtils.tcl
Using /Applications/freesurfer/lib/tcl/fsgdfPlot.tcl
Loading data table /Applications/freesurfer/subjects/qdec/qdec.table.dat... Number of columns: 4 fsid column: 1 Number of factors: 3 Number of subjects: 24 Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/gender.levels 'Female','Male', done Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/diagnosis.levels 'COS','NV', done
ERROR: Subject 00308 has an invalid level 'COS' in the diagnosis column INFO: If 'diagnosis' is a discrete factor, then create a file named 'diagnosis.levels' containing the valid factor names one per line. Error loading the data table.
can you send me your qdec.table.dat and the two .levels files?
n.
On Mon, 2009-12-14 at 14:58 -0500, Weisinger, Brian (NIH/OD) [E] wrote:
I am trying to use qdec but it gave me this error. I don’t understand what is wrong because it read the diagnosis factor level of COS & NV but then says subject 00308 has invalid level of COS in diagnosis column.
Any ideas?
CHP-MP2:freesurfer brianweisinger$ qdec & [1] 7902 CHP-MP2:freesurfer brianweisinger$ Reading /Applications/freesurfer/lib/tcl/tkUtils.tcl
Using /Applications/freesurfer/lib/tcl/fsgdfPlot.tcl
Loading data table /Applications/freesurfer/subjects/qdec/qdec.table.dat... Number of columns: 4 fsid column: 1 Number of factors: 3 Number of subjects: 24 Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/gender.levels 'Female','Male', done Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/diagnosis.levels 'COS','NV', done
ERROR: Subject 00308 has an invalid level 'COS' in the diagnosis column INFO: If 'diagnosis' is a discrete factor, then create a file named 'diagnosis.levels' containing the valid factor names one per line. Error loading the data table.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
(reposting the answer to the list)
be sure to create the .levels and qdec.table.dat files in an editor that doesnt add control characters. on both the mac and much of linux, a handy editor to do this is 'pico'. so:
pico gender.levels
and delete stuff that's not an alpha-numeric char (usually these show as dots).
Ctrl-O will save the file, then Ctrl-X to exit.
n.
On Tue, 2009-12-15 at 12:25 -0500, Nick Schmansky wrote:
can you send me your qdec.table.dat and the two .levels files?
n.
On Mon, 2009-12-14 at 14:58 -0500, Weisinger, Brian (NIH/OD) [E] wrote:
I am trying to use qdec but it gave me this error. I don’t understand what is wrong because it read the diagnosis factor level of COS & NV but then says subject 00308 has invalid level of COS in diagnosis column.
Any ideas?
CHP-MP2:freesurfer brianweisinger$ qdec & [1] 7902 CHP-MP2:freesurfer brianweisinger$ Reading /Applications/freesurfer/lib/tcl/tkUtils.tcl
Using /Applications/freesurfer/lib/tcl/fsgdfPlot.tcl
Loading data table /Applications/freesurfer/subjects/qdec/qdec.table.dat... Number of columns: 4 fsid column: 1 Number of factors: 3 Number of subjects: 24 Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/gender.levels 'Female','Male', done Reading discrete factor levels from config file /Applications/freesurfer/subjects/qdec/diagnosis.levels 'COS','NV', done
ERROR: Subject 00308 has an invalid level 'COS' in the diagnosis column INFO: If 'diagnosis' is a discrete factor, then create a file named 'diagnosis.levels' containing the valid factor names one per line. Error loading the data table.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu