Last active
February 8, 2016 20:00
-
-
Save sqamara/6ed6ddfc904a5224e558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HETATM 1 Br Br 1 0.000 0.000 5.000 1.00 0.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from simtk.openmm import app | |
pdb_file="./br.pdb" | |
#HETATM 1 Br Br 1 0.000 0.000 5.000 1.00 0.00 | |
pdb = app.PDBFile(pdb_file) | |
for chain in pdb.topology.chains(): | |
for res in chain.residues(): | |
for atom in res.atoms(): | |
print(atom.element) | |
# prints <Element boron> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment