oasis_train_dataframe: OASIS Training Data Frame

Description Usage Arguments Value See Also

View source: R/oasis_train_dataframe.R

Description

This function creates the training vectors from a single MRI study that has FLAIR, T1, T2, and PD volumes as well as binary masks of lesions. The function can create a brain mask for the data (or the user can supply a brain mask), can preprocess the data, and the user may supply already normalized data if they wish to use an alternative normalization method.

Usage

1
2
3
4
oasis_train_dataframe(flair, t1, t2, pd = NULL, gold_standard = NULL,
  brain_mask = NULL, preproc = FALSE, normalize = TRUE, slices = NULL,
  orientation = c("axial", "coronal", "sagittal"), return_preproc = FALSE,
  cores = 1, verbose = TRUE, eroder = c("fsl", "oasis"))

Arguments

flair

FLAIR volume of class nifti

t1

T1 volume of class nifti

t2

T2 volume of class nifti

pd

PD volume of class nifti

gold_standard

gold standard lesion segmentation mask of class nifti

brain_mask

brain mask of class nifti, if NULL a brain mask will be created using fslbet

preproc

is a logical value that determines whether to call the oasis_preproc function and performs the necessary preprocessing steps for OASIS

normalize

is a logical value that determines whether to perform z-score normalization of the image over the brain mask, should be TRUE unless you train model using an alternative normalization

slices

vector of desired slices to train on, if NULL then train over the entire brain mask

orientation

string value telling which orientation the training slices are specified in, can take the values of "axial", "sagittal", or "coronal"

return_preproc

is a logical value that indicates whether the preprocessed images should be returned

cores

numeric indicating the number of cores to be used (no more than 4 is useful for this software implementation)

verbose

print diagnostic output

eroder

Should fslerode or oasis_erode be used

Value

If return_preproc = FALSE the function returns a data.frame for use with the oasis_training function. Otherwise, the function returns a list containing: a data.frame for use with the oasis_training function, the FLAIR volume, the T1 volume, the T2 volume, the PD volume, the brain mask for the subject, and the voxel selection mask.

See Also

oasis_training


oasis documentation built on May 29, 2017, 3:53 p.m.