Trying to exclude a file from MRS Container

Hello!
I have processed a batch of SVS PRESS 30 data and am trying to exclude a few bad files from the container. Someone showed me on an older version of Osprey to select the file in the MRS Container you want to exclude and then press the left arrow key, however it isn’t working in the 2.4.0 version. The pop up window in Osprey with ‘Exclude Specta’ as the title and an incomplete progress bar for ‘Call OspreyQuantify’ shows up and Matlab produces this error. (I apologize if this has already been addressed elsewhere an I missed it.)

Timestamp August 19, 2022 13:19:29 Osprey 2.4.0 OspreyQuantify

Quantifying dataset 1 out of 50 total datasets…
Error using matlab.ui.control.UIControl/set
Invalid or deleted object.

Error in printLog (line 209)
set(progressText,‘String’ ,sprintf(‘Quantifying dataset %3i out of %3i total datasets…\n’, kk, nDatasets));

Error in OspreyQuantify (line 179)
[~] = printLog(‘OspreyQuant’,kk,1,MRSCont.nDatasets,progressText,MRSCont.flags.isGUI ,MRSCont.flags.isMRSI);

Error in osp_WindowKeyDown (line 73)
MRSCont = OspreyQuantify(MRSCont);

Error while evaluating UIControl KeyPressFcn.

Thank you!
Bethany

Hi @bstennett,

Did you finish the full analysis pipeline first so that you are able to see the overview plots?

Afterward, you should be able to click into the listbox in the GUI and remove subjects by pressing left arrow. I’ve just tested it, and it worked fine for me. Let me know if it is still not working on your machine.

Best,
Helge

Hi @Helge,

I am still having the same problem. I reran some data all the way through the entire pipeline and then tried to exclude from the listbox. A line will appear through the file name in the box (as if it were excluded), the small external window with the progress bar stays up, the data is not actually excluded from the overview plots, and Matlab displays an error. I am using a Mac, not sure if that would be the issue. This isn’t a huge issue, it would just be nice to be able to exclude there in the container to save out the plots.

Thanks!
Bethany

Hi @bstennett,

Mac shouldn’t be the issue here as we are developing mainly on mac. However, it is hard to debug this problem if I’m not able to reproduce it. You could try loading the MRSContainer from the output folder manually and then add the subjects to exclude like this (to remove sub 2,5, and 8):

MRSCont.exclude = [2, 5, 8];

Afterward rerun Quantfiy and Overview and open the GUI:

MRSCont = OspreyQuantify(MRSCont);
MRSCont = OspreyOverview(MRSCont);
gui = OspreyGUI(MRSCont);

Helge