Aller au contenu
Skillpedia
Machine learning5.4k · #14849

alphafold2

Ce qu’il fait

Cette compétence explique à un agent comment exécuter AlphaFold2 pour prédire le repliement d'une protéine et l'assemblage de ses chaînes. Elle s'adresse à la recherche en protéines et à la vérification de séquences conçues.

Quand l’utiliser

  • ✓Quand un chercheur a besoin de la structure 3D d'une protéine à partir de sa séquence d'acides aminés.
  • ✓Quand un chercheur veut prédire comment deux chaînes protéiques ou plus se lient entre elles.
  • ✓Quand un scientifique veut vérifier une séquence protéique conçue à partir de son repliement prédit.

Lien du skill

https://github.com/aipoch/open-science/blob/main/resources/skills/alphafold2/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/aipoch/open-science/blob/main/resources/skills/alphafold2/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Prédis la structure 3D de cette séquence protéique et dis-moi les scores de confiance du modèle.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent écrit la séquence dans un fichier FASTA, lance la commande batch de ColabFold avec les paramètres d'AlphaFold2, puis lit les modèles classés et leurs scores de confiance. Pour les complexes, toutes les chaînes sont placées sur une ligne, séparées par des deux-points.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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.

Questions fréquentes

Gère-t-elle les ligands ou l'ADN ?

Non. La compétence indique qu'AlphaFold2 ne gère ni les ligands ni les acides nucléiques, et renvoie vers d'autres compétences pour ces cas.

Où se fait la recherche de séquences ?

La compétence utilise le serveur public MMseqs2, donc aucune grande base de données locale n'a besoin d'être installée.

Quel est le format d'entrée ?

Un simple fichier FASTA.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
5.4k
Position au classement
#14849
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires