You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MDhelp/docs/commontreeitems.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,11 +163,16 @@ Note that a restraint "pushes" a refinement towards a target value, but does not
163
163
* You can choose to use or not use the restraints in subsequent refinements. Default is to use the restraints.
164
164
* You can change the search range used to find the bonds/angles that meet your criteria for restraint.
165
165
* 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).
166
-
* Menu 'Edit' – some entries may be grayed out if not appropriate for your phase or for the selected restraint.
166
+
* Menu **Edit** – 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.
167
167
168
168
***Add restraints** - 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.
169
169
***Add residue restraints** - 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.
170
-
***Add MOGUL restraints** - add restraints in the style of the MOGUL program
170
+
171
+
***Add MOGUL restraints** - add restraints from a file produced by the CCDC's MOGUL program or a file prepared
172
+
in that style. [See below](#RestraintImports) for more information on importing restraints.
173
+
Note that when used from the Bond tab, only "bond" entries are read and when used from the
174
+
Angle tab, only "angle" entries are read.
175
+
171
176
***Plot residue restraints** - 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.
172
177
***Change value** - this changes the 'obsd' value for selected restraints; a dialog box will appear asking for the new value.
173
178
***Change esd** - this changes the 'esd' value for selected restraints; a dialog box will appear asking for the new value.
@@ -182,6 +187,49 @@ Note that a restraint "pushes" a refinement towards a target value, but does not
182
187
***Chem. Comp.**: 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.
183
188
***General**: 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.
184
189
190
+
<aname="RestraintImports"></a>
191
+
### Importing Restraints
192
+
For the **Add MOGUL restraints** menu command, restraints are read from a supplied file.
193
+
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.
194
+
If producing the file manually or with your own software, follow the following instructions.
195
+
The first line in the file must be a header, which must start with "Type" (note capitalization).
196
+
The rest of the line is ignored, but it is convenient to follow the example below.
197
+
198
+
Subsequent lines should contain:
199
+
200
+
1. The first column (Type) should be "bond" or "angle"
201
+
2. The second column (Molecule) is ignored. It can be blank, but a comma to end the field is required
202
+
3. The third column (Fragment) specifies the atoms in the distance or angle.
203
+
The atoms should be separated by at least one space. For an angle the second listed atom is the one
204
+
at the apex of the angle. Capitalization of the atom name must match the name used in the atoms table.
205
+
4. The fourth column (Classification) can be anything other than "No hits"
206
+
5. The fifth column (No. of hits) is ignored. It can be blank, but a comma to end the field is required
207
+
6. The sixth column (Query value) is ignored. It can be blank, but a comma to end the field is required
208
+
7. The seventh column (Mean) is the bond distance or bond angle used in the restraint, labeled "target" in the table.
209
+
8. The eighth column (Std. dev.) is the uncertainty on the bond distance or bond angle labeled "esd" in the table.
210
+
Note that quantity ``"Weight factor" * (obs-calc) / esd`` determines the impact of the restraint,
211
+
so the esd values are on an arbitrary scale.
212
+
213
+
Spacing between columns does not matter and columns do not need to be aligned.
214
+
With a file such as the one below, that contains both distances and angles, the file must be
215
+
read in twice, using the **Add MOGUL restraints** menu command from both the Bond tab and
216
+
the Angle tab to read in both sets of restraints. Blank lines are ignored. Note that only restraints
217
+
between atoms within the asymmetric unit can be generated with this type of file. If symmetry or translations are
218
+
needed to generate any of the atoms in the distance or angle, the **Add restraints** menu command must
219
+
be used to search.
220
+
221
+
This is an example file to be used to read in restraints:
0 commit comments