A Simple Python Script To Extract CA Coordinates From A Protein Data Bank File
Join the DZone community and get the full member experience.Join For Free
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!
Opinions expressed by DZone contributors are their own.