importing nifti files
archived_post
Posted on 02/02/07 11:19:56
Number of posts: 100
Author: Agatha (---.csbmb.Princeton.EDU)
Date: 10-24-06 14:08
hi all ~
i am trying to analyze AFNI-analyzed files using the PLS gui. i have
all runs preprocessed and concatenated into one long run (3072 TRs) - i
have one such file for each subject. and these were converted to .nii
format using 3dAFNItoNIFTI.
my problem - the files are multiple scan files in 1 file - which PLS
doesn't like. when i tried converting it to 1 file/scan using
expand_nii_scan.m matlab ran out of memory... (see below).
i analyze all my data as one concatenated run - rather than as multiple
runs. can i read these .nii files into PLS in any shape or form ...or
do i need to un-concatenate (i assume there is a shell command to do
this?) and convert as separate runs (this is inconvenient b/c all my
data and all my regressors are currently saved as single files ..but
doable).
thanks in advance ~
agatha
>> expand_nii_scan('ab_allruns_mdnSm6ZR.nii')
MATLAB(24486,0xa000ed98) malloc: *** vm_allocate(size=1793069056) failed (error code=3)
MATLAB(24486,0xa000ed98) malloc: *** error: can't allocate region
MATLAB(24486,0xa000ed98) malloc: *** set a breakpoint in szone_error to debug
??? Error using ==> double
Out of memory. Type HELP MEMORY for your options.
Error in ==> load_nii_img>read_image at 246
hdr.dime.glmax = max(double(img(:)));
Error in ==> load_nii_img at 62
[img,hdr] = read_image(hdr,filetype,fileprefix,machine,img_idx,old_RGB);
Error in ==> load_nii at 66
[nii.img,nii.hdr] = ...
Error in ==> expand_nii_scan at 14
nii = load_nii(filename, img_idx);