Export .mat Basis as .BASIS or .json files?

Hello,

I’m trying to convert an Osprey basis set back to the same format the LCModel uses (or FSL_MRS)

Does anyone know of a way of taking a Osprey BASIS file and exporting/converting to LCModel (.basis) or as an FSL_MRS basis set (.json)

Cheers,

Alex W.

Hi @weberam2,

you can use …/osprey/libraries/FID-A/inputOutput/io_writelcmBASIS.m or …/osprey/libraries/FID-A/inputOutput/io_writeTarquinBASIS.m to generate a .basis file.

You might have to do the resampling first by running the fit in Osprey and exporting the resampled basis set from MRSCont.fit.resBasisSet.metab . You can also call LCModel from within Osprey for conventional MRS if you have a fully complied version of LCModel on the same machine.

Or you can simulate any basis set here (https://braingps.mricloud.org/about) with the MRSCloud tool (https://onlinelibrary.wiley.com/doi/abs/10.1002/mrm.29370) including an export as .basis and Osprey mat file.

Let me know if you get stuck,
Helge

Hi Helge,

Thanks! I will give this a try :slight_smile:

1 Like