<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Reza,<br>
    <br>
    <blockquote type="cite"
      cite="mid:4616bfde251844509053ceb67fd7ab27@CCNY-MBX3.itcs.ccny.lan">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">What is the syntax for having
        phenix.real_space_refine refine a single chain of a multi-chain
        complex?� </div>
    </blockquote>
    <br>
    unlike phenix.refine, currently phenix.real_space_refine will refine
    the entire content of provided PDB or mmCIF file.<br>
    <br>
    You can edit the file to leave only the part you want to refine and
    run refinement (map does not need any change, use full map). Then
    paste refine part back to the full model. Not ideal and ugly, but
    may just work.<br>
    <br>
    Alternatively, you may cut out a box with piece of model and map
    around it and do the same as above. This is slightly nicer but still
    not ideal.<br>
    <br>
    Adding functionality to refine only select part of the model is in
    to-do list.<br>
    <br>
    <blockquote type="cite"
      cite="mid:4616bfde251844509053ceb67fd7ab27@CCNY-MBX3.itcs.ccny.lan">
      <div class="WordSection1">I have separated the chains into
        distinct files and run refinement on a single chain (file) with
        undesirable results.� It seems that residues adjacent to the
        density of a neighboring chain get pulled into the neighboring
        density �possibly because the neighboring density is vacant.� I
        hope my explanation is clear.<br>
      </div>
    </blockquote>
    <br>
    I see. Ok, this is sort of expected. Then use the second option
    above: cut out a box. When cutting out a box make sure you define
    mask around model with some generous buffer and set everything
    outside to zero.. Normally this should do the trick.<br>
    <br>
    Pavel<br>
    <br>
  </body>
</html>