Theory#

This section summarizes key aspects of the theory implemented in DeerLab.

Assumptions#

The theory underlying DeerLab is not fully general and makes a series of assumptions about the sample and the experiment. The important ones are:

Spins-1/2

All spin labels are spin-1/2 or can be treated as such. High-spin systems are not handled by DeerLab.

No delocalization

The unpaired electron spin density on the spin labels can be treated as localized in a single point. Delocalized spin systems are not handled by DeerLab.

Isotropic g-values

All spins have essentially isotropic g values close to 2.00232. Spins with large g shifts and anisotropic g tensors are not handled by DeerLab.

No exchange coupling

There is no exchange coupling between any spins. The only interaction is through-space dipolar coupling. Exchange coupling is not handled by DeerLab.

Weak-coupling

The dipolar coupling between spins is in the weak-coupling regime, i.e. it is weaker than the difference between their resonance frequencies. Intermediate- and strong-coupling regimes are not handled by DeerLab.

Relaxation times

All spins relax with the same phase memory time. Systems with rotamer-specific relaxation rates are not handled by DeerLab.

No ESEEM modulation

The signal is free of modulations due to hyperfine couplings (ESEEM).

Warning

If your sample and experiment do not satisfy all these assumptions, DeerLab will give incorrect results.

Distance distributions#

In DeerLab, distance distributions are assumed to be normalized

\int_0^\infty P(r)\mr{d}r = 1

Dipolar signals and kernels#

A dipolar signal V(t) is calculated from a distance distribution P(r) with the Fredholm integral of the first kind:

V(t) = \int_0^\infty K(t,r)P(r)\mathrm{d}r

In this equation, K(t,r) is the experiment-specific kernel representing how the signal is obtained from the distance distribution. Dipolar EPR experiments differ in the number and type of pulses, resulting in different number of dipolar pathways with different modulation amplitudes and refocusing times. In DeerLab, the signal from a general dipolar EPR experiment is modeled by the general kernel

K(t,r) = \left[\varLambda_0 + \sum_{p=1}^N \lambda_p K_0(n_p(t-T_p),r)\right]\cdot\prod_{p=1}^N B(n_p(t-T_p),\lambda_p)

Here, \varLambda_0 is the total amplitude of all unmodulated pathways, N is the number of modulated pathways, \lambda_p is the amplitude of the pth modulated pathway, T_p is the refocusing time of the pth modulated pathway, and n_p is the harmonic of the pth pathway (most often, n=1). B is the background decay function.

K_0 is the elementary kernel for a single dipolar pathway with 100% modulation amplitude and unlimited excitation bandwidth. It is given by

K_0(t,r) =
\int_0^1
\cos\left((1-3\cos^2\theta) D r^{-3} t\right)
\mathrm{d}\cos\theta

with the dipolar constant

D =
\frac{\mu_0}{4\pi}
\frac{(\mu_\mathrm{B}g_\mathrm{e})^2}{\hbar}
\approx
2\pi\cdot 52\,\mathrm{MHz\,nm^3}

The closed-form expression for K_0 is

K_0(t,r) = \frac{C(\xi)}{\xi}\cos(\omega_\perp t) + \frac{S(\xi)}{\xi} \sin(\omega_\perp t)

with \xi = \sqrt{6\omega_\perp t/\pi} and the Fresnel cosine and sine integral functions

C(\xi) = \int_0^\xi \cos\left(\frac{\pi}{2}x^2\right)\mathrm{d}x
\qquad
S(\xi) = \int_0^\xi \sin\left(\frac{\pi}{2}x^2\right)\mathrm{d}x

For the common model used to analyze 4-pulse DEER data, the kernel is

K(t,r) = \left[(1-\lambda) + \lambda K_0(t,r)\right]\cdot B(t,\lambda)

This is a special case of the general kernel, with \varLambda_0 = 1-\lambda, N=1, \lambda_1=\lambda, T_1 = 0, and n_1=1.

Discretization#

In DeerLab, all signals V and distributions P are represented as discretized vectors \vc{V} and \vc{P} over discretized time domain \vc{t} and distance domain \vc{r}. Their elements are

V_i = V(t_i)
\qquad
P_j = P(r_j)

Distance distribution vectors must have non-negative elements and are assumed to be normalized such that

\sum_j P_j \Delta r  = 1

\Delta r is the constant increment along the distance domain. DeerLab does not support non-linear distance vectors with non-constant increments.

All kernels K are discretized accordingly to give kernel matrices \mx{K} with elements

K_{ij} = K(t_i,r_j) \Delta r

With this, a signal is obtained from a distance distribution via

\vc{V} = \mx{K}\vc{P}

Least-squares fitting#

DeerLab uses dedicated least-squares solvers to fit models to data. The objective function and the solver depend on whether the distance distribution is parametric or non-parametric, and on whether there are background and experiment parameters to fit alongside the distance distribution.

Parametric distribution#

To fit a model with a parametric distance distribution to an experimental signal, DeerLab solves

\vc{\theta}_\mathrm{fit} =
\argmin_{\vc{\theta}}
\|\vc{V}_\mr{exp}-\mx{K}[\vc{\theta}]\vc{P}[\vc{\theta}]\|^2

where \vc{V}_\mr{exp} indicates the experimental data and \vc{\theta} is a vector of all parameters (distribution parameters, background parameters, experiment parameters). Various constrained least-squares solvers are implemented.

Non-parametric distribution#

To fit a model with a non-parametric distribution and no additional fitting parameters to an experimental signal, DeerLab implements several regularization approaches. The most common one is Tikhonov regularization. For this, the minimization problem is

\vc{P}_\mathrm{fit} =
\argmin_{\vc{P}\ge0}
\left(
\|\vc{V}_\mr{exp}-\mx{K}\vc{P}\|^2
+
\alpha^2
\|\mx{L}\vc{P}\|^2
\right)

\alpha is the regularization parameter, and \mx{L} is the regularization operator matrix. DeerLab implements the linear non-negative least-squares solver FNNLS, as well as a few others. The \alpha parameter can be optimized using a range of criteria, including L-curve, Akaike information criterion (AIC), and generalized cross validation (GCV).

To fit a model with a non-parametric distance distribution and other parameters to an experimental signal, DeerLab solves

(\vc{\theta}_\mathrm{fit},\vc{P}_\mr{fit})
=
\argmin_{\vc{\theta},\vc{P}\ge0}
\left(
\|\vc{V}_\mr{exp}-\mx{K}[\vc{\theta}]\vc{P}\|^2
+
\alpha^2
\|\mx{L}\vc{P}\|^2
\right)

This problem is solved directly, i.e. both \vc{\theta} ad \vc{P} are fitted simultaneously. To achieve this, DeerLab implements a nested optimization approach that includes regularization.