How to find the names of elements while parsing PDB files via biopython?
1 answer
Found the solution (atom entries have an attribute called element which returns the element of the corresponding atom) -
for model in structure:
for chain in model:
for residue in chain:
for atom in residue:
print(atom.element) # atom.element can be used to access the element
• 0 views
•
link
Log in to answer this question.