Issue reading Gromacs written TNG file containing both positions and velocities #5039
-
Hi All, I've been playing around with trying to convert some huge TRR trajectory files (with positions and velocities) into TNG files using Gromacs 2021.5 trjconv in order to reduce the file sizes, but am having trouble reading those files into MDAnalysis 2.7.0. For example, when I do:
but when I do I notice that when I use gmx dump, each frame in the trajectory has a data block named POSITIONS. I haven't looked at the MDA source code yet, but is this what the TNGReader is looking for when searching for TNG_TRAJ_POSITIONS? Does anyone have a solution? If not, can anyone recommend another way for me to reduce the size of these huge TRR files (>200GB), but keep them in an mdanalysis-ready format? Thanks in advance, Conor |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
In your example you failed with the |
Beta Was this translation helpful? Give feedback.
-
By default, MDAnalysis uses the pytng package https://github.com/MDAnalysis/pytng for handling TNG. However, you can also use the chemfiles library for many formats, including TNG, so perhaps try u = mda.Universe("4.2_production.tpr", "4.2_unwrapped.tng", format="CHEMFILES") Maybe chemfiles can do it. |
Beta Was this translation helpful? Give feedback.
By default, MDAnalysis uses the pytng package https://github.com/MDAnalysis/pytng for handling TNG.
However, you can also use the chemfiles library for many formats, including TNG, so perhaps try
Maybe chemfiles can do it.