<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font size="4"><font face="monospace">Hi Pavel, <br>
        <br>
        yes I do have the file which goes : <br>
        <br>
      </font></font>geometry_restraints {<br>
      edits {<br>
        bond {<br>
          atom_selection_1 = chain A and resseq 1601 and name O2<br>
          atom_selection_2 = chain A and resseq 895 and name OG<br>
          distance_ideal = 3.2 <br>
          sigma = 0.5<br>
        }<br>
        bond {<br>
          atom_selection_1 = chain A and resseq 1601 and name O2<br>
          atom_selection_2 = chain A and resseq 299 and name OG<br>
          distance_ideal = 2.3 <br>
          sigma = 0.5<br>
        }<br>
    <br>
    .... many more bonds.... <br>
    <br>
      }<br>
    }<br>
    <br>
    But it takes some time to generate a good amount of restraints, and
    for structures with several ligands it could be a long task. <br>
    Agreed that it is not fool-proof but a general edition of these
    bonds and editing afterwards would be a good little program I
    believe. <br>
    <br>
    Best<br>
    Vincent<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 15/09/2023 à 14:34, Pavel Afonine a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:d9eda427-a227-416e-8505-bea128558022@lbl.gov">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi Vincent,<br>
      </p>
      <blockquote type="cite"
        cite="mid:8388df9c-4d9d-0ed9-9ca4-ca281fbb92c6@ibcp.fr"><font
          size="4"><font face="monospace"> Before launching
            phenix.varref, I would like to generate a ligand restraint
            file so the ligand doesn't fly away from its density. <br>
            It would be great if the ligand_restraints.eff file could be
            generated from a PDB file already containing the ligand (for
            example originating from refinement), that we can then edit
            afterwards. The ligand I'm talking about is ATP in this
            case, so it doesn't need external cif file for refinement.<br>
            <br>
            I searched but couldn't identify such a job. It would be
            useful if it could be added to "PDB tools" or similar. </font></font><br>
      </blockquote>
      <p><br>
        you need to define what in Phenix is called custom bond
        restraints: some "dummy" bonds between pairs of ligand and
        protein atoms of your choice. These bonds will anchor the ligand
        in place. Let me know if you need help setting up those but I
        think I sent you an example some time ago.<br>
        While generating such a file automatically is possible it may
        not be fool-proof as it will depend on the geometric quality of
        the model. So it's best to use your chemical intuition to choose
        those pairs of atoms that you'd like to link.<br>
      </p>
      <p>Good luck!<br>
        Pavel</p>
      <p><br>
      </p>
      <br>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta http-equiv="Content-Style-Type" content="text/css">
      <title></title>
      <meta name="Generator" content="Cocoa HTML Writer">
      <meta name="CocoaVersion" content="1671.6">
      <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica; color: #000000; -webkit-text-stroke: #000000}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Helvetica; color: #000000; -webkit-text-stroke: #000000; min-height: 14.0px}
    span.s1 {font-kerning: none}
  </style>
      <p class="p1"><span class="s1">Vincent Chaptal, PhD</span></p>
      <p class="p1"><span class="s1">Director of GdR APPICOM</span></p>
      <p class="p1"><span class="s1">Drug Resistance and Membrane
          Proteins Lab</span></p>
      <p class="p2"><span class="s1"></span><br>
      </p>
      <p class="p1"><span class="s1">MMSB -UMR5086</span></p>
      <p class="p1"><span class="s1">7 passage du Vercors<span
            class="Apple-converted-space"> </span></span></p>
      <p class="p1"><span class="s1">69007 LYON</span></p>
      <p class="p1"><span class="s1">FRANCE</span></p>
      <p class="p1"><span class="s1">+33 4 37 65 29 01</span></p>
      <p class="p1"><span class="s1"><a class="moz-txt-link-freetext" href="http://www.appicom.cnrs.fr">http://www.appicom.cnrs.fr</a></span></p>
      <p class="p1"><span class="s1"><a class="moz-txt-link-freetext" href="http://mmsb.cnrs.fr/en/">http://mmsb.cnrs.fr/en/</a></span></p>
      <p class="p1"><span class="s1"><br>
        </span></p>
    </div>
  </body>
</html>