I am trying to use the sim_press.m function for that, but I’m facing some problems to understand the input parameters of this function:
I didn’t understand what values goes in the linewidth, sys and tau2 parameters.
I have a txt file with the parameters from a Philips Scanner PRESS experiment that I want to reproduce: PRESS PHILIPS PARAMETERS.txt (2.9 KB)
How can I find the information that is required for the linewidth, sys and tau2 parameters so I can synthetize spectrums from the PRESS experiment that I provided in the txt file?
linewidth is the full-width, half-maximum (FWHM) the simulated spectral signals should have. Usually, 2 Hz is appropriate. sys is the spin system you want to simulate; for example, glutamate or GABA. tau1 and tau2 are timing parameters specific to your PRESS sequence. These will depend on the TE of the experiment. I don’t recall what these are for the Philips PRESS sequence, but I think tau1 is fixed at 13.4 ms.
I suggest using one of the example PRESS simulation scripts found in the exampleRunScripts/ folder (run_simPressShaped_fast_phCyc.m is what I’d use for faster and more accurate simulations).
FID-A already defines most of the common spin systems you’re likely to need (and a few less likely ones); you can find them individually in simulationTools/metabolites, or collectively in spinSystems.mat (same folder). Of course you may also define your own systems using a similar pattern. In the example script @mmikkel suggested, you can see that it’s loaded around line 83
You’ll need to invoke this simulation function (and do something with the output) once for each spin system you wish to include. I use a pattern like this (choice of metabolites could be adapted to your needs):