mailr2920 - /1.3/generic_fns/structure.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 07, 2006 - 04:42:
Author: bugman
Date: Thu Dec  7 04:41:40 2006
New Revision: 2920

URL: http://svn.gna.org/viewcvs/relax?rev=2920&view=rev
Log:
Changed the format of the PDB representation of the XH vector distribution.

Each XH pair is being created as a proper vector with two atoms rather than 
all protons connecting
back to a single centre of mass.


Modified:
    1.3/generic_fns/structure.py

Modified: 1.3/generic_fns/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure.py?rev=2920&r1=2919&r2=2920&view=diff
==============================================================================
--- 1.3/generic_fns/structure.py (original)
+++ 1.3/generic_fns/structure.py Thu Dec  7 04:41:40 2006
@@ -515,9 +515,6 @@
         # Calculate the centre of mass.
         R = self.centre_of_mass()
 
-        # Add the central atom.
-        self.atom_add(atom_id='R', record_name='HETATM', atom_name='R', 
res_name='COM', chain_id='A', res_num=res_num, pos=R, element='C')
-
         # Increment the residue number.
         res_num = res_num + 1
 
@@ -541,8 +538,19 @@
             # Scale the vector.
             vector = data.xh_vect * length * 1e10
 
-            # Add the vector as a H atom of the TNS residue.
-            self.atom_add(atom_id=data.num, record_name='ATM', 
atom_name='H'+`data.num`, res_name=data.name, chain_id='A', res_num=data.num, 
pos=vector, element='H')
+            # The atom ids.
+            end = '_' + `data.num` + '_' + data.name
+            X_id = data.heteronuc + end
+            H_id = data.proton + end
+
+            # Add the central X atom.
+            self.atom_add(atom_id=X_id, record_name='ATM', 
atom_name=data.heteronuc, res_name=data.name, chain_id='A', res_num=data.num, 
pos=R, element=data.heteronuc)
+
+            # Add the H atom.
+            self.atom_add(atom_id=H_id, record_name='ATM', 
atom_name=data.proton, res_name=data.name, chain_id='A', res_num=data.num, 
pos=vector, element=data.proton)
+
+            # Connect the two atoms.
+            self.atom_connect(atom_id=X_id, bonded_id=H_id)
 
 
         # Create the PDB file.




Related Messages


Powered by MHonArc, Updated Thu Dec 07 05:00:05 2006