Learn R Programming

freesurfer (version 1.6.10)

aparcstats2table: Parcellation Stats to Table

Description

This function calls aparcstats2table to convert parcellation statistics to a table

Usage

aparcstats2table(
  subjects,
  outfile = NULL,
  hemi = c("lh", "rh"),
  measure = c("area", "volume", "thickness", "thicknessstd", "meancurv", "gauscurv",
    "foldind", "curvind"),
  sep = c("tab", "space", "comma", "semicolon"),
  parc = c("aparc", "aparc.a2009s"),
  skip = FALSE,
  subj_dir = NULL,
  opts = "",
  verbose = TRUE
)

Value

Character filename of output file, with the attribute of the separator

Arguments

subjects

(character) vector of subjects

outfile

(character) output filename

hemi

(character) hemisphere to run statistics

measure

(character) measure to be calculated

sep

(character) separator for the output file. This will be an attribute of outfile

parc

(character) parcellation to compute on

skip

(logical) if subject does not have parcellation, should the command skip that subject (TRUE) or error (FALSE)

subj_dir

(character path) if a different subjects directory is to be used other than SUBJECTS_DIR from shell, it can be specified here. Use with care as if the command fail, it may not reset the SUBJECTS_DIR back correctly after the error

opts

(character) additional options to aparcstats2table

verbose

(logical) print diagnostic messages

Examples

Run this code
if (have_fs()) {
   fs_subj_dir()
   outfile = aparcstats2table(subjects = "bert",
                    hemi = "lh",
                    meas = "thickness")
}

Run the code above in your browser using DataLab