Thank you Pavel :) Therefore i will apply the neccesary transformations directly on the pdb, and after, i will create the xray structure and work with it for the next steps. Thanks again!<br clear="all"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)"><p>

<font face="arial, helvetica, sans-serif">Claudia Millán (<a href="mailto:cmncri@ibmb.csic.es" style="color:rgb(17,85,204)" target="_blank">cmncri@ibmb.csic.es</a>)</font></p><p><font face="arial, helvetica, sans-serif">Institut de Biologia Molecular de Barcelona (IBMB-CSIC)</font></p>

<p><font face="arial, helvetica, sans-serif">Barcelona, Spain</font></p></span></div><br>
<br><br><div class="gmail_quote">2012/12/12 Pavel Afonine <span dir="ltr">&lt;<a href="mailto:pafonine@lbl.gov" target="_blank">pafonine@lbl.gov</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Claudia,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i have been using the xray_structure_simple() method to get an xray.structure object from a pdb object and use it to perform some calculations on it, one of them being expand it to P1. After, i tried to write a new pdb out of this xray_structure in P1. For that purpose, i used the following method:<br>


<br>
cctbx.xray.structure.as_pdb_<u></u>file(self, remark=None, remarks=[], fractional_coordinates=False, resname=None, connect=None)<br>
<br>
but using it both with the original xray structure and with the one on P1 I get very bad lookings pdbs, with incorrect formating, like that for the case of the one in P1:<br>
<br>
ATOM      1 PDB= PDB     1      12.330  -6.948 -40.820  1.00 19.26           N<br>
ATOM      2 PDB= PDB     2      49.988  55.370   3.948  1.00 19.26           N<br>
ATOM      3 PDB= PDB     3      36.092  30.710  93.483  1.00 19.26           N<br>
ATOM      4 PDB= PDB     4      55.370  49.988 175.123  1.00 19.26           N<br>
ATOM      5 PDB= PDB     5      30.710  36.092  85.587  1.00 19.26           N<br>
</blockquote>
<br></div>
xray_structure object does not have information about atom/residue/chain/etc labels. Conceptually, it is supposed to contain minimally necessary amount amount of data in order to calculate Fcalc. It gets stripped off the moment you go from pdb input object to xray_structure_simple().<br>


<br>
To write a meaningful PDB file you need to use PDB hierarchy machinery. For details, see &quot;cctbx PDB handling tools&quot; article here:<br>
<a href="http://phenix-online.org/newsletter/CCN_2010_07.pdf" target="_blank">http://phenix-online.org/<u></u>newsletter/CCN_2010_07.pdf</a><br>
<br>
There are numerous examples scattered across cctbx code of going back and forth between xray_structure object and pdb files.<br>
<br>
Pavel<br>
<br>
______________________________<u></u>_________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/<u></u>mailman/listinfo/cctbxbb</a><br>
</blockquote></div><br>