External Email - Use Caution
Dear list,
I needed some GNU R functions which read and write MGH/MGZ files including all the header information, so I wrote them and also put them into a package to share them.
Support for binary 'curv' format morphometry files (like 'surf/lh.area') and annotations (like 'labels/lh.aparc.annot') in also included.
The package is on CRAN: https://cran.r-project.org/package=freesurferformats
Docs, examples and vignettes are included. Unit tests can be found (with the full source code) on GitHub: https://github.com/dfsp-spirit/freesurferformats
Best,
Tim
-- Dr. Tim Schäfer Postdoc Computational Neuroimaging Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany
freesurfer@nmr.mgh.harvard.edu