Learn R Programming

DATforDCEMRI (version 0.5)

DAT.checkData: Create and check data file.

Description

The user loads DCE-MRI data into R using pre-existing functions such as read.table; DAT.checkData then saves all data into a single RData file which can be analyzed using DAT.

Usage

DAT.checkData(file.name, vector.times, map.CC, mask.ROI, 
vector.AIF, slice.start=1, slice.stop="not.specified")

Arguments

file.name
Specify a name for the file that will be generated.
vector.times
Vector of time points at which contrast agent concentrations are measured (should have units of seconds).
map.CC
Array of voxel-wise contrast agent concentrations.
mask.ROI
Array containing the predefined Region of Interest.
vector.AIF
Vector containing the Arterial Input Function.
slice.start
For multislice data files, a range of slices must be specified. Slice numbers less than slice.start will not be included in the saved file. The default value for this argument is "1"; we recommend not changing this unless file size is a significant issu
slice.stop
For multislice data files, a range of slices must be specified. Slice numbers grater than slice.stop will not be included in the RData file to be analyzed by DAT.

Examples

Run this code
data(DAT.simData, package="DATforDCEMRI")
myccarray <- (DAT.simData$mapCC)
mytimevector <- (DAT.simData$vectorTimes)
myroiarray <- (DAT.simData$maskROI)
myaifvector <- (DAT.simData$vectorAIF)
DAT.checkData(file.name="mydcemridata", vector.times=mytimevector, map.CC=myccarray, 
mask.ROI=myroiarray, vector.AIF=myaifvector, slice.stop=2)

Run the code above in your browser using DataLab