Skip to content
Back to skills

Alphafold2

ASecurity

"Guide alphafold2-pytorch protein sequence, MSA, distogram,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
businesspythonbashgitapibackend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill alphafold2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Alphafold2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Alphafold2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-alphafold2/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-alphafold2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: alphafold2
description: "Guide alphafold2-pytorch protein sequence, MSA, distogram,
  angle-logit, coordinate-refinement, recycling, embedding, and
  structure-utility workflows with version-aware troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# alphafold2-pytorch

Use this skill when a task names `alphafold2-pytorch`, `alphafold2_pytorch`,
`Alphafold2`, `Evoformer`, protein sequence/MSA folding, distograms, angle
logits, residue coordinates, ESM/MSA/ProtTrans embeddings, recycling, MDS, or
protein-structure metrics.

This graph targets the unofficial PyTorch implementation at distribution
version `0.4.32`. It is not the official DeepMind AlphaFold2 implementation.
Its current source and README disagree in several places; prefer the verified
current API described by the linked sub-skills over older README recipes.

## Install and inspect

Install the public distribution, then verify the import before building a
model:

```bash
python -m pip install alphafold2-pytorch==0.4.32
python -c "import alphafold2_pytorch; print(alphafold2_pytorch.Alphafold2)"
```

Coordinate and utility paths also need the scientific and geometric
requirements declared by the distribution, including a mutually compatible
PyTorch/PyTorch3D pair, `invariant-point-attention`, `sidechainnet`,
`mdtraj`, `ProDy`, `mp-nerf`, and OpenMM where the selected helper imports it.
Use [the environment checker](scripts/check_environment.py) for a read-only
summary; use [cross-cutting troubleshooting](references/troubleshooting.md)
when dependency resolution selects an incompatible backend.

## Route by task

- **Core sequence/MSA trunk, Evoformer, distograms, angle logits, masks,
  templates, and current constructor/forward contracts:** read
  [core-model](sub-skills/core-model/SKILL.md).
- **Residue coordinates, invariant-point refinement, confidence, auxiliary
  returns, and recycling:** read
  [structure-and-recycling](sub-skills/structure-and-recycling/SKILL.md).
- **ESM, MSA Transformer, ProtTrans wrappers or safe precomputed
  representations:** read [embeddings](sub-skills/embeddings/SKILL.md).
- **Distogram-to-distance conversion, MDS, atom masks, sidechain layouts,
  Kabsch, LDDT, GDT, TM-score, and distance losses:** read
  [utilities](sub-skills/utilities/SKILL.md).

Start with the owning sub-skill, then follow its API reference and
troubleshooting file. Cross-links are deliberate: do not duplicate a sibling's
full API table in the root router.

## Operating constraints

- Use tiny synthetic tensors first. The model is quadratic in sequence length
  for several trunk operations, and untrained outputs are not scientific
  structure predictions.
- At this version, normal MSA input has shape `(B, M, N)` with the same residue
  width `N` as `seq`; masks should be boolean and on the same device.
- CPU is the default verification backend. CUDA is an optional acceleration
  path and must be checked on the actual host; a visible CUDA installation is
  not proof that a shared device has enough memory.
- Pretrained embedding wrappers may download code or weights and may require
  caches, network access, Hugging Face/torch.hub support, or fused operations.
  Do not trigger those side effects without explicit approval.
- Full training, multi-terabyte MSA acquisition, DeepSpeed sparse attention,
  PyRosetta relaxation, and notebook-scale experiments are intentionally not
  part of this runtime graph. See [limitations](references/limitations.md).

## Provenance and refresh

Read [repository provenance](references/repo-provenance.md) before treating
this graph as current for another checkout. Refresh it when the commit,
package version, public signatures, or evidence paths change. The generated
runtime graph is self-contained and does not require the source checkout to
remain available.

Files in this skill

  • SKILL.md3.8 KB
  • references/limitations.md2 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json328 B
  • references/troubleshooting.md3.2 KB
  • scripts/check_environment.py1.5 KB
  • sub-skills/core-model/SKILL.md2.7 KB
  • sub-skills/core-model/references/api-reference.md12.5 KB
  • sub-skills/core-model/references/troubleshooting.md7 KB
  • sub-skills/core-model/references/workflows.md6 KB
  • sub-skills/core-model/scripts/core_smoke.py8.2 KB
  • sub-skills/embeddings/SKILL.md3 KB
  • sub-skills/embeddings/references/api-reference.md8.3 KB
  • sub-skills/embeddings/references/external-models.md6.6 KB
  • sub-skills/embeddings/references/troubleshooting.md7 KB
  • sub-skills/embeddings/scripts/embedding_input_smoke.py5 KB
  • sub-skills/structure-and-recycling/SKILL.md3.7 KB
  • sub-skills/structure-and-recycling/references/api-reference.md10.6 KB
  • sub-skills/structure-and-recycling/references/troubleshooting.md7.6 KB
  • sub-skills/structure-and-recycling/references/workflows.md7.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…