alphafold2
Skill này làm gì
Skill này dạy agent cách chạy AlphaFold2 để dự đoán cách protein gấp và cách các chuỗi protein khớp với nhau. Skill dành cho nghiên cứu protein và kiểm tra các trình tự được thiết kế.
Khi nào nên dùng
- ✓Khi nhà nghiên cứu cần cấu trúc 3D của một protein từ trình tự axit amin của nó.
- ✓Khi nhà nghiên cứu muốn dự đoán cách hai hoặc nhiều chuỗi protein liên kết với nhau.
- ✓Khi nhà khoa học muốn kiểm tra một trình tự protein được thiết kế qua nếp gấp dự đoán của nó.
Liên kết skill
https://github.com/aipoch/open-science/blob/main/resources/skills/alphafold2/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dự đoán cấu trúc 3D của trình tự protein này và cho tôi biết điểm tin cậy của mô hình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent ghi trình tự vào file FASTA, chạy lệnh batch ColabFold với thiết lập AlphaFold2, rồi đọc các mô hình được xếp hạng và điểm tin cậy. Với phức hợp, mọi chuỗi được đặt trên một dòng và ngăn cách bằng dấu hai chấm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
AlphaFold2 (ColabFold runner)
This skill wraps AlphaFold2 and AlphaFold2-Multimer through colabfold_batch,
which replaces DeepMind's local-database MSA pipeline with a call to the public
MMseqs2 server — so a prediction is one command and one FASTA, not a 2 TB
database mount. AF2 remains the reference monomer predictor and the multimer
model is still a strong protein–protein validator, but it does not handle
ligands or nucleic acids; for those, route to boltz, chai1, or openfold3.
The ColabFold code is MIT (github.com/sokrypton/ColabFold) and the AlphaFold2
code is Apache-2.0 (github.com/google-deepmind/alphafold); the AF2 model
parameters are CC-BY-4.0 with DeepMind's terms of use.
Running it
colabfold_batch input.fasta out \
--num-recycle 3 \
--model-type alphafold2_multimer_v3
The input is a plain FASTA. For a complex, put every chain on one sequence
line separated by : — colabfold_batch builds a paired MSA per segment and
runs the multimer model when it sees the colon (so the explicit --model-type alphafold2_multimer_v3 above is belt-and-braces). For monomers omit
--model-type and the colon. --templates and --amber add PDB templates
and OpenMM relaxation respectively; both are off by default and both add
minutes per model.
ColabFold runs all five AF2 model weights by default and ranks them by pLDDT
(pTM/ipTM for multimer), so output per query lands in out/ as five ranked
PDBs <name>_unrelaxed_rank_00{1..5}_*.pdb (b-factor column carries pLDDT)
and a matching <name>_scores_rank_00{N}_*.json with plddt, ptm, and — for
multimer — iptm and the pae matrix. Rank-1 is the model to read first;
ipTM > 0.5 is the usual soft pass for an interface.
Unified-memory defaults loop forever under gVisor — the env patches them out
colabfold/batch.py hard-sets TF_FORCE_UNIFIED_MEMORY=1 and
XLA_PYTHON_CLIENT_MEM_FRACTION=4.0 on import. Under a gVisor sandbox unified
memory is unsupported, so JAX's device_put loops indefinitely allocating
host RAM during AF2 parameter load — the job appears hung, never errors.
Override both before the import (TF_FORCE_UNIFIED_MEMORY=0, fraction
0.95), or sed-patch the two assignments out of batch.py in the image
build, or the first fold never starts.
The MSA server is the wall-clock bottleneck, and it is shared
colabfold_batch defaults to --msa-mode mmseqs2_uniref_env, which posts your
sequence to api.colabfold.com. That server is a public, rate-limited
resource: the wait dominates short folds and occasionally times out under load.
For campaigns, run the MSA stage once with --msa-only, keep the resulting
.a3m files, and feed the directory back as the input on subsequent runs — the
GPU stage then starts immediately and the server is not hit again.
Errors worth recognizing
| You see | It means / do this |
|---|---|
| Job hangs silently during "Running model_1" with host RAM climbing | Unified-memory loop under gVisor — see the gotcha above; override or patch batch.py. |
RESOURCE_EXHAUSTED / OOM during XLA compile |
XLA_PYTHON_CLIENT_MEM_FRACTION too high for the GPU — drop below the 0.95 default to 0.9 or so. |
MSA stage hangs at Submitting job |
Public MMseqs2 server is rate-limiting — wait, or pre-compute with --msa-only and re-run from the cached .a3m. |
Next: for designed-sequence validation, superpose the rank-1 model onto
the design backbone with US-align and gate on pLDDT/ipTM thresholds; for
ligand-bearing complexes, hand the same chains to boltz or chai1.
Câu hỏi thường gặp
Nó có xử lý ligand hoặc DNA không?
Không. Skill nói AlphaFold2 không xử lý ligand hay axit nucleic, và chỉ đến các skill khác cho những việc đó.
Tìm kiếm trình tự chạy ở đâu?
Skill dùng máy chủ MMseqs2 công khai, nên không cần cài cơ sở dữ liệu cục bộ lớn.
Định dạng đầu vào là gì?
Một file FASTA thuần.
Chi tiết
Mô tả gốc của tác giả
Predict protein structure for monomers and multimers with AlphaFold2 via the ColabFold runner (Mirdita et al. 2022, github.com/sokrypton/ColabFold; AlphaFold2 Jumper et al. 2021). Reach for this skill to fold a sequence or complex with the AF2/AF2-Multimer evoformer, to validate designed sequences by self-consistency pLDDT, ipTM, and RMSD, or to run a quick MSA-backed prediction using the public MMseqs2 server.
repo: aipoch/open-science
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14849
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
boltz
5.4kGiúp agent của bạn dự đoán cấu trúc của phức hợp protein, DNA, RNA và phân tử nhỏ bằng mô hình mã nguồn mở Boltz-2, với ước tính ái lực liên kết tùy chọn.
borzoi
5.4kGiúp agent của bạn dự đoán các track hoạt động trên toàn bộ genome, như biểu hiện gen và khả năng tiếp cận, từ trình tự DNA, và so sánh các biến thể theo tác động dự đoán.
chai1
5.4kGiúp agent của bạn dự đoán cấu trúc của phức hợp protein, axit nucleic và ligand từ một file FASTA, bằng mô hình Chai-1 được cấp phép Apache.
compute-env-setup
5.4kGiúp agent của bạn chuẩn bị một môi trường phần mềm dùng lại được trên máy tính Open Science qua SSH, để các công việc từ xa có thể tải những gói cần thiết.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.