Proto is not affiliated with the Steinegger Lab. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.
Background
FoldMason (Gilchrist, Mirdita & Steinegger, 2026) is a progressive multiple-structure alignment method that scales to hundreds of thousands of protein structures. Each input structure is first encoded as a string over the 3Di alphabet, the structural alphabet introduced with Foldseek that represents the local backbone geometry of each residue as a discrete letter. FoldMason then aligns the 3Di strings alongside their amino-acid sequences through a progressive procedure that follows a structural guide tree, using Foldseek and TM-align as the pairwise structural aligners at each merge step. An optional iterative refinement procedure can re-align the result to maximise its LDDT score. The output is a column-by-column alignment expressed in both alphabets together with the Newick guide tree. Alignment quality is summarised with the Local Distance Difference Test (lDDT) (Mariani et al., 2013), a superposition-free metric that scores local atomic-distance agreement between two structures. FoldMason’smsa2lddt computes LDDT on each pairwise sub-alignment, maps the per-residue scores back to MSA columns, and averages across pairs to produce one column-wise score and one overall average. The reference implementation is released as open source by the Steinegger Lab at steineggerlab/foldmason. The same group operates a public web service at search.foldseek.com/foldmason that the remote execution mode of this toolkit targets.
Learning Resources
- steineggerlab/foldmason (Steinegger Lab, Seoul National University) - official repository, command-line interface for
easy-msa,structuremsa,refinemsa, andmsa2lddt, and the FASTA output format that this toolkit parses. - search.foldseek.com/foldmason (Steinegger Lab) - the public web service that the remote execution mode targets, useful for a single browser-based alignment before scripting against the tool.
Tools
FoldMason MSA (foldmason-msa)
Aligns two or more PDB structures and returns the amino-acid and 3Di MSAs as FASTA strings together with the Newick guide tree, the alignment length, and the number of sequences aligned. The tool executes against the public Steinegger Lab web service in remote mode and against the bundled foldmason easy-msa program in local mode.API Reference
Input: FoldmasonMSAInput
Input: FoldmasonMSAInput
Structure objects, file paths, or raw PDB/CIF content strings per item; each is normalised to a Structure.'structure_0', 'structure_1', …). Length must match structures. IDs become the FASTA record headers and Newick leaf labels in the output.Config: FoldmasonMSAConfig
Config: FoldmasonMSAConfig
remote, localstructure_ids.True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: FoldmasonMSAOutput
Output: FoldmasonMSAOutput
Applications
This tool is appropriate for aligning a fold family retrieved from a Foldseek search, for comparing designed scaffolds against their target backbone, or for assembling a multi-structure template ensemble for downstream template-based modelling. It also applies to AlphaFold predictions across an evolutionary set, where the alignment can identify residues that are structurally conserved as well as loops that vary in conformation.Usage Tips
foldmason-msasupports both remote (search_mode="remote", the default) and local (search_mode="local") execution. Remote mode targets the Steinegger Lab web service. Local mode runs the bundled FoldMason program and accepts the full set of alignment parameters.- The Steinegger Lab web service does not accept alignment parameters. The configuration fields
gap_open,gap_extend,refine_iters,precluster, andguide_tree_newicktherefore requiresearch_mode="local". refine_iterscontrols how many iterative LDDT-maximising refinement passes run after the initial progressive alignment. Each pass adds runtime, and the default of0is appropriate for most workflows. Increase it only when an alignment shows poor quality in difficult regions.- The remote service has no authentication and no published rate limit.
search.foldseek.com/foldmasonis a free public academic resource. High-throughput or batch workloads should be performed inlocalmode to avoid overloading the shared service.
FoldMason Score MSA (foldmason-score-msa)
Accepts a precomputed amino-acid MSA in FASTA format together with the underlying PDB structures, and returns the average MSA-wide LDDT score, the per-column LDDT scores, the number of columns considered, and the total alignment length.API Reference
Input: FoldmasonScoreMSAInput
Input: FoldmasonScoreMSAInput
Structure objects, file paths, or raw PDB/CIF content strings per item; each is normalised to a Structure. Order must match the rows of msa.'structure_0', …). Must match the FASTA record headers in msa so msa2lddt can resolve each row to its structure.foldmason-msa. Accepts an MSA object or a raw FASTA string.Config: FoldmasonScoreMSAConfig
Config: FoldmasonScoreMSAConfig
structure_ids. None lets foldmason recompute the tree internally.True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: FoldmasonScoreMSAOutput
Output: FoldmasonScoreMSAOutput
alignment_length.Applications
This tool is appropriate for assigning a structural quality score to an MSA produced elsewhere, for identifying low-LDDT columns that should be masked or treated as variable loops before downstream analysis, or for comparing two candidate alignments of the same structures using a single summary score.Usage Tips
- FASTA record headers must match
structure_ids.msa2lddtresolves each MSA row to its corresponding structure by matching the header against the supplied identifiers. Headers that do not correspond to a supplied structure are not scored, which can produce a misleadingly high score derived from a partial alignment. only_scoring_cols=Truenormalises the average LDDT by the number of scored columns rather than by the total alignment length. Use this option when comparing alignments with different gap content. Leaving itFalse(the default) includes gap columns in the denominator.- This tool runs only in local mode. The public web service does not provide an
msa2lddtendpoint, so everyfoldmason-score-msacall requires the local FoldMason program.
Toolkit Notes
These apply to every FoldMason tool in this toolkit (foldmason-msa, foldmason-score-msa).
- FoldMason runs on CPU only. Neither the remote service nor the local program uses a GPU. Local-mode runtime grows with both the number of structures and their lengths, since each progressive merge step performs a pairwise structural alignment.
- Inputs are PDB-format text strings. Each entry is written to disk as
{structure_id}.pdbbefore alignment, so each structure should be supplied as PDB-format text instructures. The upstream FoldMason CLI also accepts mmCIF, but this toolkit does not currently support mmCIF input.

Steinegger Lab