Hello,
I am trying to process MEGA-PRESS data where we have 2 acquisitions (.dat) per session in the same voxel which I would like to combine to analyse through Osprey. I have tried combining them in cell arrays (each cell contain 1*2 with the 2 file paths) as such:
files = {{‘sub-1/file1.dat’, ‘sub-1/file2.dat’}, {‘sub-2/file1.dat’, ‘sub-2/file2.dat’}};
However I seem to run in an issue when referencing the water reference file. Since we have only one water reference acquisition per session, I tried duplicating the path (files_ref = {{‘sub-1/water.dat’, ‘sub-1/water.dat’}, {‘sub-2/water.dat’, ‘sub-2/water.dat’}};) but get
Error using osp_LoadTwix (line 40)
Number of specified reference files does not match number of specified
metabolite files
while the files and files_ref variables are both the same size in the Matlab workspace.
If I don’t duplicate the files (files_ref = {‘sub-1/water.dat’, ‘sub-2/water.dat’};), it starts loading but eventually runs into the error:
Index in position 1 exceeds array bounds. Index must not exceed 1.
Error in osp_combineCoils (line 249)
MRSCont.raw_ref{ll,kk} =
op_combine_water_subspecs(MRSCont.raw_ref{ll,kk},0);
Error in osp_LoadTwix (line 131)
[MRSCont] =
osp_combineCoils(MRSCont,kk,metab_ll,ref_ll,w_ll);
Error in OspreyLoad (line 197)
[MRSCont] = osp_LoadTwix(MRSCont);
Error in Initate_Osprey (line 23)
MRSCont = OspreyLoad(MRSCont);
Would anyone have some suggestions on what the issue may be and how to solve it?
Thank you so much,
Clara