nf-core/moleculardynamics
Introduction
nf-core/moleculardynamics is a bioinformatics pipeline for running molecular dynamic simulations (MD) using GROMACS. This workflow enables researchers to perform standard protein simulations in a fully automated manner, with minimal configuration, on both local and high-performance computing (HPC) environments.
It takes a protein structure (PDB) and GROMACS parameter files (MDP) for each sample, prepares the system (topology, solvation, ions), runs energy minimisation, NVT/NPT equilibration and a production simulation, and returns the trajectory together with a first structural analysis (RMSD).
We are currently working on the following tasks:
- 🚀📆 Official release of the
nf-core/moleculardynamicspipeline. - 🛠👩💻 Expanding the pipeline’s capabilities to include more analysis modules (e.g., RMSF, distances), and integrating specialized tools for membrane proteins and protein-ligand complexes.
Pipeline
The nf-core/moleculardynamics pipeline automates a standard GROMACS MD simulation workflow. The major steps are:
- Input pre-processing: Remove heteroatoms (ligands, ions, waters) from the PDB structure and check that no atoms are missing.
- MD simulation: Main subworkflow of the pipeline.
- Generation of molecular topology,
- System solvation, and ion addition to neutralize the system.
- Energy Minimization: Removal of steric clashes and relaxation of the initial structure.
- Equilibration: NVT (constant Number, Volume, Temperature) and NPT (constant Number, Pressure, Temperature) equilibration to bring the system to the desired temperature and density.
- Production MD: Execution of the main molecular dynamics simulation.
- Post-processing: Centre the protein and remove periodic boundary condition (PBC) artifacts from the trajectory.
- Analysis: Calculation of the Root-Mean-Square Deviation (RMSD) relative to the starting structure.
Usage
If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test before running the workflow on actual data.
First, prepare a samplesheet with your input data that looks as follows:
samplesheet.csv:
sample,structure,em_mdp,nvt_mdp,npt_mdp,md_mdp,force_field,box_type,distance_to_boxLYSOZYME,/data/1AKI.pdb,/data/em.mdp,/data/nvt.mdp,/data/npt.mdp,/data/md.mdp,charmm27,cubic,1.0Each row represents one protein system to simulate, with its structure, the MDP files for each simulation step, and the force field and box settings.
Now, you can run the pipeline using:
nextflow run nf-core/moleculardynamics \ -profile <docker/singularity/.../institute> \ --input samplesheet.csv \ --outdir <OUTDIR>Please provide pipeline parameters via the CLI or Nextflow -params-file option. Custom config files including those provided by the -c Nextflow option can be used to provide any configuration except for parameters; see docs.
For more details and further functionality, please refer to the usage documentation and the parameter documentation.
Pipeline output
The pipeline creates one folder per sample in the samplesheet, with a subfolder for each step of the pipeline (<outdir>/<sample>/<step>/). Each step stores its own results, such as topology files (.top), molecular structures (.gro), GROMACS run input files (.tpr) and trajectories (.xtc).
To see the results of an example test run with a full size dataset refer to the results tab on the nf-core website pipeline page. For more details about the output files and reports, please refer to the output documentation.
Credits
nf-core/moleculardynamics has been developed by Sara Tolosa Alarcón (@sarata00) from the Computational Biology Group at the Barcelona Supercomputing Center under the deCYPher project and supervision of Miguel Romero-Durana (@migromero).
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines.
For further information or help, don’t hesitate to get in touch on the Slack #moleculardynamics channel (you can join with this invite).
Citations
All simulation and analysis steps of this pipeline are run with GROMACS. If you use nf-core/moleculardynamics, please also cite GROMACS:
GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers.
Mark James Abraham, Teemu Murtola, Roland Schulz, Szilárd Páll, Jeremy C. Smith, Berk Hess & Erik Lindahl.
SoftwareX. 2015;1-2:19-25. doi: 10.1016/j.softx.2015.06.001.
An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
You can cite the nf-core publication as follows:
The nf-core framework for community-curated bioinformatics pipelines.
Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.
Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.

