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.1.pdf). > 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#HCPUsersFAQ-9.HowdoImapdatabetweenFreeSurferandHCP?). > 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. > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer -- Douglas N. Greve, Ph.D. MGH-NMR Center gr...@nmr.mgh.harvard.edu Phone Number: 617-724-2358 Fax: 617-726-7422 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2 www.nmr.mgh.harvard.edu/facility/filedrop/index.html Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/ _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.