Skip to content

Commit 94a8ddd

Browse files
update help files
1 parent b0e5670 commit 94a8ddd

File tree

4 files changed

+112
-47
lines changed

4 files changed

+112
-47
lines changed

GSASII/help/anchorIndex.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
applicationwindow.html: Data_tree, Data_frame, Data_Frame, Plots, Console
22
cluster.html: Cluster_Analysis, Cluster-PlotSel
3-
commontreeitems.html: Notebook, Controls, RefinementControls, RefineType, SingleXtlSettings, SequentialSettings, Covariance, Constraints, Constraints-SeqRef, Restraints, Rigidbodies, Rigid_bodies
3+
commontreeitems.html: Notebook, Controls, RefinementControls, RefineType, SingleXtlSettings, SequentialSettings, Covariance, Constraints, Constraints-SeqRef, Restraints, RestraintImports, Rigidbodies, Rigid_bodies
44
datatree.html: DataTreeOverview
55
image.html: IMG, IMG_parent, IMG_Comments, IMG_Image_Controls, IMG_Masks, makemask, IMG_StressStrain, IMG_Stress/Strain
66
index.html: HelpIntro, Index

GSASII/help/commontreeitems.html

Lines changed: 69 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,15 @@
420420
</span>
421421
</a>
422422

423+
</li>
424+
425+
<li class="md-nav__item">
426+
<a href="#importing-restraints" class="md-nav__link">
427+
<span class="md-ellipsis">
428+
Importing Restraints
429+
</span>
430+
</a>
431+
423432
</li>
424433

425434
</ul>
@@ -1465,6 +1474,15 @@
14651474
</span>
14661475
</a>
14671476

1477+
</li>
1478+
1479+
<li class="md-nav__item">
1480+
<a href="#importing-restraints" class="md-nav__link">
1481+
<span class="md-ellipsis">
1482+
Importing Restraints
1483+
</span>
1484+
</a>
1485+
14681486
</li>
14691487

14701488
</ul>
@@ -1668,12 +1686,21 @@ <H3 style="color:blue;font-size:1.1em">What can I do here?</H3>
16681686
<li>You can change the search range used to find the bonds/angles that meet your criteria for restraint.</li>
16691687
<li>You can examine the table of restraints and change individual values; grayed out regions cannot be changed. The 'calc' values are determined from the atom positions in your structure, 'obs' values are the target values for the restraint and 'esd' is the uncertainty used to weight the restraint in the refinement (multiplied by the weight factor).</li>
16701688
<li>
1671-
<p>Menu 'Edit' – some entries may be grayed out if not appropriate for your phase or for the selected restraint.</p>
1689+
<p>Menu <strong>Edit</strong>has the menu commands listed below. Note that some entries may be grayed out, if not appropriate for your phase or for the selected restraint.</p>
16721690
<ul>
16731691
<li><strong>Add restraints</strong> - this takes you through a sequence of dialog boxes which ask for the identities of the atoms involved in the restraint and the value to be assigned to the restraint. The esd is given a default value which can be changed after the restraints are created.</li>
1674-
<li><strong>Add residue restraints</strong> - if the phase is a 'macromolecule' then develop the restraints from a selected 'macro' file based on those used in GSAS for this purpose. A file dialog box is shown directed to /GSASIImacros; be sure to select the correct file.</li>
1675-
<li><strong>Add MOGUL restraints</strong> - add restraints in the style of the MOGUL program</li>
1676-
<li><strong>Plot residue restraints</strong> - if the phase is a 'macromolecule' and the restraint type is either 'Torsion restraints' or 'Ramachandran restraints', then a plot will be made of the restraint distribution; torsions as 1-D plots of angle vs. pseudopotential energy and Ramachandran ones as 2-D plot of psi vs phi. In each case a dialog box will appear asking for the residue types or specific torsion angles to plot. Each plot will show the observed distribution (blue) obtained from a wide variety of high-resolution protein structures and those found (red dots) for your structure. The restraints are based on a pseudopotential (red curve or contours – favorable values at the peaks) which has been developed from the observed distributions for each residue type.</li>
1692+
<li>
1693+
<p><strong>Add residue restraints</strong> - if the phase is a 'macromolecule' then develop the restraints from a selected 'macro' file based on those used in GSAS for this purpose. A file dialog box is shown directed to /GSASIImacros; be sure to select the correct file.</p>
1694+
</li>
1695+
<li>
1696+
<p><strong>Add MOGUL restraints</strong> - add restraints from a file produced by the CCDC's MOGUL program or a file prepared
1697+
in that style. <a href="#RestraintImports">See below</a> for more information on importing restraints.
1698+
Note that when used from the Bond tab, only "bond" entries are read and when used from the
1699+
Angle tab, only "angle" entries are read.</p>
1700+
</li>
1701+
<li>
1702+
<p><strong>Plot residue restraints</strong> - if the phase is a 'macromolecule' and the restraint type is either 'Torsion restraints' or 'Ramachandran restraints', then a plot will be made of the restraint distribution; torsions as 1-D plots of angle vs. pseudopotential energy and Ramachandran ones as 2-D plot of psi vs phi. In each case a dialog box will appear asking for the residue types or specific torsion angles to plot. Each plot will show the observed distribution (blue) obtained from a wide variety of high-resolution protein structures and those found (red dots) for your structure. The restraints are based on a pseudopotential (red curve or contours – favorable values at the peaks) which has been developed from the observed distributions for each residue type.</p>
1703+
</li>
16771704
<li><strong>Change value</strong> - this changes the 'obsd' value for selected restraints; a dialog box will appear asking for the new value.</li>
16781705
<li><strong>Change esd</strong> - this changes the 'esd' value for selected restraints; a dialog box will appear asking for the new value.</li>
16791706
<li><strong>Delete restraints</strong> - this deletes selected restraints from the list. A single click in the blank box in the upper left corner of the table will select/deselect all restraints.</li>
@@ -1689,6 +1716,44 @@ <h3 id="restraint-types">Restraint types</h3>
16891716
<li><strong>Chem. Comp.</strong>: This is of use when "Frac" parameters (atom occupancies) are refined. This option allows a variety of different types of restraints to be created. More than one chemical composition restraint can be defined for a phase. Examples of how this might be used would be to "push" refinement towards an expected composition, to encourage charge balance or to conserve valences. </li>
16901717
<li><strong>General</strong>: This allows a quantity to be restrained that is computed from a user-supplied equation, based on GSAS-II parameters. Thus, one can create any type of restraint that is desired. This restraint is used by supplying a Python equation and then to define which GSAS-II parameter is associated with each variable in the Python equation. One also supplies the target value for the restraint. Note that it is possible to use externally defined functions that contain "if" statements, which allows restraints that enforce minimum or maximum quantities rather than target values to be defined. </li>
16911718
</ul>
1719+
<p><a name="RestraintImports"></a></p>
1720+
<h3 id="importing-restraints">Importing Restraints</h3>
1721+
<p>For the <strong>Add MOGUL restraints</strong> menu command, restraints are read from a supplied file.
1722+
The file produced by the MOGUL program has many columns, but only the first 8 are used here and a few of those do not matter.
1723+
If producing the file manually or with your own software, follow the following instructions.
1724+
The first line in the file must be a header, which must start with "Type" (note capitalization).
1725+
The rest of the line is ignored, but it is convenient to follow the example below. </p>
1726+
<p>Subsequent lines should contain:</p>
1727+
<ol>
1728+
<li>The first column (Type) should be "bond" or "angle"</li>
1729+
<li>The second column (Molecule) is ignored. It can be blank, but a comma to end the field is required</li>
1730+
<li>The third column (Fragment) specifies the atoms in the distance or angle.
1731+
The atoms should be separated by at least one space. For an angle the second listed atom is the one
1732+
at the apex of the angle. Capitalization of the atom name must match the name used in the atoms table. </li>
1733+
<li>The fourth column (Classification) can be anything other than "No hits" </li>
1734+
<li>The fifth column (No. of hits) is ignored. It can be blank, but a comma to end the field is required</li>
1735+
<li>The sixth column (Query value) is ignored. It can be blank, but a comma to end the field is required</li>
1736+
<li>The seventh column (Mean) is the bond distance or bond angle used in the restraint, labeled "target" in the table.</li>
1737+
<li>The eighth column (Std. dev.) is the uncertainty on the bond distance or bond angle labeled "esd" in the table.
1738+
Note that quantity <code>"Weight factor" * (obs-calc) / esd</code> determines the impact of the restraint,
1739+
so the esd values are on an arbitrary scale. </li>
1740+
</ol>
1741+
<p>Spacing between columns does not matter and columns do not need to be aligned.
1742+
With a file such as the one below, that contains both distances and angles, the file must be
1743+
read in twice, using the <strong>Add MOGUL restraints</strong> menu command from both the Bond tab and
1744+
the Angle tab to read in both sets of restraints. Blank lines are ignored. Note that only restraints
1745+
between atoms within the asymmetric unit can be generated with this type of file. If symmetry or translations are
1746+
needed to generate any of the atoms in the distance or angle, the <strong>Add restraints</strong> menu command must
1747+
be used to search.</p>
1748+
<p>This is an example file to be used to read in restraints:</p>
1749+
<pre><code>Type, Molecule, Fragment, Classification, No. of hits, Query value, Mean, Std. dev.
1750+
bond, ignore, Co1 O16, OK, ignore, ignore, 2.060, 0.001
1751+
bond, ignore, Co1 O20, OK, ignore, ignore, 2.069, 0.001
1752+
1753+
angle, ignore, N15 C8 C9, OK, ignore, ignore, 123.38, 0.01
1754+
angle, ignore, C9 C10 C11, OK, ignore, ignore, 116.18, 0.01
1755+
angle, ignore, C11 C12 N15, OK, ignore, ignore, 123.91, 0.02
1756+
</code></pre>
16921757
<p><a name="Rigidbodies"></a>
16931758
<a name="Rigid_bodies"></a></p>
16941759
<h2 id="rigid-bodies">Rigid bodies</h2>

0 commit comments

Comments
 (0)