Read fMRI data from ANALYZE file(s).
read.ANALYZE(prefix = "", numbered = FALSE, postfix = "",
picstart = 1, numbpic = 1, level = 0.75, mask=NULL, setmask=TRUE)
Object of class "fmridata" with the following list entries:
raw vector (numeric size 4) containing the four dimensional data cube (the first three dimensions are voxel dimensions, the fourth dimension denotes the time).
header information of the data
data source. string "ANALYZE"
voxel size in mm
position of the datacube origin
data orientation code
dimension of the datacube
weights vector coding the relative voxel sizes in x, y, z-direction
head mask
string(s). part of the file name before the
number or vector of strings for filename (if numbered
is FALSE
)
logical. if FALSE
only prefix
is taken
as file name (default).
string. part of the file name after the number
number of the first image to be read.
number of images to be read
Quantile level defining the mask
array or nifti-object containing the mask. If set this replaces the mask defined by argument level.
Logical (default TRUE
), whether to define a suitable mask based on level
Karsten Tabelow tabelow@wias-berlin.de
This function reads fMRI data files in ANALYZE format.
If numbered
is FALSE
, only the vector of strings in prefix
is used for file name (default).
If numbered
is TRUE
, it takes the first string in prefix
and postfix
and
a number of the form "007" in between to create the file name.
The number is assumed to be 3 digits (including leading zeros). First
number is given in picstart
, while numbpic
defines the
total number of images to be read. Data in multiple files
will be combined into a four dimensional datacube.
Biomedical Imaging Resource (2001). Analyze Program. Mayo Foundation.
Polzehl, J. and Tabelow, K. (2007) fmri: A Package for Analyzing fmri Data, R News, 7:13-17 .
write.ANALYZE
, read.AFNI
if (FALSE) analyze <- read.ANALYZE("analyze",TRUE,"file",31,107)
Run the code above in your browser using DataLab