← 返回 Skills 市场
billwanttobetop

AutoMD-Viz

作者 Billwanttobetop · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
147
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install automd-viz
功能描述
Generate publication-quality molecular dynamics visualizations including structures, data plots, trajectory projections, and full reports with journal-specif...
使用说明 (SKILL.md)

AutoMD-Viz - Publication-Quality Visualization for Molecular Dynamics

Version: 1.0.0
Author: Xuan Guo ([email protected])
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:

  • 🎨 Molecular structure visualization (PyMOL)
  • 📊 Data plotting (Matplotlib/Seaborn)
  • 🎬 Trajectory visualization (PCA/t-SNE/UMAP)
  • 📦 Automated report generation
  • 🎯 Journal-specific styles (Nature/Science/Cell)
  • 🔧 High-resolution output (300-600 DPI, SVG/PDF/EPS)

🚀 Quick Start

Installation

# Via ClawHub
clawhub install automd-viz

# Or 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 nature

# Plot RMSD/RMSF data
./automd-viz.sh --type data --input rmsd.xvg --style science

# Trajectory visualization (PCA)
./automd-viz.sh --type trajectory --structure protein.pdb --trajectory md.xtc

# Generate 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 \x3Cfile> - Input structure (PDB/GRO)
  • --style \x3Cnature|science|cell> - Journal style
  • --representation \x3Ccartoon|surface|sticks> - Display style
  • --color \x3Cspectrum|chain|secondary> - Coloring scheme
  • --resolution \x3C300|600> - Output DPI

Example:

./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 \x3Cfile> - Input data file (XVG format)
  • --style \x3Cnature|science|cell> - Journal style
  • --xlabel \x3Ctext> - X-axis label
  • --ylabel \x3Ctext> - Y-axis label
  • --title \x3Ctext> - Plot title

Example:

./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 \x3Cfile> - Reference structure
  • --trajectory \x3Cfile> - Trajectory file (XTC/TRR)
  • --method \x3Cpca|tsne|umap> - Dimensionality reduction method
  • --style \x3Cnature|science|cell> - Journal style

Example:

./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 \x3Cfile> - Reference structure
  • --trajectory \x3Cfile> - Trajectory file
  • --input \x3Cdir> - Analysis results directory
  • --style \x3Cnature|science|cell> - Journal style

Example:

./automd-viz.sh --type report \
  --structure protein.pdb \
  --trajectory md.xtc \
  --input analysis-results/ \
  --style nature

Output:

  • figures/ directory with all figures
  • VISUALIZATION_REPORT.md (summary)

🎨 Journal Styles

Nature Style

  • Font: Arial
  • Font size: 7-9 pt
  • Line width: 0.5-1.0 pt
  • Color: Colorblind-friendly palette
  • Format: PDF/EPS (vector)

Science Style

  • Font: Helvetica
  • Font size: 8-10 pt
  • Line width: 0.75-1.25 pt
  • Color: High-contrast palette
  • Format: PDF/EPS (vector)

Cell Style

  • Font: Arial
  • Font size: 8-12 pt
  • Line width: 1.0-1.5 pt
  • Color: Vibrant palette
  • Format: PDF/EPS (vector)

🔧 Dependencies

Required:

  • Python 3.7+
  • NumPy
  • Matplotlib
  • Seaborn

Optional (for advanced features):

  • PyMOL (structure visualization)
  • scikit-learn (PCA/t-SNE)
  • umap-learn (UMAP)
  • MDAnalysis (trajectory processing)

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.xtc

# Visualize results
automd-viz --type report --input advanced-analysis/ --style nature

Supported analysis outputs:

  • RMSD/RMSF/Rg (from analysis.sh)
  • PCA/Clustering (from advanced-analysis.sh)
  • Binding analysis (from binding-analysis.sh)
  • Trajectory analysis (from trajectory-analysis.sh)
  • Property analysis (from property-analysis.sh)

🐛 Troubleshooting

See publication-viz-errors.md for common issues and solutions.

Quick fixes:

  • PyMOL not found → Install PyMOL or use --no-structure
  • Font issues → Install required fonts or use --font-fallback
  • Memory errors → Reduce trajectory frames with --stride

📖 Examples

See examples/ directory for complete workflows:

  • example_protein/ - Protein structure visualization
  • example_ligand/ - Protein-ligand complex
  • example_membrane/ - Membrane protein system
  • example_trajectory/ - Trajectory analysis

🤝 Contributing

Contributions welcome! Please submit issues and pull requests on GitHub.


📄 License

MIT License - see LICENSE file for details.


📧 Contact

安全使用建议
This skill looks coherent for MD visualization and doesn't ask for secrets. Before installing/running: 1) Verify the upstream GitHub repo and author if you need provenance (SKILL.md points at a GitHub URL but the package source was listed as unknown). 2) Inspect automd-viz.sh yourself (included) — it writes and executes PyMOL scripts and runs inline Python; filenames and parameters are interpolated into scripts, so avoid passing untrusted filenames (a malicious filename could break quoting). 3) Install Python dependencies in a virtualenv/conda environment to avoid affecting system packages. 4) Run first on sample or sandboxed data to ensure behavior matches expectations. If you need higher assurance, request the upstream repo and compare the packaged files to its canonical source and check for any additional commits or network calls not present in these files.
功能分析
Type: OpenClaw Skill Name: automd-viz Version: 1.0.0 The AutoMD-Viz skill bundle is a legitimate scientific visualization toolkit for molecular dynamics data. The primary script, `automd-viz.sh`, uses standard Bash and Python (Matplotlib/Seaborn) logic to generate publication-quality figures and reports. No evidence of data exfiltration, malicious execution, or prompt injection was found; the code is well-documented and its behavior is consistent with the stated purpose of visualizing PDB/GRO structures and XVG data files.
能力评估
Purpose & Capability
Name/description (MD visualization, journal styles) align with the provided SKILL.md, README, and the included automd-viz.sh. Required tools (Python, PyMOL, VMD, Matplotlib/Seaborn) are exactly what a visualization tool needs. The repository reference and examples consistently target MD workflows and AutoMD-GROMACS integration.
Instruction Scope
SKILL.md and automd-viz.sh instruct the agent to run local command-line tools and Python code to read local structure/trajectory/data files and produce images/reports — all within the stated scope. The only scope notes: it expects precomputed projection files (projection_pca.xvg) and integration with external analysis tools (AutoMD-GROMACS/advanced-analysis); it does not attempt to read unrelated system files or exfiltrate data. However, the shell script embeds user-supplied filenames/parameters directly into here-docs and inline Python code without explicit sanitization, which is a robustness/security consideration if used with untrusted filenames/inputs.
Install Mechanism
No install specification is present; this is instruction-only plus a shell entrypoint. SKILL.md suggests installing Python packages via pip (a standard public registry) or cloning from GitHub. No downloads from obscure URLs or archive extraction instructions are present.
Credentials
The skill declares no required environment variables, credentials, or config paths. Runtime behavior uses only local files and standard tool invocation; there are no requests for unrelated secrets or cloud credentials.
Persistence & Privilege
Flags: always is false and the skill is user-invocable; it does not request persistent elevated privileges or modify other skills' configuration. Autonomous invocation is allowed by default but is not combined with other concerning factors.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install automd-viz
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /automd-viz 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: publication-quality visualization for molecular dynamics with structure, data, trajectory, and report modes.
元数据
Slug automd-viz
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AutoMD-Viz 是什么?

Generate publication-quality molecular dynamics visualizations including structures, data plots, trajectory projections, and full reports with journal-specif... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 147 次。

如何安装 AutoMD-Viz?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install automd-viz」即可一键安装,无需额外配置。

AutoMD-Viz 是免费的吗?

是的,AutoMD-Viz 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AutoMD-Viz 支持哪些平台?

AutoMD-Viz 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AutoMD-Viz?

由 Billwanttobetop(@billwanttobetop)开发并维护,当前版本 v1.0.0。

💬 留言讨论