asegstats2table: Parcellation Stats to Table

Description Usage Arguments Value Examples

View source: R/asegstats2table.R

Description

This function calls asegstats2table to convert parcellation statistics to a table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
asegstats2table(
  subjects = NULL,
  inputs = NULL,
  outfile = NULL,
  measure = c("volume", "mean", "std"),
  sep = c("tab", "space", "comma", "semicolon"),
  skip = FALSE,
  subj_dir = NULL,
  opts = "",
  verbose = TRUE
)

Arguments

subjects

(character) vector of subjects

inputs

(character paths) vector of input filenames, e.g. aseg.stats.

outfile

(character) output filename

measure

(character) measure to be calculated

sep

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

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 asegstats2table

verbose

(logical) print diagnostic messages

Value

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

Examples

1
2
3
4
if (have_fs()) {
   outfile = asegstats2table(subjects = "bert",
                    meas = "mean")
}

Example output



freesurfer documentation built on Dec. 9, 2020, 1:07 a.m.