AmberFlow / README.md
hemantn's picture
YAML error fixed
bf5f9c7
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

  1. Load Protein Structure

    • Upload a PDB file or enter a PDB ID to fetch from RCSB
    • View 3D structure and basic information
  2. Prepare Structure

    • Configure structure preparation options
    • Remove unwanted components (water, ions, hydrogens)
    • Add capping groups for termini
    • Handle ligands if present
  3. Set Simulation Parameters

    • Choose force field and water model
    • Configure system parameters
    • Set temperature and pressure
  4. Configure Simulation Steps

    • Enable/disable simulation steps
    • Set step-specific parameters
    • Configure production run duration
  5. 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