Hello everyone,
A while ago I was working with single-point mutations in protein structures. At the time, I needed to open PDB files and replace a single amino acid using a Python script.
I tried to do this using Biopython's Bio.PDB package, but I got stuck trying to accomplish this using BIO.PDB objects.
Finally, I implemented the mutations by simply opening the PDB file with the open() function; I have erased the lines referring to the atoms in the side chain of the residue in question; I calculated the coordinates of the new atoms based on the main chain (which has not changed); and I recorded the new lines in a new PDB file (then, I used another tool to minimize the atoms' positions but these details are not so important here).
That worked!
Still, I had the feeling that this wasn't the most robust way to solve the problem.
Has anyone tried to do something like this using Biopython?