AutoMD-Viz
by @billwanttobetop
Generate publication-quality molecular dynamics visualizations including structures, data plots, trajectory projections, and full reports with journal-specif...
clawhub install automd-vizπ About This Skill
AutoMD-Viz - Publication-Quality Visualization for Molecular Dynamics
Version: 1.0.0 Author: Xuan Guo (xguo608@connect.hkust-gz.edu.cn) License: MIT Repository: https://github.com/Billwanttobetop/automd-viz
π Overview
AutoMD-Viz is a standalone visualization toolkit for generating publication-quality figures from molecular dynamics simulation data. It supports multiple visualization types and journal-specific styles (Nature, Science, Cell).
Key Features:
π Quick Start
Installation
# Via ClawHub
clawhub install automd-vizOr manual installation
git clone https://github.com/Billwanttobetop/automd-viz.git
cd automd-viz
chmod +x automd-viz.sh
Basic Usage
# Generate protein structure figure
./automd-viz.sh --type structure --structure protein.pdb --style naturePlot RMSD/RMSF data
./automd-viz.sh --type data --input rmsd.xvg --style scienceTrajectory visualization (PCA)
./automd-viz.sh --type trajectory --structure protein.pdb --trajectory md.xtcGenerate complete report
./automd-viz.sh --type report --structure protein.pdb --trajectory md.xtc --style nature
π Visualization Types
1. Structure Visualization (--type structure)
Generate high-quality molecular structure figures using PyMOL.
Options:
--structure - Input structure (PDB/GRO)--style - Journal style--representation - Display style--color - Coloring scheme--resolution <300|600> - Output DPIExample:
./automd-viz.sh --type structure \
--structure protein.pdb \
--style nature \
--representation cartoon \
--color spectrum \
--resolution 600
Output:
structure_nature.png (high-resolution raster)structure_nature.pse (PyMOL session)2. Data Plotting (--type data)
Plot time-series data (RMSD, RMSF, energy, etc.) with journal-quality formatting.
Options:
--input - Input data file (XVG format)--style - Journal style--xlabel - X-axis label--ylabel - Y-axis label--title - Plot titleExample:
./automd-viz.sh --type data \
--input rmsd.xvg \
--style science \
--xlabel "Time (ns)" \
--ylabel "RMSD (nm)"
Output:
data_plot.pdf (vector graphics)data_plot.png (raster graphics)3. Trajectory Visualization (--type trajectory)
Visualize trajectory in reduced dimensionality space (PCA/t-SNE/UMAP).
Options:
--structure - Reference structure--trajectory - Trajectory file (XTC/TRR)--method - Dimensionality reduction method--style - Journal styleExample:
./automd-viz.sh --type trajectory \
--structure protein.pdb \
--trajectory md.xtc \
--method pca \
--style nature
Output:
trajectory_pca_2d.pdf (2D projection)trajectory_pca_3d.pdf (3D projection)free_energy_landscape.pdf (FEL)4. Automated Report (--type report)
Generate a complete set of publication-ready figures.
Options:
--structure - Reference structure--trajectory - Trajectory file--input - Analysis results directory--style - Journal styleExample:
./automd-viz.sh --type report \
--structure protein.pdb \
--trajectory md.xtc \
--input analysis-results/ \
--style nature
Output:
figures/ directory with all figuresVISUALIZATION_REPORT.md (summary)π¨ Journal Styles
Nature Style
Science Style
Cell Style
π§ Dependencies
Required:
Optional (for advanced features):
Auto-install:
pip install numpy matplotlib seaborn scikit-learn umap-learn MDAnalysis
π Integration with AutoMD-GROMACS
AutoMD-Viz is designed to work seamlessly with AutoMD-GROMACS analysis results.
After running analysis:
# Run analysis
advanced-analysis -s md.tpr -f md.xtcVisualize results
automd-viz --type report --input advanced-analysis/ --style nature
Supported analysis outputs:
analysis.sh)advanced-analysis.sh)binding-analysis.sh)trajectory-analysis.sh)property-analysis.sh)π Troubleshooting
See publication-viz-errors.md for common issues and solutions.
Quick fixes:
--no-structure--font-fallback--strideπ Examples
See examples/ directory for complete workflows:
example_protein/ - Protein structure visualizationexample_ligand/ - Protein-ligand complexexample_membrane/ - Membrane protein systemexample_trajectory/ - Trajectory analysisπ€ Contributing
Contributions welcome! Please submit issues and pull requests on GitHub.
π License
MIT License - see LICENSE file for details.