Difference between revisions of "Ilpcs.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Fit experimental PCS using the non-point approximation Parameters: nxyz - nuclear coordinates as [x y z] with multiple rows, at which PCS is to ...")
 
(sync with Spinach main 3975f139: ranks start with 0)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
Fit experimental PCS using the non-point approximation
+
{{DISPLAYTITLE:ilpcs.m}} __NOTOC__
 +
Fits experimental PCS data using the distributed paramagnetic centre model described in http://dx.doi.org/10.1039/c6cp05437d
  
−
Parameters:
+
==Syntax==
  
−
    nxyz      - nuclear coordinates as [x y z] with multiple rows,
+
      [mxyz,chi,Ilm,pred_pcs,s_mxyz,s_chi,s_Ilm]=ilpcs(nxyz,expt_pcs,ranks,mguess)
−
                at which PCS is to be evaluated, in Angstroms.
 
  
−
    expt_pcs  - experimental pseudocontact shift (in ppm) 
+
==Parameters==
  
−
    L        - row of ranks of spherical harmonics of the density
+
      nxyz  - nuclear coordinates as [x y z] with multiple rows,
−
                the nuclei.
+
              at which PCS is to be evaluated, in Angstroms.
 +
 +
  expt_pcs  - a column vector of experimental pseudocontact shifts
 +
              in ppm 
 +
 +
      ranks - row of multipole expansion ranks to be used in the
 +
              fitting procedure, starting with 0; the rank 0 moment
 +
              is fixed by normalisation and is not fitted
 +
 +
    mguess - guess value for the paramagnetic centre position,
 +
              a three-element vector in Angstrom
 +
           
 +
==Outputs==
  
−
Output:
+
    mxyz  - optimized paramagnetic centre coordinates as [x y z],
 +
              in Angstroms.
 +
 +
    chi    - optimized magnetic susceptibility tensor in cubic
 +
              Angstroms.
 +
 +
    Ilm    - {[],[]} cell array of numbers corresponding to the multipole
 +
              moments defined in the paper cited above:
 +
 +
                for L=0,  Ilm=N/2/sqrt(pi)
 +
 +
                for L=1,  Ilm=[real(I11) I10 imag(I11)]
 +
 +
                for L=2,  Ilm=[real(I22) real(I21) I20 imag(I21) imag(I22)]
 +
 +
              et cetera.
 +
 +
  pred_pcs  - predicted pseudocontact shift (in ppm) at each of
 +
              the nuclei.
 +
 +
    chi    - optimized magnetic susceptibility tensor in cubic
 +
              Angstroms.
 +
 +
    s_mxyz - standard deviations of paramagnetic centre
 +
              coordinates as [x y z], in Angstroms.
 +
 +
    s_chi  - standard deviations of magnetic susceptibility
 +
              tensor elements in cubic Angstroms.
 +
 +
    s_Ilm  - standard deviations of the multipole moments, arranged in
 +
              the same order as the moments themselves.
  
−
    mxyz      - paramagnetic centre coordinates as [x y z], in
+
==Examples==
−
                Angstroms.
+
See the paramagnetic shift [[Pseudocontact_shift_analysis|getting started guide]].
−
    Ilm      - {[],[]} cell array of numbers corresponding to the multipole
 
−
                moments:
 
−
                Int(rho(r,theta,phi)Ylm(theta,phi)r^(l+2)sin(theta)d^3r)
 
−
                for L=0 Ilm=N/2/sqrt(pi)
 
−
                for L=1 Ilm=[real(I11) I10 imag(I11)]
 
−
                for L=2 Ilm=[real(I22) real(I21) I20 imag(I21) imag(I22)]
 
  
−
    chi      - susceptibility tensor in SI Angstrom^3
+
==Notes==
 +
# A good initial guess for the paramagnetic centre location is essential for a successful fit.
 +
# Standard derviations are expensive, do not request unless you need them.
  
−
    pred_pcs  - predicted pseudocontact shift (in ppm) at each of
+
==See also==
−
                the nuclei.
+
[[lpcs.m]], [[kpcs.m]], [[ipcs.m]], [[hfc2pcs.m]], [[hfc2pms.m]], [[pcs2chi.m]], [[pms2chi.m]], [[ippcs.m]], [[Hyperfine_shift_module]]
 +
 
 +
''Version 2.2, authors: [[Elizaveta Suturina]], [[Ilya Kuprov]]''

Latest revision as of 09:58, 18 September 2026

Fits experimental PCS data using the distributed paramagnetic centre model described in http://dx.doi.org/10.1039/c6cp05437d

Syntax

     [mxyz,chi,Ilm,pred_pcs,s_mxyz,s_chi,s_Ilm]=ilpcs(nxyz,expt_pcs,ranks,mguess)

Parameters

     nxyz  - nuclear coordinates as [x y z] with multiple rows,
             at which PCS is to be evaluated, in Angstroms.

 expt_pcs  - a column vector of experimental pseudocontact shifts
             in ppm  

     ranks - row of multipole expansion ranks to be used in the
             fitting procedure, starting with 0; the rank 0 moment
             is fixed by normalisation and is not fitted

    mguess - guess value for the paramagnetic centre position,
             a three-element vector in Angstrom
           

Outputs

    mxyz   - optimized paramagnetic centre coordinates as [x y z],
             in Angstroms.

    chi    - optimized magnetic susceptibility tensor in cubic
             Angstroms.

    Ilm    - {[],[]} cell array of numbers corresponding to the multipole
             moments defined in the paper cited above:

               for L=0,  Ilm=N/2/sqrt(pi)

               for L=1,  Ilm=[real(I11) I10 imag(I11)]

               for L=2,  Ilm=[real(I22) real(I21) I20 imag(I21) imag(I22)]

             et cetera.

 pred_pcs  - predicted pseudocontact shift (in ppm) at each of 
             the nuclei.

    chi    - optimized magnetic susceptibility tensor in cubic
             Angstroms.

    s_mxyz - standard deviations of paramagnetic centre 
             coordinates as [x y z], in Angstroms.

    s_chi  - standard deviations of magnetic susceptibility 
             tensor elements in cubic Angstroms.

    s_Ilm  - standard deviations of the multipole moments, arranged in 
             the same order as the moments themselves.

Examples

See the paramagnetic shift getting started guide.

Notes

  1. A good initial guess for the paramagnetic centre location is essential for a successful fit.
  2. Standard derviations are expensive, do not request unless you need them.

See also

lpcs.m, kpcs.m, ipcs.m, hfc2pcs.m, hfc2pms.m, pcs2chi.m, pms2chi.m, ippcs.m, Hyperfine_shift_module

Version 2.2, authors: Elizaveta Suturina, Ilya Kuprov