metadata
title: AmberFlow - MD Simulation Pipeline
emoji: π§¬
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
app_port: 7860
AmberFlow - Molecular Dynamics Simulation Pipeline
𧬠AmberFlow is a comprehensive web-based pipeline for preparing and setting up molecular dynamics (MD) simulations using the AMBER force field. This tool provides an intuitive interface for protein structure preparation, parameter generation, and simulation file creation.
Features
π¬ Structure Preparation
- Protein Loading: Upload PDB files or fetch from RCSB PDB database
- Structure Cleaning: Remove water molecules, ions, and hydrogen atoms
- Capping Groups: Add ACE (N-terminal) and NME (C-terminal) capping groups
- Ligand Handling: Preserve and process ligands with automatic force field parameter generation
- 3D Visualization: Interactive molecular viewer using NGL
βοΈ Simulation Parameters
- Force Fields: Support for ff14SB and ff19SB protein force fields
- Water Models: TIP3P and SPCE water models
- System Setup: Configurable box size and ion addition
- Thermodynamics: Temperature and pressure control
π Simulation Steps
- Restrained Minimization: Position-restrained energy minimization
- Minimization: Full system energy minimization
- NPT Heating: Temperature equilibration
- NPT Equilibration: Pressure and temperature equilibration
- Production Run: Configurable production MD simulation
π File Generation
- AMBER Input Files: Complete set of .in files for all simulation steps
- Force Field Parameters: Generated .prmtop and .inpcrd files
- PBS Scripts: HPC submission scripts
- Analysis Scripts: Post-simulation analysis tools
Usage
Load Protein Structure
- Upload a PDB file or enter a PDB ID to fetch from RCSB
- View 3D structure and basic information
Prepare Structure
- Configure structure preparation options
- Remove unwanted components (water, ions, hydrogens)
- Add capping groups for termini
- Handle ligands if present
Set Simulation Parameters
- Choose force field and water model
- Configure system parameters
- Set temperature and pressure
Configure Simulation Steps
- Enable/disable simulation steps
- Set step-specific parameters
- Configure production run duration
Generate Files
- Generate all simulation input files
- Download files as ZIP archive
- Preview generated files
Technical Details
Dependencies
- MDAnalysis: Structure manipulation and analysis
- BioPython: PDB file parsing
- Flask: Web framework
- NGL Viewer: 3D molecular visualization
- AMBER Tools: Force field parameter generation
File Structure
AmberFlow/
βββ app.py # Hugging Face Spaces entry point
βββ requirements.txt # Python dependencies
βββ python/
β βββ app.py # Main Flask application
β βββ structure_preparation.py
β βββ requirements.txt
βββ html/
β βββ index.html # Web interface
βββ css/
β βββ styles.css # Styling
βββ js/
β βββ script.js # Frontend logic
βββ templates/ # AMBER input file templates
βββ add_caps.py # Capping group addition script
Citation
If you use AmberFlow in your research, please cite:
@software{Amberflow2025,
title={AmberFlow: Molecular Dynamics Simulation Pipeline},
author={Hemant Nagar},
year={2025},
url={https://huggingface.co/spaces/hemantn/AmberFlow}
}
Acknowledgments
- Mohd Ibrahim (Technical University of Munich) for the protein capping functionality (
add_caps.py)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
- Author: Hemant Nagar
- Email: hn533621@ohio.edu