[Chimera-users] Clustering saving PDB
Lorena Roldán
Lorena.Roldan at uab.cat
Wed Dec 23 08:20:36 PST 2020
Good afternoon,
I contact you as I would really appreciate your help. I have a MD
trajectory which I have processed into Clusters with the Analysis ...
Cluster tool. I have saved the resulting file with the members and the
representative frame, but now I would like to save those representative
frames in separate PDB files. This process is extremely tedious if
manually done, so I have tried to perform a script:
with
open("/HDD/lroldan/Master/Metals_bA/Template/2LFM/MD/GaMD/clusters_frame.txt",
"r") as f:
lines=f.readlines()
cluster_number = 1
for i in range(len(lines)):
frame = i
if mdInfo["frame number"] == frame:
name =
"/HDD/lroldan/Master/Metals_bA/Template/2LFM/MD/GaMD/Clusters/_" +
str(cluster_number)
runCommand('write format pdb 0 $name)
which would be run in the "Per-frame Commands", in order to 1) encounter
the frames of the cluster and 2) save each frame in a PDB file,
correctly numbered.
However, this script is not working, and I would greatly thank any help
you could provide me with.
Lorena.
--
<http://www.uab.cat> Lorena Roldán Martín
*PhD Student in Bioinformatics*
Departament de Química
Unitat de Química Física
Campus de la UAB · 08193 Bellaterra
(Cerdanyola del Vallès) · Barcelona · Spain
+34 690799431
www.uab.cat <http://www.uab.cat>
<https://orcid.org/0000-0002-6902-8285><https://www.linkedin.com/in/lorena-roldan-biomedica/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20201223/1eb3dd1e/attachment.html>
More information about the Chimera-users
mailing list