Hi Charlie,I don't have a lot of experience, but I have used the very nice oro.nifti package to do it. One you install that, you can load images as follows:> require(oro.nifti)
> imgdata <- readNIfTI('timeseries.nii.gz')Then, although it has other features it will still act like an array. For example, to get the histogram of the whole 3d volume of the first timepoint:> hist(imgdata[,,,1])Or for a histogram of the first slice across all timepoints:> hist(imgdata[1,,,])Best,Mike--On Fri, Jan 31, 2014 at 10:33 AM, charlie Leger <[log in to unmask]> wrote:
Has anyone had experience with loading 4D FSL-processed files into R?
Michael G. Dwyer, Ph.D.Assistant Professor of Neurology
Director of Technical Imaging Development
Buffalo Neuroimaging Analysis Center