Hello,
I would like to use biopython to retrieve the atom coordinates of type CA and the name of it's residue.
The input is a .pdb file. The output a dictionary with key = x,y,z and value = residue name. Since I'm completely new to biopython, I'm still to read the biopython tutorial, but for now, i would appreciate if someone scripts this for me.
Sincerest regards.
Thank you. Two things. First, my protein contains a ZN atom and gives a KeyError: 'CA' with the code below. BTW, does that mean biopython is still buggy? The second thing is that the output contains a lot of weird formatting "<vector 1.34,="" 0.22,="" -0.72="">", I only want the numbers. I also want to retrieve the residue letter of that CA atom I'm operating on.
I think that you should read the documentation (if you have read it, do it again) before asking about how to get the residue, you will find the useful information there. About your problem of ZN atoms, I will go for a try-catch example: