界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

analysis-workflows

analysis-workflows

【数据与研究】Run MDAnalysis analysis classes, custom AnalysisBase workflows, numerical distance analyses, and analysis backend validation.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: analysis-workflows description: "Run MDAnalysis analysis classes, custom AnalysisBase workflows, numerical distance analyses, and analysis backend validation." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

MDAnalysis Analysis Workflows

Use this sub-skill when the task is to run built-in MDAnalysis.analysis modules, interpret analysis.results, convert frame loops into AnalysisBase, or debug analysis backends and numerical outputs.

Route First

  • For loading files, building synthetic Universe objects, attaching trajectories, or writer setup, read ../universe-io/SKILL.md first.
  • For atom selection language, empty selections, updating selections, topology attributes, masses, charges, bonds, or custom attributes, read ../selections-topology/SKILL.md first.
  • For on-the-fly transformations, PBC unwrapping/centering before analysis, or writing transformed trajectories, read ../transformations-writing/SKILL.md first.

Use This For

  • Running AnalysisBase.run(start=..., stop=..., step=...) or run(frames=...) and validating frames, times, n_frames, and results.
  • Choosing and interpreting RMSD, RMSF, alignment, contacts, distance arrays, RDF, hydrogen bonds, PCA, MSD, leaflet, and density analyses.
  • Writing a small custom AnalysisBase subclass with deterministic result arrays and optional split-apply-combine aggregation.
  • Selecting safe analysis backends: default serial execution, supported multiprocessing or dask backends, and distance-function backends.
  • Diagnosing analysis-specific failures such as empty selections, mass mismatches, missing charges/bonds, PBC boxes, deprecated result aliases, and result-shape confusion.

References

  • references/analysis-api.md summarizes verified signatures, result containers, result shapes, and backend rules.
  • references/recipes.md gives practical workflows for built-in analyses and custom AnalysisBase implementations.
  • references/troubleshooting.md maps common analysis symptoms to concrete recovery steps.
  • scripts/analysis_smoke_check.py runs a tiny synthetic custom analysis and distance-array validation without repo test data.

Safe Validation

Run the bundled smoke check in an environment where MDAnalysis is installed:

python scripts/analysis_smoke_check.py

Expected output includes PASS custom AnalysisBase frames/results, PASS PBC distance_array preallocated result, and PASS frames/start conflict validation.

我的收藏