AF-Cluster
commit 6b22451Cluster MSAs to predict alternative protein conformations with AlphaFold2
AF-Cluster is a method for predicting multiple protein conformations by clustering a multiple sequence alignment (MSA) before running AlphaFold2. Standard AlphaFold2 predictions converge on a single dominant structure, even for proteins that adopt two or more biologically relevant folds. AF-Cluster addresses this by splitting the MSA into sequence subgroups using the DBSCAN density-based clustering algorithm, then generating separate AlphaFold2 predictions from each cluster.
The approach was developed by Hannah Wayment-Steele and colleagues and published in Nature (volume 625) in 2024. The authors validated the method on metamorphic proteins, including the cyanobacterial clock protein KaiB, where AF-Cluster correctly predicted both the ground-state and fold-switched conformations. NMR spectroscopy confirmed that a KaiB variant predicted by AF-Cluster was indeed stabilized in the opposite fold.
Proteins evolve under selective pressure to maintain function, and function often requires switching between conformational states. Homologous sequences in an MSA may carry co-evolutionary signals for different conformations. When the full MSA is fed to AlphaFold2, these conflicting signals average out and the prediction collapses onto a single state.
AF-Cluster separates these signals by clustering the MSA:
- characters is strictly below the selected cutoff.min_samples sequences; sequences outside dense regions are labeled as noise.Each cluster's alignment can then be used as input to AlphaFold2 independently, producing structure predictions that may capture different conformational states.
ProteinIQ runs the commit-pinned AF-Cluster source on cloud infrastructure, so no software installation is needed. The current source revision is 6b22451. The runtime applies the identified proteiniq-cli-numeric-types-v1 parser correction and verifies the original and corrected entrypoint digests before publishing the image.
| Input | Description |
|---|---|
Multiple Sequence Alignment | A protein MSA in FASTA or A3M format. The first sequence is the query, and the first non-query sequence sets the source encoding width after lowercase A3M insertions are removed. With controls enabled, at least 10 non-query sequences must remain after gap filtering. With zero controls, fixed-epsilon clustering needs at least 1 retained non-query sequence, automatic scanning needs 3, PCA needs 2, and t-SNE needs 30. Jobs accept up to 5,000 sequences, 2,000,000 aligned sequence cells, and 5,000,000 submitted characters; uploaded files are limited to 5 MiB. |
MSAs can be generated from tools like Clustal Omega or MAFFT, or obtained from databases such as UniRef or ColabFold search.
The native FASTA parser accepts leading text before the first record and empty record identifiers. A longer non-query record is checked for encoding width only if it survives gap filtering. Sequence identifiers, including names such as 001, remain text in the results.
| Setting | Description |
|---|---|
Min samples per cluster | Positive integer controlling the minimum number of sequences required to form a DBSCAN cluster (default 3). Higher values produce fewer, more populated clusters. |
Gap fraction cutoff | Positive cutoff that removes each non-query sequence when its gap fraction is at or above the selected value (default 0.25). Lower values enforce stricter filtering; values above 1 retain every sequence. |
DBSCAN epsilon | Non-negative Euclidean-distance threshold for DBSCAN neighborhood membership (default 0 for automatic). At 0, AF-Cluster scans 3–20 in 0.5 increments. |
Minimum epsilon | Positive first epsilon tested during automatic scanning (default 3). |
Maximum epsilon | Endpoint of the native scan range (default 20). Use a smaller endpoint with a negative step for a descending scan. |
Epsilon step | Nonzero increment between automatic epsilon candidates (default 0.5). Hosted automatic scans are limited to 100 candidates. The first tested epsilon must be positive. Scan bounds do not select the clustering epsilon when a fixed epsilon is supplied. |
Control alignment count | Number of independently sampled U10 controls and, when enough sequences remain, U100 controls (0–20, source default 10). Select 0 to skip control generation. |
Shuffle sequence order | Apply the source resample option, which randomly shuffles non-query rows before clustering. Despite the source option name, it does not sample with replacement. The shuffled first row defines the encoder width. Unequal widths can therefore succeed or fail depending on the source's shuffled order; source failures are reported directly. |
| Setting | Description |
|---|---|
Generate PCA plot | Project clustered sequences onto their first two principal components. Useful for seeing how clusters separate in sequence space. |
Generate t-SNE plot | Generate the source t-SNE embedding. This source revision represents the appended query as an all-zero vector in this branch. At least 30 retained non-query sequences are needed by the source t-SNE defaults. |
AF-Cluster produces several files:
_REF.a3m file described in its README.All of these artifacts are available to workflows. Cluster and control alignments are emitted as separate sequence artifacts so each alignment can be connected directly to a downstream folding step.
The on-screen assignments table previews up to 1,000 rows. The downloadable clustering-assignments TSV always retains every source row.
AF-Cluster is most valuable for proteins suspected of adopting multiple folds:
Infer maximum-likelihood phylogenetic trees from aligned protein, DNA, or binary character data with bootstrap support.
Predict intrinsically disordered regions and per-residue disorder probabilities from protein sequences.
Restore residues and generate antibody-specific representations or likelihood scores.
Predict non-germline residues and generate embeddings for paired or unpaired antibody sequences.
Model accuracy estimation and sequence ranking with AlphaFold
Analyze aggregation-prone regions in a protein structure.
Predict metal and water binding sites in proteins with 3D CNN models.
Antibody language model for scoring, classification, embeddings and masked-residue filling
Predict protein aggregation nucleation propensity from amino acid sequences.
Automated atomic model building for cryo-EM maps