Load diffusion data for statistical analysis.

load_dba_data(
  subjdir = "",
  csv = "",
  measure = "",
  smooth = 0,
  atlas = "",
  eddy = TRUE,
  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.

measure

character specifying the brain imaging measure. If analyzing diffusion data, should be "FA".

smooth

numeric value denoting the smoothing level.

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".

eddy

boolean for specifying if the diffusion images were eddy-current corrected or not.

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.