Bug in Gannet using twix MRS files

Summary of what happened:

Hello everyone,

I am currently using Gannet to process MRS twix files, all recorded with the same sequence. This generally works without issues; however, for certain files, I encounter a warning related to an escaped character "" (Backslash) that appears upon loading. Shortly afterward, this is followed by an error message.

Command used (and if a helper script was used, a link to the helper script or the command generated):

PASTE CODE HERE

Version:

Environment (Docker, Singularity / Apptainer, custom installation):

Matlab 2023A, replicated in Windows and Linux

Data formatted according to a validatable standard? Please provide the output of the validator:

PASTE VALIDATOR OUTPUT HERE

Relevant log outputs (up to 20 lines):

In the Command Window, the following appears:


Loading CBS_006_T1_FL_meas_MID00131_FID174483_ActiGliA_svs_edit_mp_herm_320Avg.dat...
Large file detected (672.43 MB). Please wait...
Warning: ********** An error occured while loading dataset: 'C:\Users\M\Documents\MATLAB\CBS_006_T1_FL_meas_MID00131_FID174483_ActiGliA_svs_edit_mp_herm_320Avg.dat'.
Check data. Skipping to next dataset in batch. **********

    In GannetLoad (line 733)
    In Gannet_CBS_006_T1 (line 12)
    Warning: Escaped character '
    ' is not valid. See 'doc sprintf' for supported special characters.
    In GannetLoad (line 734)
    In Gannet_CBS_006_T1 (line 12)
    Unrecognized function or variable 'kk'.

Error in GannetLoad (line 751)
mat_name = fullfile(pwd, ['MRS_struct_' vox{kk} '.mat']);

Error in Gannet_CBS_006_T1 (line 12)
MRS = GannetLoad(metab, water);

(Notably, I haven’t encountered issues with “\ " (Backslash) characters in MATLAB with other files, and this problem does not affect all Twix files processed with this sequence.)
I continued processing the twix data and encountered later a similar but new error message. In the Command Window, warnings appear once again about the escaped character “" (backslash), along with additional warnings and the following error message. It appears that backslashes are being added in front of each underscore (”_”), which I use frequently in my folder names and filenames. As a result, the filenames and paths seem to be altered.

image
I then renamed the folders, removing any underscores. After that, the usual error message from my initial report appeared again.

Screenshots / relevant information: