package_data.Rd
Takes same parameters as load_bstr_data()
and copies the data to a new directory specified by outdir. You can repeatedly call this function to copy data of different types (tbm -- nii.gz, sba -- .dfs files etc.) to the same output directory.
Prior to using this function, BrainSuite and svreg should be run on all subjects.
If required, smoothing should be performed on cortical surface or volumetric image based measures.
A csv file containing subject demographic information should exist. The first column of this csv file
should have the subject identifiers. Subject identifiers can be alphanumeric
and should be exactly equal to the individual subject directory names.
package_data(
type = "sba",
subjdir = NULL,
csv = "",
hemi = "left",
sbasmooth = 0,
tbmsmooth = 0,
dbasmooth = 0,
measure = "FA",
atlas = "",
eddy = TRUE,
outdir = NULL,
exclude_col = ""
)
character string denoting type of analysis. Should be sba, tbm, or roi.
subject directory containing BrainSuite processed data.
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.
chaaracter string denoting the brain hemisphere. Should either be "left" or "right".
numeric value denoting the smoothing level for sba.
numeric value denoting the smoothing level for tbm.
numeric value denoting the smoothing level for dba.
character specifying the brain imaging measure. If analyzing diffusion data, should be "FA".
path name to the atlas
boolean for specifying if the diffusion images were eddy-current corrected or not.
output directory that will contain the copied data
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.