-
Hi, I'm trying to write a trajectory dcd file (20 frames) with CHARMM, read it with MDAnalysis (eventually select some frames), write it with MDAnalysis and read it back with CHARMM. My python code looks simply like this: u = Universe('relax0.psf','relax0.dcd', in_memory=True)
u.atoms.write('tmp.dcd', frames='all') When I try to read the trajectory back in CHARMM, reading tmp.dcd instead of relax0.dcd, CHARMM is only able to read the first frame, then it exits with
When reading the first frame of tmp.dcd, CHARMM prints the following: While with the original file relax0.dcd , CHARMM prints the following: Do you have any suggestion on how to get a CHARMM-compatible dcd file? Thank you in advance for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found a way to read a trajectory dcd file created by MDAnalysis in CHARMM. I'm posting it, as it may be helpful for others. Indicating the first and the last frame, the dcd file can be read. For example, if the dcd file has 20 frames:
All the best, |
Beta Was this translation helpful? Give feedback.
I found a way to read a trajectory dcd file created by MDAnalysis in CHARMM. I'm posting it, as it may be helpful for others.
Indicating the first and the last frame, the dcd file can be read. For example, if the dcd file has 20 frames:
All the best,
Ute