Entering edit mode
5.9 years ago
a4appy23
▴
50
I'm looking for a simple piece of code. I'm trying to output the atom more than 4A to a separate pdb file. I could do it in pymol but I'm trying to do here in python using pycharm.
I'm stuck with how to calculate the center. I'm new to biopython, do you have any suggestions?
for model in structure:
for chain in model:
chain_E = model['E']
print(chain_E)
for residue in chain_E:
for atom in residue:
ca = residue['CA'].get_vector()
print("the CA atoms ", ca)
Hello a4appy23 ,
Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!