| read.ANALYZE {fmri} | R Documentation |
Read fMRI data from ANALYZE file(s).
read.ANALYZE(prefix = "", numbered = FALSE, postfix = "",
picstart = 1, numbpic = 1)
prefix |
string. part of the file name before the number |
numbered |
logical. if FALSE only prefix is taken
as file name (default). |
postfix |
string. part of the file name after the number |
picstart |
number of the first image to be read. |
numbpic |
number of images to be read |
This function reads fMRI data files in ANALYZE format.
It takes the strings in prefix and postfix and
a number of the form "007" in between to create the file name.
If numbered is FALSE, only the string in prefix
is used for file name (default).
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.
Object of class "fmridata" with the following list entries:
ttt |
four dimensional data cube, the first three dimensions are voxel dimensions, the fourth dimension denotes the time |
header |
header information of the data |
format |
data source. string "ANALYZE" |
delta |
voxel size in mm |
origin |
position of the datacube origin |
orient |
data orientation code |
dim |
dimension of the datacube |
weights |
weights vector coding the relative voxel sizes in x, y, z-direction |
mask |
head mask |
Since numbering and naming of ANALYZE files widely vary, this function may not meet your personal needs. See Details section above for a description.
Karsten Tabelow tabelow@wias-berlin.de
Biomedical Imaging Resource (2001). Analyze Program. Mayo Foundation.
## Not run: analyze <- read.ANALYZE("analyze",TRUE,"file",31,107)