force-h2020 / force-bdss-plugin-gromacs

Gromacs BDSS data sources, as well as a stand-alone wrappers around Gromacs tools.
MIT License
0 stars 0 forks source link

FEAT: Gromacs trajectory file handling, involving post-processing #7

Closed flongford closed 5 years ago

flongford commented 5 years ago

This PR adds functionalities to read Gromacs trajectory .gro files and calls to the Gromacs post processing commands trjconv and select.

Typically, binary trajectory .xtc files will need to be cleaned and processed in order to perform analysis with python code. Gromacs has some inbuilt post-processing commands that can be called from the command line. Most notably, the trjconv command can be used to amend particle coordinates that may become disrupted due to periodic boundary conditions. This is an important precursor step to calculating any property based on spatial distributions, such as cluster formation.

Additional useful routines for analysing coordinate files have also been included: molecular_positions to calculate a single coordinate representing the molecular position, distance_matrix, to calculate pairwise vector and euclidean distances between particle positions, and batch_distance_matrix, a batch implementation of distance_matrix.

Change log