has anyone tried to use the RSA toolbox on BIDS formatted data? I’ve been going through the
Recipe_fMRI.m script, trying to prepare my data (from SPM) and my masks for the analysis. In the third line of that script (
fullBrainVols = rsa.fmri.fMRIDataPreparation('SPM', userOptions);), I’m getting the following error:
Reading beta volumes for subject number 1 of 26: sub-101........................Invalid field name: 'sub-101'. Error in rsa.fmri.fMRIDataPreparation (line 134) fullBrainVols.(thisSubject) = subjectMatrix; clear subjectMatrix;
As far as I can tell, this is due to the subject identifier including a minus sign, which is not allowed in struct field names. The same problem occurs in the next line, for preparing masks. Has anyone got any idea how to get around this?