External Email - Use Caution
Hello,
I am trying to convert ascii files containing vertex-wise thickness data into binary curvature files for subsequent smoothing and input into mri_glmfit. The command I used is:
mris_convert lh.test.asc lh.test.thickness
But then get the following error:
ERROR: MRISalloc: nfaces=-5 < 0
No such file or directory
I'm not sure what file or directory the error message is referring to, nor what the meaning of nfaces is. I am running version 6.0 on macOS Mojave. I have also attached a truncated version of the ascii file for inspection purposes (the whole thing was too big), which was converted from a csv that was generated by a python script correcting for site effects. This script took in as input the original ascii converted from the original lh.thickness file using mris_convert. The coordinates correspond to the fsaverage template (~160k vertices in the whole file).
Thanks in advance for any guidance,
Hi JeeSu if you look at the help for mris_convert, you'll see this example:
Convert a scalar overlay file in "curv" format to ascii: mris_convert -c lh.thickness lh.white lh.thickness.asc
which you should follow
cheers Bruce
On Wed, 3 Jul 2019, Jee Su Suh wrote:
External Email - Use Caution
Hello,
I am trying to convert ascii files containing vertex-wise thickness data into binary curvature files for subsequent smoothing and input into mri_glmfit. The command I used is:
mris_convert lh.test.asc lh.test.thickness
But then get the following error:
ERROR: MRISalloc: nfaces=-5 < 0
No such file or directory
I'm not sure what file or directory the error message is referring to, nor what the meaning of nfaces is. I am running version 6.0 on macOS Mojave. I have also attached a truncated version of the ascii file for inspection purposes (the whole thing was too big), which was converted from a csv that was generated by a python script correcting for site effects. This script took in as input the original ascii converted from the original lh.thickness file using mris_convert. The coordinates correspond to the fsaverage template (~160k vertices in the whole file).
Thanks in advance for any guidance,
-- J PhD. Student, Graduate Neuroscience Program McMaster University suhj5@mcmaster.ca
Why do you want to convert it to ascii? We have tools that will smooth it. In any event, you need something like mris_convert -c lh.thickness lh.white lh.thickness.asc
On 7/3/2019 6:47 PM, Jee Su Suh wrote:
External Email - Use Caution
Hello,
I am trying to convert ascii files containing vertex-wise thickness data into binary curvature files for subsequent smoothing and input into mri_glmfit. The command I used is:
mris_convert lh.test.asc lh.test.thickness
But then get the following error:
ERROR: MRISalloc: nfaces=-5 < 0
No such file or directory
I'm not sure what file or directory the error message is referring to, nor what the meaning of nfaces is. I am running version 6.0 on macOS Mojave. I have also attached a truncated version of the ascii file for inspection purposes (the whole thing was too big), which was converted from a csv that was generated by a python script correcting for site effects. This script took in as input the original ascii converted from the original lh.thickness file using mris_convert. The coordinates correspond to the fsaverage template (~160k vertices in the whole file).
Thanks in advance for any guidance,
-- JeeSu Suh, BSc. PhD. Student, Graduate Neuroscience Program McMaster University suhj5@mcmaster.camailto:suhj5@mcmaster.ca
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu