- #1
MiloBoots
- 2
- 0
Hey
I want to be able to extract the coordinates of different elements in a PDB data file. I have been able to extract the coordinates for all the atoms in 3 arrays in the x, y, z directions. However, I would like to have the x, y, z coordinates for each element separate. So an array for the positions of oxygen, an array for nitrogen etc.
For example, I use the line:Z=[gflstruct.Model.Atom.Z] to get the Z axis coordinates and similarly for X and Y.
I am struggling to come up with a script to run which filters through the pdb file and outputs the different arrays of coordinates for each element.
Thankyou
I want to be able to extract the coordinates of different elements in a PDB data file. I have been able to extract the coordinates for all the atoms in 3 arrays in the x, y, z directions. However, I would like to have the x, y, z coordinates for each element separate. So an array for the positions of oxygen, an array for nitrogen etc.
For example, I use the line:Z=[gflstruct.Model.Atom.Z] to get the Z axis coordinates and similarly for X and Y.
I am struggling to come up with a script to run which filters through the pdb file and outputs the different arrays of coordinates for each element.
Thankyou