Check and return the maskfile and the atlas file

check_tbm_atlas_and_mask(
  subjdir = "",
  csv = "",
  atlas = "",
  maskfile = "",
  exclude_col
)

Arguments

subjdir

subject directory containing BrainSuite processed data.

csv

filename of a comma separated (csv) file containing the subject demographic information. The first column of this csv file should be "subjID" and should have subject identifiers you wish to analyze. subjID can be alphanumeric and should be exactly equal to the individual subject directory name.

atlas

character specifying the file path prefix (all characters in the file name upto the first ".") for the custom atlas. If empty, the atlas will be read from the svreg.log file in the subject directory. Otherwise, for example, if the atlas for tensor based morphometry is located at /path/to/atlas/myatlas.mri.bfc.nii.gz, then specify atlas="/path/to/atlas/myatlas".

maskfile

filename of the mask for tbm or diffusion parameter analysis. The mask has to be in the atlas space.

exclude_col

character string for the column in demographics csv (contains 1 or 0 for each row) specifying the subjects to exclude. 1 denotes include, 0 denotes exclude.