I have two questions about using Siemens .IMA files.
For one data set, I have a single .IMA file per subject. When loading the data, I get the following error. In debug mode, out.seq is correctly assigned STEAM, so I’m wondering if seq should be out.seq?
Unrecognized function or variable ‘seq’.
Error in io_loadspec_dicom (line 325)
if strcmp(seq,‘PRESS’) || strcmp(seq,‘STEAM’) || strcmp(seq,‘SLASER’)
Error in osp_LoadDICOM (line 67)
raw = io_loadspec_dicom(MRSCont.files{metab_ll,kk});
Error in OspreyLoad (line 185)
[MRSCont] = osp_LoadDICOM(MRSCont);
Error in osp_onLoad (line 33)
MRSCont = OspreyLoad(MRSCont);
Error while evaluating UIControl Callback.
For another data set, I have fMRS with individual averages saved as .IMA (90 .IMA files per subject). Can Osprey be used to average these data? It seems to be looking for a single .IMA per subject, but I’m not sure.
Thanks for this bug report - yeah, seq in these final statements ought to be replaced with seqtype or out.seq@Helge.
About your second question - is your job file pointing towards a folder of IMAs instead of a single IMA? In that case, it should automatically load all of them, interpret them as single transients, and align/average them down the line. Can you try using the seqtype bugfix and report back?
OK this seems odd, looking at the error message it seems like it’s not finding any pair-value lines in the file that is specified in files_ref.
What are the files and files_ref entries in the job file, and
What is your file/folder structure looking like (you will probably have to place the single IMA files for the files and files_ref in separate folders)?
The fix also contains a blind shot at dealing with the multi-IMA issue you reported in your last post, so I’m not 100% sure this will work because I didn’t have a dataset to test on, but please have a pop at it.
A related update. I was assisting a student who is using Gannet for segmentation, and he ran into the same error with the DICOM header. I did a quick fix on read_dcm_header in Gannet using your Osprey fix, and then he ran into a second similar error (Invalid field name: ‘0’.) that was also fixed by adding the try/catch to “case 2” at line 63.
Yes! So far, we’ve only run into issues with case 1 and case 2 for two different labs/studies/voxels but seemingly random subjects. All are Siemens 7T STEAM, but I haven’t identified any other pattern as to why it happens.