Difference between revisions of "Ipcs.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Solves the inverse problem for pseudocontact shift by recovering the source term in the Kuprov equation using Tikhonov + maximum entropy regularization procedure. Syntax: ...")
 
Line 1: Line 1:
−
Solves the inverse problem for pseudocontact shift by recovering the
+
3D reconstruction of paramagnetic centre probability density from PCS data using Kuprov-Charnock equation (http://dx.doi.org/10.1039/C4CP03106G).
−
source term in the Kuprov equation using Tikhonov + maximum entropy
 
−
regularization procedure. Syntax:
 
  
−
    [source_cube,ranges,pred_pcs,diag_data]=...
+
==Syntax==
−
                  ipcs(nxyz,expt_pcs,chi,npoints,lambda,margins)
 
  
−
Parameters:
+
    [source_cube,ranges,pred_pcs,diag_data]=ipcs(parameters,npoints,lambda)
  
−
    nxyz    - nuclear coordinates as [x y z] with multiple rows
+
==Description==
−
                at which PCS has been measured, in Angstroms.
+
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.
  
−
     expt_pcs - pseudocontact shift in ppm at each nucleus.
+
==Arguments== 
 +
 
 +
     parameters.xyz      - nuclear coordinates as [x y z] with multiple rows
 +
                          at which PCS has been measured, in Angstroms.
 +
 
 +
    parameters.xyz_all  - atomic coordinates as [x y z] with multiple rows
 +
                          for all atoms in the structure, in Angstroms.
 +
 +
    parameters.expt_pcs - pseudocontact shift in ppm at each nucleus.
 +
 +
    parameters.chi      - effective magnetic susceptibility tensor, in units
 +
                          of Angstrom^3.
 +
 +
    parameters.margins  - a six-element vector specifying margins to take
 +
                          around the bounding box of the nuclear coordina-
 +
                          tes supplied, to eliminate the effects of the
 +
                          periodic boundary conditions.
 +
 
 +
    parameters.box_cent - Cartesian coordinates of the centre of the solu-
 +
                          tion box, in Angstrom
 +
 
 +
    parameters.box_size - size of the source box in X, Y, and Z directi-
 +
                          ons, in Angstrom
 +
 
 +
    parameters.plot    - a cell array of strings specifying the plotting
 +
                          options at each iteration:
 +
                           
 +
                            'diagnostics' - diagnostic output
 +
 
 +
                            'density'    - probability density
 +
 +
                            'molecule'    - molecular structure
 +
 
 +
                            'tightzoom'  - zooms the plot to the
 +
                                            molecular bounding box
 +
 
 +
                            'box'        - source box
  
−
    chi      - electron magnetic susceptibility tensor, in units
 
−
                of Angstrom^3.
 
  
 
     npoints  - number of points in each dimension of the source
 
     npoints  - number of points in each dimension of the source
Line 23: Line 54:
 
                 term and the second element is the coefficient in
 
                 term and the second element is the coefficient in
 
                 front of the Tikhonov term.
 
                 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.
 
  
 
Outputs:
 
Outputs:

Revision as of 16:23, 1 January 2017

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,diag_data]=ipcs(parameters,npoints,lambda)

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.

Arguments

    parameters.xyz      - nuclear coordinates as [x y z] with multiple rows 
                          at which PCS has been measured, in Angstroms.
    parameters.xyz_all  - atomic coordinates as [x y z] with multiple rows 
                          for all atoms in the structure, in Angstroms.

    parameters.expt_pcs - pseudocontact shift in ppm at each nucleus.

    parameters.chi      - effective magnetic susceptibility tensor, in units
                          of Angstrom^3.

    parameters.margins  - a six-element vector specifying margins to take
                          around the bounding box of the nuclear coordina-
                          tes supplied, to eliminate the effects of the 
                          periodic boundary conditions.
    parameters.box_cent - Cartesian coordinates of the centre of the solu-
                          tion box, in Angstrom
    parameters.box_size - size of the source box in X, Y, and Z directi-
                          ons, in Angstrom
    parameters.plot     - a cell array of strings specifying the plotting
                          options at each iteration:
                            
                            'diagnostics' - diagnostic output
                            'density'     - probability density

                            'molecule'    - molecular structure
                            'tightzoom'   - zooms the plot to the
                                            molecular bounding box
                            'box'         - source box


    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 maximum entropy
               term and the second element is the coefficient in
               front of the Tikhonov term.

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.
    diag_data   - the first element is the least squares error
                  in ppm^2, 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