Hi, Pavel.<br><br>Thanks for the quick reply. I downloaded the files, and I got the result you predicted - all the occupancies looked neat and tidy as expected. Since you used those nice occupancies to generate perfect data, which was then refined against, that&#39;s what one would expect, right? So I am still left with the issue of the occupancies going nuts in my real refinement. Or am I missing something?<br>
<br>Regards,<br>Anna<br><br><br><div class="gmail_quote">On Tue, Feb 10, 2009 at 4:43 PM, Pavel Afonine <span dir="ltr">&lt;<a href="mailto:PAfonine@lbl.gov">PAfonine@lbl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Anna,<br>
<br>
to find out what&#39;s going on I just did the following:<br>
<br>
1) I copied the lines below into &quot;answer.pdb&quot; file and I re-set the<br>
occupancies so they all make sense (add up to 1);<br>
<br>
2) Using &quot;answer.pdb&quot; file I simulated two datasets: X-ray and neutron:<br>
&quot;data.mtz&quot;. What I did is just I computed X-ray and neutron Fcalc, and<br>
called their absolute values as F-obs-xray and F-obs-neutron, and stored<br>
them in &quot;data.mtz&quot;.<br>
<br>
3) Then I scrambled the model in &quot;answer.pdb&quot; by randomizing the<br>
occupancies of all atoms. This file containing the scrambled models is<br>
called &quot;start.pdb&quot;.<br>
<br>
4) Finally, I took &quot;data.mtz&quot; and &quot;start.pdb&quot; files and ran joint XN<br>
refinement in phenix.refine. I did only occupancy refinement. As the<br>
refinement result I was expecting to get the PDB file with refined<br>
structure where all the occupancies are exactly the same as in<br>
&quot;answer.pdb&quot;. The command I used is:<br>
<br>
phenix.refine data.mtz start.pdb params --overwrite<br>
<br>
5) Now, open two files &quot;answer.pdb&quot; and &quot;refinement_result_001.pdb&quot;, and<br>
voila! All the occupancies are as expected.<br>
<br>
All the input and output files discussed above are located here:<br>
<a href="http://cci.lbl.gov/%7Eafonine/for_AnneG/" target="_blank">http://cci.lbl.gov/~afonine/for_AnneG/</a><br>
<br>
All the above data and files manipulations were done using<br>
&quot;phenix.pdbtools&quot; and &quot;phenix.refine&quot;.<br>
<br>
Could you reproduce the refinement I just did (&quot;step 4&quot;) using your<br>
version of PHENIX ? If not, then please update to the latest PHENIX<br>
(<a href="http://www.phenix-online.org/download/" target="_blank">http://www.phenix-online.org/download/</a>) and try again. If not<br>
successful even then, I will send you the latest development version.<br>
<br>
Please let me know if you have any questions or problems!<br>
<font color="#888888"><br>
Pavel.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 2/10/2009 11:04 AM, Anna Gardberg wrote:<br>
&gt; I am doing joint refinement of a perdeuterated protein, and I am<br>
&gt; having a problem with alternate conformations - the deuterium<br>
&gt; occupancies don&#39;t match the overall occupancies for their conformation:<br>
&gt;<br>
&gt; ATOM &nbsp; &nbsp;335 &nbsp;N &nbsp;APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.154 &nbsp; 0.897 &nbsp;15.243 &nbsp;0.38<br>
&gt; 8.64 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N<br>
&gt; ATOM &nbsp; &nbsp;336 &nbsp;CA APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;12.556 &nbsp; 0.209 &nbsp;16.391 &nbsp;0.38<br>
&gt; 7.61 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;337 &nbsp;CB APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.743 &nbsp; 0.043 &nbsp;17.350 &nbsp;0.38<br>
&gt; 12.47 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;338 &nbsp;CG APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.713 &nbsp; 1.102 &nbsp;16.926 &nbsp;0.38<br>
&gt; 9.70 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;339 &nbsp;CD APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.594 &nbsp; 1.126 &nbsp;15.443 &nbsp;0.38<br>
&gt; 13.59 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;340 &nbsp;C &nbsp;APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;11.414 &nbsp; 0.974 &nbsp;17.057 &nbsp;0.38<br>
&gt; 13.42 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;341 &nbsp;O &nbsp;APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;10.559 &nbsp; 0.334 &nbsp;17.671 &nbsp;0.38<br>
&gt; 15.65 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O<br>
&gt; ATOM &nbsp; &nbsp;342 &nbsp;DA APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;12.236 &nbsp;-0.672 &nbsp;16.112 &nbsp;0.48<br>
&gt; 5.78 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;343 &nbsp;DB2APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.454 &nbsp; 0.173 &nbsp;18.268 &nbsp;0.43<br>
&gt; 15.49 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;344 &nbsp;DB3APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.128 &nbsp;-0.841 &nbsp;17.229 &nbsp;0.52<br>
&gt; 10.36 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;345 &nbsp;DG2APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.460 &nbsp; 1.959 &nbsp;17.300 &nbsp;0.60<br>
&gt; 13.82 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;346 &nbsp;DG3APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;15.610 &nbsp; 0.852 &nbsp;17.197 &nbsp;0.30<br>
&gt; 14.04 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;347 &nbsp;DD2APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.850 &nbsp; 1.996 &nbsp;15.097 &nbsp;0.48<br>
&gt; 12.84 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;348 &nbsp;DD3APRO A &nbsp;19 &nbsp; &nbsp; &nbsp;15.119 &nbsp; 0.413 &nbsp;15.046 &nbsp;0.40<br>
&gt; 8.63 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;349 &nbsp;N &nbsp;BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.163 &nbsp; 0.886 &nbsp;15.240 &nbsp;0.62<br>
&gt; 8.58 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N<br>
&gt; ATOM &nbsp; &nbsp;350 &nbsp;CA BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;12.606 &nbsp; 0.252 &nbsp;16.438 &nbsp;0.62<br>
&gt; 7.70 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;351 &nbsp;CB BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.777 &nbsp; 0.307 &nbsp;17.423 &nbsp;0.62<br>
&gt; 11.89 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;352 &nbsp;CG BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.973 &nbsp; 0.224 &nbsp;16.548 &nbsp;0.62<br>
&gt; 11.13 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;353 &nbsp;CD BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.616 &nbsp; 1.094 &nbsp;15.375 &nbsp;0.62<br>
&gt; 13.76 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;354 &nbsp;C &nbsp;BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;11.399 &nbsp; 0.972 &nbsp;17.012 &nbsp;0.62<br>
&gt; 13.34 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
&gt; ATOM &nbsp; &nbsp;355 &nbsp;O &nbsp;BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;10.491 &nbsp; 0.304 &nbsp;17.514 &nbsp;0.62<br>
&gt; 15.31 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O<br>
&gt; ATOM &nbsp; &nbsp;356 &nbsp;DA BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;12.371 &nbsp;-0.680 &nbsp;16.253 &nbsp;0.23<br>
&gt; 7.26 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;357 &nbsp;DB2BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.760 &nbsp; 1.148 &nbsp;17.905 &nbsp;0.72<br>
&gt; 12.42 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;358 &nbsp;DB3BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;13.734 &nbsp;-0.446 &nbsp;18.034 &nbsp;0.19<br>
&gt; 14.30 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;359 &nbsp;DG2BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;15.759 &nbsp; 0.552 &nbsp;17.012 &nbsp;0.87<br>
&gt; 14.63 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;360 &nbsp;DG3BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;15.094 &nbsp;-0.695 &nbsp;16.264 &nbsp;0.40<br>
&gt; 9.68 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;361 &nbsp;DD2BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;14.807 &nbsp; 2.022 &nbsp;15.580 &nbsp;0.43<br>
&gt; 11.93 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt; ATOM &nbsp; &nbsp;362 &nbsp;DD3BPRO A &nbsp;19 &nbsp; &nbsp; &nbsp;15.083 &nbsp; 0.798 &nbsp;14.578 &nbsp;0.31<br>
&gt; 8.63 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D<br>
&gt;<br>
&gt; I am using these refinement options:<br>
&gt; &nbsp; refine {<br>
&gt; &nbsp; &nbsp; strategy = *individual_sites *rigid_body *individual_adp group_adp<br>
&gt; tls \<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*occupancies group_anomalous<br>
&gt; &nbsp; &nbsp; sites {<br>
&gt; &nbsp; &nbsp; &nbsp; individual = None<br>
&gt; &nbsp; &nbsp; &nbsp; rigid_body = None<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; occupancies {<br>
&gt; &nbsp; &nbsp; &nbsp; individual = None<br>
&gt; &nbsp; &nbsp; &nbsp; remove_selection = None<br>
&gt; &nbsp; &nbsp; &nbsp; constrained_group {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; selection = None<br>
&gt; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; }<br>
&gt; }<br>
&gt;<br>
&gt; and<br>
&gt; &nbsp; hydrogens {<br>
&gt; &nbsp; &nbsp; refine = *individual riding<br>
&gt; &nbsp; &nbsp; refine_adp = one_b_per_residue one_b_per_molecule *individual<br>
&gt; &nbsp; &nbsp; refine_occupancies = one_q_per_residue *one_q_per_molecule individual<br>
&gt; &nbsp; &nbsp; contribute_to_f_calc = True<br>
&gt; &nbsp; }<br>
&gt; What refinement options should I be using to keep the D occupancies<br>
&gt; the same as the rest of their conformation? Hope you can help!<br>
&gt;<br>
&gt; Regards,<br>
&gt; Anna<br>
</div></div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
phenixbb mailing list<br>
<a href="mailto:phenixbb@phenix-online.org">phenixbb@phenix-online.org</a><br>
<a href="http://www.phenix-online.org/mailman/listinfo/phenixbb" target="_blank">http://www.phenix-online.org/mailman/listinfo/phenixbb</a><br>
</div></div></blockquote></div><br>