ipcs.m

From Spinach Documentation Wiki
Revision as of 14:05, 5 April 2026 by Kuprov (talk | contribs) (Sync syntax/arguments/outputs with current Spinach source)
Jump to: navigation, search


3D reconstruction of paramagnetic centre probability density from PCS data using Kuprov-Charnock equation (http://dx.doi.org/10.1039/C4CP03106G).

Syntax

[source_cube,ranges,pred_pcs,err_ls,reg_a,reg_b]=ipcs(parameters,npoints,lambda)

Arguments

nxyz - nuclear coordinates as [x y z] with multiple rows

               at which PCS has been measured, in Angstroms.
    expt_pcs - pseudocontact shift in ppm at each nucleus.
    chi      - electron magnetic susceptibility tensor, in units
               of Angstrom^3.
    npoints  - number of points in each dimension of the source
               cube, a positive integer greater than 10.
    lambda   - regularization parameters, the first element is
               the coefficient in front of the contrast term
               and the second element is the coefficient in
               front of the Tikhonov term.
    margins  - a six-element vector specifying margins to take
               around the bounding box of the nuclear coordina-
               tes supplied, to account for the possibility that
               the electron may be located on the periphery.
    box_centre - a three-element vector in Angstrom specifying
                 the centre of the solution box
    box_size   - a three-element vector in Angstrom specifying
                 the size of the solution box
    equation   - 'poisson' to recover the right hand side of the
                  Poisson's equation, 'kuprov' to recover the
                  probability density.
    gpu        - set to 1 to enable GPU processing (much faster)

Outputs

source_cube - source term cube with dimensions ordered as

                  [X Y Z]
    ranges      - Cartesian axis extents for the source cube as
                  [xmin xmax ymin ymax zmin zmax] in Angstroms
    pred_pcs    - pseudocontact shifts produced by the source
                  cube returned in the first parameter
    ls_err      - least squares error in ppm^2
    reg_a       - contrast penalty term
    reg_b       - Tikhonov penalty term the second element is the entropy
                  penalty in the error functional, the third
                  element is the tikhonov penalty in the error
                  functional
Note: for further information on the equations and algorithms used
      in this function see http://dx.doi.org/10.1039/C4CP03106G
gareth.charnock@oerc.ox.ac.uk
ilya.kuprov@weizmann.ac.il
e.suturina@soton.ac.uk

Examples

See the pseudocontact shift analysis tutorial and the examples in nmr_paramag directory of the standard example set supplied with Spinach.

Notes

For further information on the equations and algorithms used in this function see http://dx.doi.org/10.1039/C4CP03106G

See also

ppcs.m, kpcs.m, ippcs.m, ilpcs.m, lpcs.m


Version 1.9, authors: Elizaveta Suturina, Gareth Charnock, Ilya Kuprov

Description

This function implements the three-dimensional paramagnetic centre probability density algorithm described in our forthcoming paper on the subject. The user needs to supply atomic coordinates and pseudocontact shifts. The algorithm uses Tikhonov regularisation. In the argument description below, "source" refers to the probability density of the paramagnetic centre that generates the pseudocontact shift, and "solution" refers to the pseudocontact shift itself.

Returns

source_cube - source term cube with dimensions ordered as

                  [X Y Z].

    ranges      - Cartesian axis extents for the source cube as
                  [xmin xmax ymin ymax zmin zmax] in Angstroms.

    pred_pcs    - pseudocontact shifts produced by the source
                  cube returned in the first parameter.

    err_ls      - least squares penalty of the final source cube

    reg_a       - contrast penalty of the final source cube

    reg_b       - Tikhonov penalty of the final source cube