Af Analysis logo

Af Analysis

Community
makabaka007x
af-analysis

Analyze AlphaFold3 prediction outputs with the af-analysis Python package. Use for AlphaFold Server fold_*.zip files, local AF3 output directories containing model structures and JSON files, ipTM_d0, pDockQ, mpDockQ, LIS, PAE matrices, ranking AF3 models, or generating AF3 interface-quality summaries and plots.

Overview

Publishermakabaka007x
Repositorycadd-skill
Skill nameaf-analysis
Stars
54
Forks
6
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by makabaka007x on GitHub. Read the source before you install it.

Installation

Install the Af Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/makabaka007x/cadd-skill/tree/main/skills/af-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/makabaka007x/cadd-skill.git /tmp/cadd-skill
mkdir -p .claude/skills
cp -r /tmp/cadd-skill/skills/af-analysis .claude/skills/af-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Af Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Af Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Af Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AlphaFold3 深度分析 (af-analysis)

安装

af-analysis 包已安装 (v0.1.5)。如需要重新安装:

bash
pip install af-analysis

依赖包:cmcrameri, ipywidgets, mdanalysis, nglview, numpy, pandas, pdb_numpy, scikit-learn, seaborn, tqdm

触发条件

  • 工作目录包含 fold_*.zip 文件(AlphaFold Server 输出)
  • 或工作目录包含 AlphaFold3 本地运行的输出目录(含 .cif/.pdb + json 文件)
  • 需要深度分析 PPI 预测质量(超越基础 IPTM 排序)

使用方法

1. 快速 Ranking 分析

生成按 ipTM 排序的对比表格(输出到终端):

bash
python /path/to/cadd-skill/skills/af-analysis/af3_ranking.py --input .

输出到文件:

bash
# Markdown 格式
python /path/to/cadd-skill/skills/af-analysis/af3_ranking.py --input . --output af3_ranking.md --format markdown

# CSV 格式(可用 Excel 打开)
python /path/to/cadd-skill/skills/af-analysis/af3_ranking.py --input . --output af3_ranking.csv --format csv

# 同时输出两种格式
python /path/to/cadd-skill/skills/af-analysis/af3_ranking.py --input . --output af3_ranking --format both

2. 深度分析单个样本

bash
python /path/to/cadd-skill/skills/af-analysis/af3_deepanalyze.py --zip fold_target_complex.zip --output target_complex_analysis/

输出包括:

  • analysis_summary.txt - 分析报告
  • pae_matrix.png - PAE 矩阵热图

输出指标说明

指标说明质量判断
ipTM接口预测模板分数 (AlphaFold3 原生)>0.4 高质量,0.2-0.4 中等,<0.2 低质量
ipTM_d0基于 Dunbrack 实验室方法的改进 ipTM更可靠的 PPI 质量指标
pTM整体预测模板分数越高越好
pDockQ蛋白 - 蛋白相互作用质量评分>0.23 可能是生物复合物,>0.49 高质量
mpDockQ多链 pDockQ适用于多聚体复合物
Chain Pair PAE Min链间最小 PAE<10 表示界面可靠
LIS局部相互作用评分补充评估界面质量

示例输出

Ranking 表格

markdown
| 排名 | 项目名称 | ipTM | ipTM_d0 | pDockQ | PTM | Chain Pair PAE Min |
|------|----------|------|---------|--------|-----|-------------------|
| 1 | target_partner_1 | 0.49 | 0.52 | 0.61 | 0.52 | 3.66 |
| 2 | target_partner_2 | 0.42 | 0.45 | 0.53 | 0.45 | 3.82 |
| 3 | low_confidence_pair | 0.16 | 0.18 | 0.12 | 0.57 | 25.62 |

深度分析报告

包含:

  • PAE 矩阵热图(链内 + 链间)
  • pLDDT 分布图
  • 3D 结构可视化(使用 NGLView)
  • 界面残基分析

Python API 使用示例

python
from af_analysis import Data
from af_analysis.analysis import ipTM_d0, pdockq, mpdockq

# 加载数据
data = Data(directory=".", format="af3_webserver")

# 计算高级指标
ipTM_d0(data)
pdockq(data)
mpdockq(data)

# 查看结果
print(data.df[["query", "ipTM", "ipTM_d0_A_B", "pDockQ", "mpDockQ"]])

# 绘制 PAE 矩阵
data.plot_pae(index=0)

# 显示 3D 结构
data.show_3d(index=0)

注意事项

  1. zip 文件处理: 脚本会自动解压 zip 文件到临时目录进行分析
  2. 数据格式: af-analysis 包期望特定命名格式,脚本会自动处理转换
  3. 可视化依赖: NGLView 需要在 Jupyter 环境中使用
  4. 内存使用: 大批量分析时注意内存占用,建议分批处理

与 af3-ranking 的区别

特性af3-ranking (旧)af-analysis (新)
实现方式Shell + jqPython + af-analysis 包
指标IPTM, PTM, PAEipTM, ipTM_d0, pDockQ, mpDockQ, LIS
可视化无PAE 热图、pLDDT 分布、3D 结构
输出格式Markdown/CSVMarkdown/CSV + 图表 + 报告
适用场景快速筛查深度分析

参考文献

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Af Analysis AI skill do?

Analyze AlphaFold3 prediction outputs with the af-analysis Python package. Use for AlphaFold Server fold_*.zip files, local AF3 output directories containing model structures and JSON files, ipTM_d0, pDockQ, mpDockQ, LIS, PAE matrices, ranking AF3 models, or generating AF3 interface-quality summaries and plots.

Why use Af Analysis on TypingMind?

Because you install it once and use it with any model. Af Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Af Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/makabaka007x/cadd-skill/tree/main/skills/af-analysis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Af Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Af Analysis?

As many as you like. As long as a model supports skills, you can use Af Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Af Analysis AI skill free?

It is published on GitHub by makabaka007x. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇