
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nesgwiki.chem.buffalo.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lmorris</id>
	<title>NESG Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://nesgwiki.chem.buffalo.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lmorris"/>
	<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php/Special:Contributions/Lmorris"/>
	<updated>2026-04-13T03:53:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4097</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4097"/>
		<updated>2012-05-11T17:07:35Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from partial anisotropic averaging of the dipolar interaction which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientation in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from the program REDCAT. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC (RDCmax) for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These alignment parameters are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = RDCmax *&amp;amp;nbsp;Szz/2  &lt;br /&gt;
R = Dr/Da where Dr = 0.5 * (Sxx-Syy) * RDCmax&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset. For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and plus and minus 0.5 is the error associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.5 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create an RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is:&amp;amp;nbsp;&amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. The same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4096</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4096"/>
		<updated>2012-05-11T17:06:51Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from partial anisotropic averaging of the dipolar interaction which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientation in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from the program REDCAT. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC (RDCmax) for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These alignment parameters are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = RDCmax *&amp;amp;nbsp;Szz/2  &lt;br /&gt;
R = Dr/Da where Dr = 0.5 * (Sxx-Syy) * RDCmax&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset. For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and plus and minus 0.5 is the error associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.6 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create an RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is:&amp;amp;nbsp;&amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. The same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4095</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4095"/>
		<updated>2012-05-11T17:01:45Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from partial anisotropic averaging of the dipolar interaction which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientations in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from “REDCAT”. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These absolute alignment tensors are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = Szz/2  &lt;br /&gt;
R=Dr/Da where Dr=0.5*(Sxx-Syy)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset (for example a scalar coupling). For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and 0.6 and 0.5 are the errors associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.6 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is &amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. Same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4094</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4094"/>
		<updated>2012-05-11T17:00:13Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: Undo revision 4093 by Lmorris (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from the anisotropic component of the dipolar interaction, which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientations in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from “REDCAT”. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These absolute alignment tensors are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = Szz/2  &lt;br /&gt;
R=Dr/Da where Dr=0.5*(Sxx-Syy)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset (for example a scalar coupling). For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and 0.6 and 0.5 are the errors associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.6 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is &amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. Same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4093</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4093"/>
		<updated>2012-05-11T16:58:31Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction''' == Residual Dipolar Couplings (RDCs) originate from partial anisotropic averaging of the dipolar interaction which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. Another application of RDCs is identification of the correct monomer orientation in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &amp;lt;br&amp;gt; == '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH''' == === Using XPLOR-NIH === X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; *Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from the program REDCAT. REDCAT gives values for Sxx, Syy and Szz. These values are relative to the maxium RDC (RDCmax) for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These alignment parameters are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = RDCmax *&amp;amp;nbsp;Szz/2  &lt;br /&gt;
R = Dr/Da where Dr = 0.5*(Sxx-Syy) *&amp;amp;nbsp;RDCmax&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset. For RDC data, DFS = 0. *In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &amp;lt;br&amp;gt; *Create an RDC constraint file. An example is shown below where -8.1 is the coupling value with an associated error of plus and minus 0.5:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.5 0.5&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create an RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is:&amp;amp;nbsp;&amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. The same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; *Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt; *Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt; *The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt; === Details for performing RDC refinement in XPLOR/NIH starting from CNS === *Prepare the RDC constraint file as discussed above. *Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) *The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; *The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. *NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. *Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. *The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. *You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. *The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. *These refined structures may then be directly used in CNS if water bath refinement is desired. &amp;lt;br&amp;gt; === Details for performing RDC refinement in XPLOR/NIH using Python Interface === XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The command to run python script is&lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt;&lt;br /&gt;
== '''References''' == [http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Alignment_Media_Preparation&amp;diff=4088</id>
		<title>Alignment Media Preparation</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Alignment_Media_Preparation&amp;diff=4088"/>
		<updated>2012-04-23T17:54:27Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Brief Description  ===&lt;br /&gt;
&lt;br /&gt;
NH RDC are easily acquired and for the purpose of protein structure validation and refinement and the data can be collected on samples labeled only with &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N. Obtaining RDC in two different alignment media greatly improve the quality of refinement and can aid in dimer structure determination; 500ul of a 0.5-0.6mM sample is usually sufficient for this purpose. &lt;br /&gt;
&lt;br /&gt;
=== Data Acquisition to RDC Calculation  ===&lt;br /&gt;
&lt;br /&gt;
Detail description on data acquisition &lt;br /&gt;
&lt;br /&gt;
=== Alignment Media Preparation  ===&lt;br /&gt;
&lt;br /&gt;
==== Isotropic Sample Measurement  ====&lt;br /&gt;
&lt;br /&gt;
The first sample to be observed is an isotropic sample. Dilute one half of the sample by a factor of two as this will give a reference at the concentration of most aligned samples. This can be important in cases of weak dimers. Measure the pH as this will be useful in selecting media later. &lt;br /&gt;
&lt;br /&gt;
==== PEG Biclle  ====&lt;br /&gt;
&lt;br /&gt;
Alignment of the protein sample in PEG(C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;/hexanol). This is used as a first alignement media because it produced primarily steric alignment (useful in dimer geometry predictions), the success rate is high, and it can be doped with other charged detergents to give a second alignment media . &lt;br /&gt;
&lt;br /&gt;
Chemical used for this preparation: &lt;br /&gt;
&lt;br /&gt;
:'''Sigma Aldrich 76437''', Pentaethylene glycol monododecyl ether (C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; PEG) &lt;br /&gt;
:'''Sigma Aldrich H13303''', Hexanol &lt;br /&gt;
:'''Sigma Aldrich 855820''', Cetyltrimethylammonium bromide (CTAB) &lt;br /&gt;
:'''Sigma Aldrich O4003''', Sodium octyl sulfate (SOS) &lt;br /&gt;
:'''Sigma Aldrich 436143''', Sodium dodecyl sulfate (SDS)&lt;br /&gt;
&lt;br /&gt;
The preparation procedure is as follow: &lt;br /&gt;
&lt;br /&gt;
*Mix 50ul of C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; (pentaethylene glycol monododecyl ether) with 200ul of buffer and 50ul of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O by vortexing (REF &amp;lt;ref&amp;gt; Ruckert M and Otting G (2000), JACS, 122, 7793-7797&amp;lt;/ref&amp;gt;). &lt;br /&gt;
*Add approx 16ul of hexanol, in aliquots of 2ul with vortexing after each addition. The solution will go from clear to milky, then to translucent and viscous with lots of bubbles. Continue to add hexanol until the solution goes clear again. If it becomes milky/turbid again, you have gone past the nematic phase. &lt;br /&gt;
*Sample Content:&lt;br /&gt;
&lt;br /&gt;
::155 uL of Protein &lt;br /&gt;
::55 uL of 16% PEG stock solution &lt;br /&gt;
::20 uL of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O &lt;br /&gt;
:::Final PEG concentration is 4.2%.&lt;br /&gt;
&lt;br /&gt;
*Record the &amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;H splitting by running the s2pul expt with tn=lk (for Varian instrument). The range of the splitting should be around ~+/-20Hz.&lt;br /&gt;
&lt;br /&gt;
*PEG can be doped with either cetyltrimethyl ammonium bromide (CTAB) for positively charged proteins or sodium octyl sulphate (SOS) for negatively charged proteins. Charging the medium to be like the protein prevents association and gives higher resolution spectra. A suitable ratio of PEG:CTAB/SOS is ~30:1.&lt;br /&gt;
&lt;br /&gt;
==== Pf1 Phage  ====&lt;br /&gt;
&lt;br /&gt;
Preparation of a Pf1 phage alignment sample is fairly straightforward (REF&amp;lt;ref&amp;gt;Hansen MR, Mueller L, Pardi A (1998), Nat Struct Biol, 5, 1065-1074&amp;lt;/ref&amp;gt;). The protein sample is diluted by the alignment medium. &lt;br /&gt;
&lt;br /&gt;
Chemical used for this preparation: &lt;br /&gt;
&lt;br /&gt;
:'''ASLA Biotech P-50-P''', Pf1 phage 50 mg/mL&lt;br /&gt;
&lt;br /&gt;
The preparation procedure is as follows: &lt;br /&gt;
&lt;br /&gt;
*Start with a protein stock 1-2 mM and a pf1 phage stock of 50 mg/mL. Prepare a sample of 12.5 mg/mL of phage.&lt;br /&gt;
&lt;br /&gt;
*Sample Content:&lt;br /&gt;
&lt;br /&gt;
::155 uL of Protein &lt;br /&gt;
::55 uL of Pf1 phage &lt;br /&gt;
::20 uL of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O &lt;br /&gt;
:::Final phage concentration is 12.5 mg/mL&lt;br /&gt;
&lt;br /&gt;
*Record the &amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;H splitting by running the s2pul expt with tn=lk (for Varian instrument). The range of the splitting should be around ~+/-8~10 Hz.&lt;br /&gt;
&lt;br /&gt;
==== Polyacrylamide Gel (Compressed and Stretched)  ====&lt;br /&gt;
&lt;br /&gt;
Chemicals used in preparing this alignment medium can are: &lt;br /&gt;
&lt;br /&gt;
:'''Bio-Rad 161-0144''', 40%Acrylamide/Bis solution 19:1 &lt;br /&gt;
:'''Bio-Rad 161-0733''', 10X TBE &lt;br /&gt;
:'''Bio-Rad 161-0700''', APS &lt;br /&gt;
:'''Bio-Rad 161-0800''', TEMED &lt;br /&gt;
:'''Sigma Aldrich M7279-25G''', N,N'-methylenebisacrylamide (BIS) &lt;br /&gt;
:'''Sigma Aldrich 448281''', (3-Acrylamidopropyl)trimethylammonium chloride solution &lt;br /&gt;
:'''Sigma Aldrich 282731''', 2-Acrylamido-2-methyl-1-propanesulfonic acid&lt;br /&gt;
&lt;br /&gt;
===== Compressed Gels - Positive, Negative and Neutral  =====&lt;br /&gt;
&lt;br /&gt;
*Mix stock solutions of 40% acrylamide and N,N'-methylenebisacrylamide in a 19:1 ratio with 40% charged acrylate derivatives containing N,N'-methylenebisacrylamide as desired in a 19:1 ratio.&lt;br /&gt;
&lt;br /&gt;
*Dilute the mixtures 10x with TBE buffer (0.9 M TRIS, 0.9 M borate, 0.02 M EDTA, pH 8.2) to a final 7% concentration.&lt;br /&gt;
&lt;br /&gt;
*Polymerization is initiated by the addition of 0.15% ammoniumperoxide sulfate and 1% tetramethylethylenediamine (TEMED).&lt;br /&gt;
&lt;br /&gt;
*To introduce negative charges, use acrylic acid or 2-acrylamido-2-methyl-1-propanesulfonic acid. Positive charge can be introduced by addition of (3-acrylamidopropyl)-trimethylammonium chloride (APTMAC) or N-(2-acryloamidoethyl) triethylammonium iodide. For neutral gels omit the charged species; for zwitterionic gels use equivalent amounts of acrylic acid and APTMAC. For 50% charged gels use 50% content of the charged specie and 50% acrylamide.&lt;br /&gt;
&lt;br /&gt;
*Add 130ul of the mixture to plastic tubes with a 3.2 mm inner diameter and keep them overnight allowing polymerization to occur.&lt;br /&gt;
&lt;br /&gt;
*Wash the polymerized gels extensively in deionized water (three cycles over a period of 2 days). The gels will increase in size due to electro osmotic swelling.&lt;br /&gt;
&lt;br /&gt;
*Dry the gels over a 2 day period at room temperature on a teflon pan.&lt;br /&gt;
&lt;br /&gt;
=== References  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; Updated by Hsiau-Wei Lee, 2011&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Alignment_Media_Preparation&amp;diff=4087</id>
		<title>Alignment Media Preparation</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Alignment_Media_Preparation&amp;diff=4087"/>
		<updated>2012-04-23T17:53:15Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Brief Description ===&lt;br /&gt;
&lt;br /&gt;
NH RDC are easily acquired and for the purpose of protein structure validation and refinement and the data can be collected on samples labeled only with &amp;lt;sup&amp;gt;15&amp;lt;/sup&amp;gt;N. Obtaining RDC in two different alignment media greatly improve the quality of refinement and can aid in dimer structure determination; 500ul of a 0.5-0.6mM sample is usually sufficient for this purpose. &lt;br /&gt;
&lt;br /&gt;
=== Data Acquisition to RDC Calculation  ===&lt;br /&gt;
&lt;br /&gt;
Detail description on data acquisition &lt;br /&gt;
&lt;br /&gt;
=== Alignment Media Preparation  ===&lt;br /&gt;
&lt;br /&gt;
==== Isotropic Sample Measurement  ====&lt;br /&gt;
&lt;br /&gt;
The first sample to be observed is an isotropic sample. Dilute one half of the sample by a factor of two as this will give a reference at the concentration of most aligned samples. This can be important in cases of weak dimers. Measure the pH as this will be useful in selecting media later. &lt;br /&gt;
&lt;br /&gt;
==== PEG Biclle  ====&lt;br /&gt;
&lt;br /&gt;
Alignment of the protein sample in PEG(C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;/hexanol). This is used as a first alignement media because it produced primarily steric alignment (useful in dimer geometry predictions), the success rate is high, and it can be doped with other charged detergents to give a second alignment media . &lt;br /&gt;
&lt;br /&gt;
Chemical used for this preparation: &lt;br /&gt;
&lt;br /&gt;
:'''Sigma Aldrich 76437''', Pentaethylene glycol monododecyl ether (C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; PEG) &lt;br /&gt;
:'''Sigma Aldrich H13303''', Hexanol &lt;br /&gt;
:'''Sigma Aldrich 855820''', Cetyltrimethylammonium bromide (CTAB) &lt;br /&gt;
:'''Sigma Aldrich O4003''', Sodium octyl sulfate (SOS) &lt;br /&gt;
:'''Sigma Aldrich 436143''', Sodium dodecyl sulfate (SDS)&lt;br /&gt;
&lt;br /&gt;
The preparation procedure is as follow: &lt;br /&gt;
&lt;br /&gt;
*Mix 50ul of C&amp;lt;sub&amp;gt;12&amp;lt;/sub&amp;gt;E&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; (pentaethylene glycol monododecyl ether) with 200ul of buffer and 50ul of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O by vortexing (REF &amp;lt;ref&amp;gt; Ruckert M and Otting G (2000), JACS, 122, 7793-7797&amp;lt;/ref&amp;gt;). &lt;br /&gt;
*Add approx 16ul of hexanol, in aliquots of 2ul with vortexing after each addition. The solution will go from clear to milky, then to translucent and viscous with lots of bubbles. Continue to add hexanol until the solution goes clear again. If it becomes milky/turbid again, you have gone past the nematic phase. &lt;br /&gt;
*Sample Content:&lt;br /&gt;
&lt;br /&gt;
::155 uL of Protein &lt;br /&gt;
::55 uL of 16% PEG stock solution &lt;br /&gt;
::20 uL of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O &lt;br /&gt;
:::Final PEG concentration is 4.2%.&lt;br /&gt;
&lt;br /&gt;
*Record the &amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;H splitting by running the s2pul expt with tn=lk (for Varian instrument). The range of the splitting should be around ~+/-20Hz.&lt;br /&gt;
&lt;br /&gt;
*PEG can be doped with either cetyltrimethyl ammonium bromide (CTAB) for positively charged proteins or sodium octyl sulphate (SOS) for negatively charged proteins. Charging the medium to be like the protein prevents association and gives higher resolution spectra. A suitable ratio of PEG:CTAB/SOS is ~30:1.&lt;br /&gt;
&lt;br /&gt;
==== Pf1 Phage  ====&lt;br /&gt;
&lt;br /&gt;
Preparation of a Pf1 phage alignment sample is fairly straightforward (REF&amp;lt;ref&amp;gt;Hansen MR, Mueller L, Pardi A (1998), Nat Struct Biol, 5, 1065-1074&amp;lt;/ref&amp;gt;). The protein sample is diluted by the alignment medium. &lt;br /&gt;
&lt;br /&gt;
Chemical used for this preparation: &lt;br /&gt;
&lt;br /&gt;
:'''ASLA Biotech P-50-P''', Pf1 phage 50 mg/mL&lt;br /&gt;
&lt;br /&gt;
The preparation procedure is as follows: &lt;br /&gt;
&lt;br /&gt;
*Start with a protein stock 1-2 mM and a pf1 phage stock of 50 mg/mL. Prepare a sample of 12.5 mg/mL of phage.&lt;br /&gt;
&lt;br /&gt;
*Sample Content:&lt;br /&gt;
&lt;br /&gt;
::155 uL of Protein &lt;br /&gt;
::55 uL of Pf1 phage &lt;br /&gt;
::20 uL of D&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O &lt;br /&gt;
:::Final phage concentration is 12.5 mg/mL&lt;br /&gt;
&lt;br /&gt;
*Record the &amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;H splitting by running the s2pul expt with tn=lk (for Varian instrument). The range of the splitting should be around ~+/-8~10 Hz.&lt;br /&gt;
&lt;br /&gt;
==== Polyacrylamide Gel (Compress and Stretch)  ====&lt;br /&gt;
&lt;br /&gt;
Chemicals used in preparing this alignment medium can are: &lt;br /&gt;
&lt;br /&gt;
:'''Bio-Rad 161-0144''', 40%Acrylamide/Bis solution 19:1 &lt;br /&gt;
:'''Bio-Rad 161-0733''', 10X TBE &lt;br /&gt;
:'''Bio-Rad 161-0700''', APS &lt;br /&gt;
:'''Bio-Rad 161-0800''', TEMED &lt;br /&gt;
:'''Sigma Aldrich M7279-25G''', N,N'-methylenebisacrylamide (BIS) &lt;br /&gt;
:'''Sigma Aldrich 448281''', (3-Acrylamidopropyl)trimethylammonium chloride solution &lt;br /&gt;
:'''Sigma Aldrich 282731''', 2-Acrylamido-2-methyl-1-propanesulfonic acid&lt;br /&gt;
&lt;br /&gt;
===== Compressed Gels can be made Positive, Negative and Neutral  =====&lt;br /&gt;
&lt;br /&gt;
*Mix stock solutions of 40% acrylamide and N,N'-methylenebisacrylamide in a 19:1 ratio with 40% charged acrylate derivatives containing N,N'-methylenebisacrylamide as desired in a 19:1 ratio.&lt;br /&gt;
&lt;br /&gt;
*Dilute the mixtures 10x with TBE buffer (0.9 M TRIS, 0.9 M borate, 0.02 M EDTA, pH 8.2) to a final 7% concentration.&lt;br /&gt;
&lt;br /&gt;
*Polymerization is initiated by the addition of 0.15% ammoniumperoxide sulfate and 1% tetramethylethylenediamine (TEMED).&lt;br /&gt;
&lt;br /&gt;
*To introduce negative charges, use acrylic acid or 2-acrylamido-2-methyl-1-propanesulfonic acid. Positive charge can be introduced by addition of (3-acrylamidopropyl)-trimethylammonium chloride (APTMAC) or N-(2-acryloamidoethyl) triethylammonium iodide. For neutral gels omit the charged species; for zwitterionic gels use equivalent amounts of acrylic acid and APTMAC. For 50% charged gels use 50% content of the charged specie and 50% acrylamide.&lt;br /&gt;
&lt;br /&gt;
*Add 130ul of the mixture to plastic tubes with a 3.2 mm inner diameter and keep them overnight allowing polymerization to occur.&lt;br /&gt;
&lt;br /&gt;
*Wash the polymerized gels extensively in deionized water (three cycles over a period of 2 days). The gels will increase in size due to electro osmotic swelling.&lt;br /&gt;
&lt;br /&gt;
*Dry the gels over a 2 day period at room temperature on a teflon pan.&lt;br /&gt;
&lt;br /&gt;
=== References  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; Updated by Hsiau-Wei Lee, 2011&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4001</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4001"/>
		<updated>2012-02-21T17:21:27Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: Undo revision 4000 by Lmorris (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from the anisotropic component of the dipolar interaction, which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientations in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from “REDCAT”. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These absolute alignment tensors are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = Szz/2  &lt;br /&gt;
R=Dr/Da where Dr=0.5*(Sxx-Syy)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset (for example a scalar coupling). For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and 0.6 and 0.5 are the errors associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.6 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is &amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. Same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
	<entry>
		<id>https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4000</id>
		<title>Residual Dipolar Couplings in Structure Refinement</title>
		<link rel="alternate" type="text/html" href="https://nesgwiki.chem.buffalo.edu/index.php?title=Residual_Dipolar_Couplings_in_Structure_Refinement&amp;diff=4000"/>
		<updated>2012-02-21T17:20:49Z</updated>

		<summary type="html">&lt;p&gt;Lmorris: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''Introduction'''  ==&lt;br /&gt;
&lt;br /&gt;
Residual Dipolar Couplings (RDCs) originate from the anisotropic component of the dipolar interaction, which is dependent on the angle between an internuclear vector and the magnetic field. When a molecule sample orientations uniformly, as it does in normal solution NMR, RDCs average to zero and are not observable. However, if a molecule is dissolved in a dilute liquid crystalline medium it becomes partially aligned, and the dipolar couplings are not completely averaged to zero, leading to a small contribution to the splittings of NMR signals. The angular dependence of these contributions can provide valuable structural information. Protein structures can be validated using RDCs, and structures can be refined to improve quality. &lt;br /&gt;
&lt;br /&gt;
Another application of RDCs is identification of the correct monomer orientations in homodimers. This application requires RDCs from two or more alignment media that give different orientations of principal alignment axes. &lt;br /&gt;
&lt;br /&gt;
Below are protocols for the refinement of protein structures with RDCs using XPLOR-NIH [1]. 2 3 4&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== '''RDC&amp;amp;nbsp;Refinement Using XPLOR-NIH'''  ==&lt;br /&gt;
&lt;br /&gt;
=== Using XPLOR-NIH  ===&lt;br /&gt;
&lt;br /&gt;
X-PLOR can be downloaded from [http://nmr.cit.nih.gov/xplor-nih/ http://nmr.cit.nih.gov/xplor-nih/]. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Obtain a good estimate of the magnitude of Da and R from the alignment tensors. The alignment tensors can be obtained either from the extremes of distribution of RDCs (which forms a histogram) or from “REDCAT”. REDCAT gives values for Sxx, Syy and Szz. These values are relateive to the maxium RDC for that bond type. First, multiply these values from REDCAT by the associated maxium RDC value (for example 24350 for NH dipolar couplings). These absolute alignment tensors are related to Da and R as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;Da = Szz/2  &lt;br /&gt;
R=Dr/Da where Dr=0.5*(Sxx-Syy)&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
*Note that the sani constraint in XPLOR and or CNS requires three coefficients: DFS, Da and R. DFS is a fixed offset (for example a scalar coupling). For RDC data, DFS = 0. &lt;br /&gt;
*In XPLOR define the axis representing the alignment tensor coordinate system. The coordinate system is represented by four pseudo atoms: OO(origin), X ,Y and Z. The coordinate system has to be positioned far away to prevent any interaction with the protein. For more than one aligned media, define separate axes for each medium. These axes can either be defined at the end of the pdb file or as a separate .pdb file. Shown below is an example from the pdb:&lt;br /&gt;
&amp;lt;pre&amp;gt;ATOM    608  X   ANI   500      33.000  30.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    609  Y   ANI   500      30.000  33.000  30.000  1.00  0.00&lt;br /&gt;
ATOM    610  Z   ANI   500      30.000  30.000  33.000  1.00  0.00&lt;br /&gt;
ATOM    611  OO  ANI   500      30.000  30.000  30.000  1.00  0.00&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
You can also create a separate, standalone pdb file ('axis.pdb') with only one residue starting with ATOM 1. This separate pdb file can then be read in XPLOR or CNS as an additional coordinate file using the &amp;lt;tt&amp;gt;coor&amp;lt;/tt&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Create an RDC constraint file. An example is shown below where -8.1 is the coupling value and 0.6 and 0.5 are the errors associated with it:&lt;br /&gt;
&amp;lt;pre&amp;gt;assign ( resid 500 and name OO )&lt;br /&gt;
         ( resid 500 and name Z )&lt;br /&gt;
         ( resid 500 and name X )&lt;br /&gt;
         ( resid 500 and name Y )&lt;br /&gt;
         ( resid 1 and name HN )&lt;br /&gt;
         ( resid 1 and name N ) -8.1 0.6 0.5&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following perl script ('makeRdcAssign.pm') can be used to create RDC constraint file ('myprotRdc.tbl'). The input to the script is coupling values as one column text file (same as used in REDCAT to import rdcs). Usage for this script is &amp;lt;tt&amp;gt;makeRdcAssign.pm myprot.rdc myprotRdc.tbl startingResidue Err1 Err2&amp;lt;/tt&amp;gt;. Same script can be used for CNS, the only change is to make a tbl file with only one error Err1.&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/usr/bin/perl&lt;br /&gt;
if($ARGC &amp;amp;lt; 3 ) {&lt;br /&gt;
    print &amp;quot;Usage: makeRDCAssign.pm infile outfile startingResidue# &amp;amp;lt;err1&amp;amp;gt; &amp;amp;lt;err2&amp;amp;gt; \n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
$fileIn = $ARGV[0];&lt;br /&gt;
$fileOut = $ARGV[1];&lt;br /&gt;
$startRes = $ARGV[2];&lt;br /&gt;
$rdcE1 = 0.6;&lt;br /&gt;
$rdcE2 = 0.5;&lt;br /&gt;
$useE2 = 0;&lt;br /&gt;
&lt;br /&gt;
if ($ARGV[3] ){&lt;br /&gt;
   $rdcE1 = $ARGV[3];&lt;br /&gt;
}&lt;br /&gt;
if ($ARGV[4] ){&lt;br /&gt;
   $rdcE2 = $ARGV[4];&lt;br /&gt;
   $useE2 = 1;&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_IN, $fileIn)) {&lt;br /&gt;
        die(&amp;quot;could not open input file $fileIn \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
unless( open(RDC_OUT, &amp;quot;&amp;amp;gt;$fileOut&amp;quot;)) {&lt;br /&gt;
        die(&amp;quot;could not open outpu file $fileOut \n&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
        $thisRes = $startRes;&lt;br /&gt;
while ($thisLine = &amp;amp;lt;RDC_IN&amp;amp;gt; ) {&lt;br /&gt;
        @parts = split(/\s+/,$thisLine );  # split by spaces&lt;br /&gt;
        $thisRDC = $parts[0];&lt;br /&gt;
        print(&amp;quot;residue $thisRes, rdc $thisRDC \n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        # if the rdc is  valid, write to the tbl file&lt;br /&gt;
        if ($thisRDC &amp;amp;lt; 999 ) {&lt;br /&gt;
            print RDC_OUT &amp;quot;assign ( resid 500 and name OO ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Z ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name X ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid 500 and name Y ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name HN ) \n&amp;quot;;&lt;br /&gt;
            print RDC_OUT &amp;quot;           ( resid $thisRes and name N )  &amp;quot;;&lt;br /&gt;
           if ($useE2 &amp;amp;gt; 0 ) {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  $rdcE2 \n\n&amp;quot;;&lt;br /&gt;
            } else {&lt;br /&gt;
                print RDC_OUT &amp;quot; $thisRDC  $rdcE1  \n\n&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        $thisRes = $thisRes + 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Do not include all the RDCs for refinement. Leave 15-20% of the RDCs for validation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Set the Xplor-NIH input file for dipolar coupling refinement. The RDC restraint is known as sani (susceptibility anisotropy). Define the force constant, ksani for each media and for each type of couplings.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The refined structure can be validated with the RDCs that are not used in refinement. From the refined structure RDCs can be back calculated (using REDCAT) and plotted against the experimental RDCs.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH starting from CNS  ===&lt;br /&gt;
&lt;br /&gt;
*Prepare the RDC constraint file as discussed above. &lt;br /&gt;
*Prepare noe and dihedral angle constraint files as for CNS (&amp;quot;aco.tbl&amp;quot;, noe.tbl&amp;quot;) &lt;br /&gt;
*The nomenclature and thus the topology of methyl groups in XPLOR is NOT the same as for CNS. You must rebuild each of your CNS pdb files into XPLOR format using the script &amp;lt;tt&amp;gt;generate1.inp&amp;lt;/tt&amp;gt;. Edit the script and replace &amp;lt;tt&amp;gt;myprot&amp;lt;/tt&amp;gt; with the appropriate prefix for your protein. generate.inp will also generate a structure file (&amp;quot;myprot.psf&amp;quot;) for use with XPLOR.&amp;lt;br&amp;gt; &lt;br /&gt;
*The script &amp;quot;doi&amp;quot; will repeatedly run generate1.inp, iterating over all of your input structures. &lt;br /&gt;
*NOTE: generate1.inp does not like atoms OT1 and OT2 on the C terminal. Get rid of one and replace the other with O, make sure you preserve the exact column alignment in the pdb file. &lt;br /&gt;
*Refinment with RDCs sets anglular constraints relative to a virtual &amp;quot;axis&amp;quot; residue. You must also have a copy of the axis residue pdb file (&amp;quot;axis.pdb&amp;quot;) in the local directory. &lt;br /&gt;
*The script refine_rdc_myprot.inp can be used to run the refinement including RDC constraints. &lt;br /&gt;
*You must edit the script to provide the correct names for your noe, dihedral and rdc input files xxx.tbl, you must also edit the coefficients for the NH sani constraints to put in your Da and Rhombicity as calculated above. &lt;br /&gt;
*The script &amp;quot;dos&amp;quot; will repeatedly run refine_rdc_myprot.inp, iterating over all of your input structures and creating refined structures. &lt;br /&gt;
*These refined structures may then be directly used in CNS if water bath refinement is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Details for performing RDC refinement in XPLOR/NIH using Python Interface  ===&lt;br /&gt;
&lt;br /&gt;
XPLOR-NIH can be used by python interface. It does offer many conveniences over the old XPLOR script interface, for instance, no longer there is need to setup the .psf file for the alignment tensor and the value of Da and R don't have to be fixed. The details for the usage can be found on the tutorial attached. With the new version of XPLOR-NIH refine.py script can be found in the eginput directory. The script can be modified based on the number of media, values of Da and R. Below is the sani part of the script for the refrence.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# orientation Tensor - used with the dipolar coupling term&lt;br /&gt;
#  one for each medium&lt;br /&gt;
#   For each medium, specify a name, and initial values of Da, Rh.&lt;br /&gt;
#&lt;br /&gt;
from varTensorTools import create_VarTensor&lt;br /&gt;
media={}&lt;br /&gt;
#                        medium  Da   rhombicity&lt;br /&gt;
for (medium,Da,Rh) in [ ('t',   -6.5, 0.62),&lt;br /&gt;
                        ('b',   -9.9, 0.23) ]:&lt;br /&gt;
    oTensor = create_VarTensor(medium)&lt;br /&gt;
    oTensor.setDa(Da)&lt;br /&gt;
    oTensor.setRh(Rh)&lt;br /&gt;
    media[medium] = oTensor&lt;br /&gt;
    pass&lt;br /&gt;
# dipolar coupling restraints for protein amide NH.  &lt;br /&gt;
# collect all RDCs in the rdcs PotList&lt;br /&gt;
# RDC scaling. Three possible contributions.&lt;br /&gt;
#   1) gamma_A * gamma_B / r_AB^3 prefactor. So that the same Da can be used&lt;br /&gt;
#      for different expts. in the same medium. Sometimes the data is&lt;br /&gt;
#      prescaled so that this is not needed. scale_toNH() is used for this.&lt;br /&gt;
#      Note that if the expt. data has been prescaled, the values for rdc rmsd&lt;br /&gt;
#      reported in the output will relative to the scaled values- not the expt.&lt;br /&gt;
#      values.&lt;br /&gt;
#   2) expt. error scaling. Used here. A scale factor equal to 1/err^2&lt;br /&gt;
#      (relative to that for NH) is used.&lt;br /&gt;
#   3) sometimes the reciprocal of the Da^2 is used if there is a large&lt;br /&gt;
#      spread in Da values. Not used here.&lt;br /&gt;
#&lt;br /&gt;
from rdcPotTools import create_RDCPot, scale_toNH&lt;br /&gt;
rdcs = PotList('rdc') &lt;br /&gt;
for (medium,expt,file,                 scale) in \&lt;br /&gt;
    [('t','NH' ,'tmv107_nh.tbl'       ,1),&lt;br /&gt;
     ('t','NCO','tmv107_nc.tbl'       ,.05),&lt;br /&gt;
     ('t','HNC','tmv107_hnc.tbl'      ,.108),&lt;br /&gt;
     ('b','NH' ,'bicelles_new_nh.tbl' ,1),&lt;br /&gt;
     ('b','NCO','bicelles_new_nc.tbl' ,.05),&lt;br /&gt;
     ('b','HNC','bicelles_new_hnc.tbl',.108)&lt;br /&gt;
     ]:&lt;br /&gt;
    rdc = create_RDCPot(&amp;quot;%s_%s&amp;quot;%(medium,expt),file,media[medium])&lt;br /&gt;
&lt;br /&gt;
    #1) scale prefactor relative to NH&lt;br /&gt;
    #   see python/rdcPotTools.py for exact calculation&lt;br /&gt;
    # scale_toNH(rdc) - not needed for these datasets -&lt;br /&gt;
    #                        but non-NH reported rmsd values will be wrong.&lt;br /&gt;
&lt;br /&gt;
    #3) Da rescaling factor (separate multiplicative factor)&lt;br /&gt;
    # scale *= ( 9.9 / rdcs[name].oTensor.Da(0) )**2&lt;br /&gt;
    rdc.setScale(scale)&lt;br /&gt;
    rdc.setShowAllRestraints(1) #all restraints are printed during analysis&lt;br /&gt;
    rdc.setThreshold(1.5)       # in Hz&lt;br /&gt;
    rdcs.append(rdc)&lt;br /&gt;
    pass&lt;br /&gt;
potList.append(rdcs)&lt;br /&gt;
rampedParams.append( MultRamp(0.05,5.0, &amp;quot;rdcs.setScale( VALUE )&amp;quot;) )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The command to run python script is &lt;br /&gt;
&amp;lt;pre&amp;gt;xplor -py refine.py &amp;lt;/pre&amp;gt; &lt;br /&gt;
== '''References'''  ==&lt;br /&gt;
&lt;br /&gt;
[http://www.ncbi.nlm.nih.gov/pubmed/12565051?itool=EntrezSystem2.PEntrez.Pubmed.Pubmed_ResultsPanel.Pubmed_RVDocSum&amp;amp;ordinalpos=3 1.&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; Schwieters, C.D., Kuszewski, J.J., Tjandra, N. and Clore, G.M.&amp;amp;nbsp; (2003) The Xplor-NIH NMR molecular structure determination package.&amp;amp;nbsp; ''J. Magn. Res. 160'', 65-73.] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmorris</name></author>
	</entry>
</feed>