Package: freesurferformats
Type: Package
Title: Read and Write 'FreeSurfer' Neuroimaging File Formats
Version: 1.0.0
Authors@R: person("Tim", "Schäfer", role = c("aut", "cre"), email = "ts+code@rcmd.org", comment = c(ORCID = "0000-0002-3683-8070"))
Maintainer: Tim Schäfer <ts+code@rcmd.org>
Description: Provides functions to read and write neuroimaging data in various file formats, with a focus on 'FreeSurfer' <http://freesurfer.net/> 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.
License: MIT + file LICENSE
Encoding: UTF-8
URL: https://github.com/dfsp-spirit/freesurferformats
BugReports: https://github.com/dfsp-spirit/freesurferformats/issues
Imports: utils, pkgfilecache (>= 0.1.1), xml2
Suggests: knitr, rmarkdown, testthat (>= 2.1.0), oro.nifti (>= 0.9),
        gifti (>= 0.7.5), cifti (>= 0.4.5)
VignetteBuilder: knitr
RoxygenNote: 7.3.3
NeedsCompilation: no
Packaged: 2025-09-07 13:51:07 UTC; ts
Author: Tim Schäfer [aut, cre] (ORCID: <https://orcid.org/0000-0002-3683-8070>)
Repository: CRAN
Date/Publication: 2025-09-08 07:00:26 UTC
Built: R 4.7.0; ; 2026-04-30 02:27:12 UTC; windows
