Description Usage Arguments Value Author(s) Examples
Calls fsimport() and once that data frame is created it is serialised to the file specified by serialisationLocation. However, if this file already exists when the function is run, then it will unserialise the file instead of calling fsimport(). This saves constant running of 'Freesurfer' scripts when running code thus saving execution time for code to run.
1 2 3 4 5 6 | fsimport.serialise(subjectDir, serialisationLocation,
fields = c("lh.cortical.thickness", "rh.cortical.thickness",
"lh.cortical.volume", "rh.cortical.volume", "lh.cortical.thickness.std",
"rh.cortical.thickness.std", "lh.cortical.area", "rh.cortical.area",
"lh.subcortical", "rh.subcortical", "lh.hippocampal", "rh.hippocampal"),
verbose)
|
subjectDir |
The directory containing the subject subdirectories |
serialisationLocation |
The location where the serialised file is saved to and loaded from |
fields |
The field groups to use, see fsimport() for more details |
verbose |
Whether to log the 'Freesurfer' scripts to the R console |
The subject data processed from 'Freesurfer'
Alexander Luke Spedding, alexspedding271@gmail.com
1 2 3 4 5 | ## Not run:
setfshome("/Applications/freesurfer")
fsimport.serialise("~/Subjects", serialisationLocation = "~/data.rds")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.