mailr8489 - /branches/multi_structure/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on January 15, 2009 - 18:47:
Author: bugman
Date: Thu Jan 15 18:47:49 2009
New Revision: 8489

URL: http://svn.gna.org/viewcvs/relax?rev=8489&view=rev
Log:
The "'" character is stripped so __det_pdb_element() better handles RNA.


Modified:
    branches/multi_structure/generic_fns/structure/internal.py

Modified: branches/multi_structure/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/internal.py?rev=8489&r1=8488&r2=8489&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/internal.py (original)
+++ branches/multi_structure/generic_fns/structure/internal.py Thu Jan 15 
18:47:49 2009
@@ -1115,12 +1115,15 @@
         @rtype:             str or None
         """
 
+        # Strip away the "'" character (for RNA, etc.).
+        element = strip(atom_name, "'")
+
         # Strip away atom numbering, from the front and end.
         element = strip(atom_name, digits)
 
         # Amino acid atom translation table (note, numbers have been 
stripped already!).
         table = {'C': ['CA', 'CB', 'CG', 'CD', 'CE', 'CZ'],
-                 'N': ['NE', 'NH'],
+                 'N': ['ND', 'NE', 'NH'],
                  'H': ['HA', 'HB', 'HG', 'HD', 'HE', 'HT'],
                  'O': ['OG', 'OD', 'OE'],
                  'S': ['SD', 'SG']




Related Messages


Powered by MHonArc, Updated Thu Jan 15 20:00:03 2009