Commit 19d92e1d authored by Peter Eastman's avatar Peter Eastman
Browse files

Tweaked the alignment of the atom name in PDB files

parent bc6e8fa9
......@@ -253,7 +253,7 @@ class PDBFile(object):
else:
resName = res.name
for atom in res.atoms():
if len(atom.name) < 4:
if len(atom.name) < 4 and atom.name[:1].isalpha() and (atom.element is None or len(atom.element.symbol) < 2):
atomName = ' '+atom.name
elif len(atom.name) > 4:
atomName = atom.name[:4]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment