<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Elliot,<br>
     <br>
    <blockquote
cite="mid:2FF8050F853FDB418090EC829FFC5EDF4122EFEC@MBX07.ad.oak.ox.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">Looking to generate restraints for
        phenix.refine that are similiar/equivalent to external
        restraints in REFMAC. From over viewing the documentation i feel
        the correct way to do this is to generate bond restraints, i.e:<br>
        <br>
        Equivalent of:<br>
        <br>
        exte dist first chain A resi   38 atom  C   alte A second chain
        A resi   38 atom  C   alte B value 0.0 sigma 0.02 type 1<br>
        <br>
        would be :<br>
      </div>
    </blockquote>
    <br>
    I don't know how restraints function in Refmac.<br>
    <br>
    <blockquote
cite="mid:2FF8050F853FDB418090EC829FFC5EDF4122EFEC@MBX07.ad.oak.ox.ac.uk"
      type="cite">
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">
        refinment.geometry_restraints.edits {<br>
              bond {<br>
                                    action = *add <br>
                                    atom_selection_1 = chain A  and
        resid 38 and altloc A and name C<br>
                                    atom_selection_2 = chain A  and
        resid 38 and altloc B and name C<br>
                                    symmetry_operation = None <br>
                                    distance_ideal = 0.0<br>
                                    sigma = 0.02<br>
                                    slack = None<br>
                        }<br>
        }<br>
      </div>
    </blockquote>
    <br>
    This will define a bond between these two atoms by adding a term to
    the restraints:<br>
    <br>
    (1/sigma**2)*(distance_model - distance_ideal)**2<br>
    <br>
    Note, you can add as many of such bonds as you with. Also, using
    similar syntax you can add angles, planes, torsions, etc.<br>
    <br>
    Just out curiosity and if it's not a secret: what are you trying to
    achieve?<br>
    <br>
    Pavel<br>
    <br>
  </body>
</html>