schorschinho / osprey

All-in-one toolbox for processing of magnetic resonance spectroscopy data.
https://schorschinho.github.io/osprey
MIT License
57 stars 43 forks source link

Adaptable frequency referencing for phantoms #732

Closed alexcraven closed 5 months ago

alexcraven commented 5 months ago

The current frequency referencing assumes the presence of Cr and Cho, or NAA singlets. This is fine for healthy brains and brain-like phantoms (eg, BRAINO solution), but problematic for non-brain-like phantoms.

This update adds a function, osp_PhantomReferencing, which checks for the presence of these major singlets in the expected constellation before trying to reference to them. It also checks for a 0 ppm reference (DSS/TSP) and uses that if the major peaks are not present. If neither option is available, no further referencing is attempted (which is preferable to incorrectly referencing to an unknown other singlet)

HJZollner commented 5 months ago

Thanks @alexcraven