DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
A Simple Python Script To Extract CA Coordinates From A Protein Data Bank File
A simple python script to extract CA coordinates from a protein data bank file
pdb = open("1D9Z.pdb", "r")
for line in pdb:
if line[:4] == 'ATOM' and line[12:16] == " CA ":
print line
# that's all, folks!





