Dear freesurfer experts,
I have an overlay freesurfer file (format is .w) which corresponds to a thresholded seed-based functional connectivity surface map (group result). The .w file was generated from an SPM analysis, following the instructions described here (http://spmsurfrend.sourceforge.net/Documentation/SPM_SurfRend_Tutorial_V0.2....). I have one .w file for each cerebral hemisphere. I would like to visualize these .w maps using workbench_view, and I have tried to follow the instructions the HCP team published here (https://wiki.humanconnectome.org/display/PublicData/HCP+Users+FAQ#HCPUsersFA...). As a first step I would need to convert the .w files into .func.gii files using mris_convert. Then I would use wb_command -metric-resample, as indicated in the instructions. This does not seem to work with my .w file:
1) mris_convert myfile.w myfile.func.gii This generates myfile.func.gii, but when I use wb_command -metric-resample I get the following error: ERROR: Parse error while reading: error occurred while parsing element, line number: 1 column number: 1
2) As an alternative approach, I opened myfile.w using Tksurfer and saved the overlay (myfile.w) with .mgh format (generating a new file: "myfile.mgh"). Then I do the following: mris_convert myfile.mgh myfile.func.gii This generates the myfile.func.gii file, but when I use wb_command -metric-resample with this file I get a different error: ERROR: All data arrays (columns) in the file must have the same number of rows. The first array (column) contains 163842 rows. Array 2 contains 327680 rows.
I have asked the HCP team, but they were not familiar with the .w files and suggested that I ask you instead.
Thank you very much for your help, Xavier.
Try something like
mris_convert -c myfile.w lh.white myfile.gii
if the .w file does not work, then use the mgh file
On 09/12/2017 07:13 PM, Xavier Guell Paradis wrote:
Dear freesurfer experts,
I have an overlay freesurfer file (format is .w) which corresponds to a thresholded seed-based functional connectivity surface map (group result). The .w file was generated from an SPM analysis, following the instructions described here (http://spmsurfrend.sourceforge.net/Documentation/SPM_SurfRend_Tutorial_V0.2....). I have one .w file for each cerebral hemisphere. I would like to visualize these .w maps using workbench_view, and I have tried to follow the instructions the HCP team published here (https://wiki.humanconnectome.org/display/PublicData/HCP+Users+FAQ#HCPUsersFA...). As a first step I would need to convert the .w files into .func.gii files using mris_convert. Then I would use wb_command -metric-resample, as indicated in the instructions. This does not seem to work with my .w file:
- mris_convert myfile.w myfile.func.gii
This generates myfile.func.gii, but when I use wb_command -metric-resample I get the following error: *ERROR: Parse error while reading: error occurred while parsing element, line number: 1 column number: 1*
- As an alternative approach, I opened myfile.w using Tksurfer and
saved the overlay (myfile.w) with .mgh format (generating a new file: "myfile.mgh"). Then I do the following: mris_convert myfile.mgh myfile.func.gii This generates the myfile.func.gii file, but when I use wb_command -metric-resample with this file I get a different error: *ERROR: All data arrays (columns) in the file must have the same number of rows. The first array (column) contains 163842 rows. Array 2 contains 327680 rows.*
I have asked the HCP team, but they were not familiar with the .w files and suggested that I ask you instead.
Thank you very much for your help, Xavier.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu