freesurferformats: Read and Write 'FreeSurfer' Neuroimaging File Formats

Provides functions to read and write neuroimaging data in various file formats, with a focus on 'FreeSurfer' <> formats. This includes, but is not limited to, the following file formats: 1) MGH/MGZ format files, which can contain multi-dimensional images or other data. Typically they contain time-series of three-dimensional brain scans acquired by magnetic resonance imaging (MRI). They can also contain vertex-wise measures of surface morphometry data. The MGH format is named after the Massachusetts General Hospital, and the MGZ format is a compressed version of the same format. 2) 'FreeSurfer' morphometry data files in binary 'curv' format. These contain vertex-wise surface measures, i.e., one scalar value for each vertex of a brain surface mesh. These are typically values like the cortical thickness or brain surface area at each vertex. 3) Annotation file format. This contains a brain surface parcellation derived from a cortical atlas. 4) Surface file format. Contains a brain surface mesh, given by a list of vertices and a list of faces.

Version: 0.1.18
Imports: utils, pkgfilecache (≥ 0.1.1), xml2
Suggests: knitr, rmarkdown, curl, testthat (≥ 2.1.0), oro.nifti (≥ 0.9), gifti (≥ 0.7.5), cifti (≥ 0.4.5)
Published: 2024-02-02
DOI: 10.32614/CRAN.package.freesurferformats
Author: Tim Schäfer ORCID iD [aut, cre]
Maintainer: Tim Schäfer <ts+code at>
License: MIT + file LICENSE
NeedsCompilation: no
In views: MedicalImaging
CRAN checks: freesurferformats results


Reference manual: freesurferformats.pdf
Vignettes: Reading FreeSurfer neuroimaging data with freesurferformats
Computing volume header data with freesurferformats
Writing FreeSurfer neuroimaging data with freesurferformats


Package source: freesurferformats_0.1.18.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): freesurferformats_0.1.18.tgz, r-oldrel (arm64): freesurferformats_0.1.18.tgz, r-release (x86_64): freesurferformats_0.1.18.tgz, r-oldrel (x86_64): freesurferformats_0.1.18.tgz
Old sources: freesurferformats archive

Reverse dependencies:

Reverse imports: fsbrain, VertexWiseR, wal
Reverse suggests: ravetools


Please use the canonical form to link to this page.