You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2023. It is now read-only.
Rahil Taujale edited this page Dec 21, 2020
·
2 revisions
ppmshift
this function will calculate new ppm from pH
it will use the equation:
ppm=(ppmacidph+ppmbaseph*10^(pH-pka))/(1+10^(pH-pka));
to calculate ppm shift in this pH compared with those in gissmo measured pH to shift the spectra.
the shift is done by move the part moving out of one bounds to another bounds
assumption: all peak shift are within ppm range/the baseline is random noise
Argument:
spectral: the reference spetra
baseph: ppm of the complete base form
acidph: ppm of the complete acid form
pka: pka of the compound, only two forms of compound (L and HL) is assumed.
pH: the current pH
ppm: the ppm vector
pHmeasu: the pH where gissmo spectra is measured default 7.4
return: vec, the shifted spectral
ppmnewshift: the ppm shift for the peak under corresponding pH
Typical next steps: visualizing the spectra or testing your method on the spectra