rsagroup / rsatoolbox_matlab

A Matlab toolbox for representational similarity analysis
40 stars 49 forks source link

.img and .nii files #17

Open mike21499 opened 7 years ago

mike21499 commented 7 years ago

Hi there

When using 'SPM' for data preparation, the current version only supports .img-files, so I get e.g the error:

Gathering scans. Reading beta volumes for subject number 1 of 1: P15Error using spm_vol>spm_vol_hdr (line 80) File "X:\directory\beta_0001.img" does not exist.

Where can I change the code so that it accepts e.g. "beta_0001.nii" ?

many thanks for help!

PalomaManguele commented 5 years ago

Hi,

Have you managed to solve this? I am encountering the same problem. I guess we should change the code on spm_vol?

Thanks

LisaWirz commented 1 year ago

Hi

I don't use SPM for data preparation, but in my case changing fMRIDataPreparation.m to

betaImage = niftiread(readPath);

solved the issue of being unable to load a .nii file.