fsimport: 'Freesurfer' Import (Serialise)

Description Usage Arguments Details Value Author(s) Examples

View source: R/rsurfer.R

Description

This function assumes all the subdirectories of subjectDir are subjects who have been processed in 'Freesurfer'. In then runs various 'Freesurfer' scripts to extract the specified fields into an R data frame.

Usage

1
fsimport(subjectDir, fields = fsimport.listfields(), verbose = F)

Arguments

subjectDir

The directory containing the subject subdirectories

fields

The field groups to use, see fsimport() for more details

verbose

Whether to log the 'Freesurfer' scripts to the R console

Details

The field groups which can be imported from the subject are: The specified fields can be:

lh.cortical.thickness = left hemisphere cortical thicknesses rh.cortical.thickness = right hemisphere cortical thicknesses lh.cortical.volume = left hemisphere cortical volumes rh.cortical.volume = right hemisphere cortical volumes lh.cortical.thickness.std = left hemisphere cortical thickness standard deviations rh.cortical.thickness.std = right hemisphere cortical thickness standard deviations lh.cortical.area = left hemisphere cortical surface areas rh.cortical.area = right hemisphere cortical surface areas lh.subcortical = left hemisphere subcortical volumes rh.subcortical = right hemisphere subcortical volumes lh.hippocampal = left hemisphere hippocampal volumes rh.hippocampal = right hemisphere hippocampal volumes

By default all of the above fields are included. For the hippocampal volumes, the subjects must have been processed with the "hippo-subfields" when 'Freesurfer' was invoked.

Value

The subject data processed from 'Freesurfer'

Author(s)

Alexander Luke Spedding, alexspedding271@gmail.com

Examples

1
2
3
4
5
## Not run: 
setfshome("/Applications/freesurfer")
fsimport("/Users/alex/Desktop/Subjects")

## End(Not run)

rsurfer documentation built on May 2, 2019, 4:20 a.m.