if (FALSE) {
# Get general folder
folder <- system.file("extdata", package = "neurodata")
# Get covariates
covariates <- system.file("covariates.txt", package = "neurodata")
# Read covariates information
clinical_info <- read.csv(file = covariates, sep = ';')
# Preprocess MRI scans: 'N4' inhomogeneity correction,
# 'SyN' non-linear transformation to MNI152 atlas template
# Brain extraction, Spatial informed MRI scan , a.k.a., brain segmentation
# and RAVEL intensity normalization only for T1-w images.
paths_preprocess_patients <- preprocess_patients(folder, clinical_info)
# Outputs paths of the preprocessed MRI scans per patient
# and applied preprocessing.
paths_preprocess_patients$patient02
}
Run the code above in your browser using DataLab