Foldseek enables fast and sensitive comparisons of large structure sets.
Foldseek enables fast and sensitive comparisons of large structure sets.
Foldseek enables fast and sensitive comparisons of large protein structure sets, supporting monomer and multimer searches, as well as clustering. It runs on CPU, supports GPU acceleration for faster searches, and optionally allows ultra-fast and sensitive comparisons directly from protein sequence inputs using a language model, bypassing the need for structures.
Search your protein structures against the AlphaFoldDB and PDB in seconds using the Foldseek webserver (code): search.foldseek.com
…Other precompiled binaries are available at https://mmseqs.com/foldseek.
[!NOTE] We recently added support for GPU-accelerated protein sequence and profile searches. This requires an NVIDIA GPU of the Ampere generation or newer for full speed, however, also works at reduced speed for Turing-generation GPUs. The bioconda- and precompiled binaries will not work on older GPU generations (e.g. Volta or Pascal).
For optimal software performance, consider three options based on your RAM and search requirements:
With Cα info (default).
Use this formula to calculate RAM - (6 bytes Cα + 1 3Di byte + 1 AA byte) * (database residues). The 54M AFDB50 entries require 151GB.
Without Cα info.
By disabling --sort-by-structure-bits 0, RAM requirement reduces to 35GB. However, this alters hit rankings and final scores but not E-values. Structure bits are mostly relevant for hit ranking for E-value > 10^-1.
Single query searches.
Use the --prefilter-mode 1, which isn't memory-limited and computes all optimal ungapped alignments. This option optimally utilizes foldseek's multithreading capabilities for single queries and supports GPU acceleration.
A Foldseek tutorial covering the webserver and command-line usage is available here.
Many of Foldseek's modules (subprograms) rely on MMseqs2. For more information about these modules, refer to the MMseqs2 wiki. For documentation specific to Foldseek, checkout the Foldseek wiki here.
The easy-search module allows to query one or more single-chain proteins, formatted in as protein structures in PDB/mmCIF format (flat or gzipped) or as protein sequnece in fasta, against a target database, folder or individual single-chain protein structures (for multi-chain proteins see complexsearch). The default alignment information output is a tab-separated file but Foldseek also supports Superposed Cα PDBs and HTML.
foldseek easy-search example/d1asha_ example/ aln tmpFolderThe default output fields are: query,target,fident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits but they can be customized with the --format-output option e.g., --format-output "query,target,qaln,taln" returns the query and target accessions and the pairwise alignments in tab-separated format. You can choose many different output columns.
| Code | Description |
|---|---|
| query | Query sequence identifier |
| target | Target sequence identifier |
| qca | Calpha coordinates of the query |
| tca | Calpha coordinates of the target |
| alntmscore | TM-score of the alignment |
| qtmscore | TM-score normalized by the query length |
| ttmscore | TM-score normalized by the target length |
| u | Rotation matrix (computed to by TM-score) |
| t | Translation vector (computed to by TM-score) |
| lddt | Average LDDT of the alignment |
| lddtfull | LDDT per aligned position |
| prob | Estimated probability for query and target to be homologous (e.g. being within the same SCOPe superfamily) |
Check out the MMseqs2 documentation for additional output format codes.
Foldseek's --format-mode 5 generates PDB files with all target Cα atoms superimposed onto the query structure based on the aligned coordinates.
For each pairwise alignment it will write its own PDB file, so be careful when using this options for large searches.
Locally run Foldseek can generate an HTML search result, similar to the one produced by the webserver by specifying --format-mode 3
foldseek easy-search example/d1asha_ example/ result.html tmp --format-mode 3| Option | Category | Description |
|---|---|---|
| -s | Sensitivity | Adjust sensitivity to speed trade-off; lower is faster, higher more sensitive (fast: 7.5, default: 9.5) |
| --num-iterations | Sensitivity | Enables iterative search to find more distantly related hits (Default: off). Recommended --num-iterations 0 optimized version |
| --exhaustive-search | Sensitivity | Skips prefilter and performs an all-vs-all alignment (more sensitive but much slower) |
| --max-seqs | Sensitivity | Adjust the amount of prefilter handed to alignment; increasing it can lead to more hits (default: 1000) |
| -e | Sensitivity | List matches below this E-value (range 0.0-inf, default: 0.001); increasing it reports more distant structures |
| --cluster-search | Sensitivity | For clustered databases like AFDB50, CATH50 trigger a cluster search: 0: search only representatives (fast), 1: align and report also all members of a cluster (default: 0) |
| --alignment-type | Alignment | 0: 3Di Gotoh-Smith-Waterman (local, not recommended), 1: TMalign (global, slow), 2: 3Di+AA Gotoh-Smith-Waterman (local, default), 3: LoLalign (local, slow) |
| --lolalign-multidomain | Alignment | LoLalign (--alignment-type 3) mode: 1: multi-domain (default, no length normalization), 0: single-domain (incorporates query/target lengths) |
| --candidate-seeds | Alignment | LoLalign: number of candidate seeds to consider for expansion (default: 10) |
| --refine-seeds | Alignment | LoLalign: number of top candidate seeds re-aligned to pick the best one for expansion (default: 3) |
| -c | Alignment | List matches above this fraction of aligned (covered) residues (see --cov-mode) (default: 0.0); higher coverage = more global alignment |
| --cov-mode | Alignment | 0: coverage of query and target, 1: coverage of target, 2: coverage of query |
| --gpu | Performance | Enables fast GPU-accelerated ungapped prefilter (--prefilter-mode 1) (default: off), ignores -s. Use --gpu 1 to enable. |
By default, Foldseek uses its local 3Di+AA structural alignment, but it also supports realigning hits using the global TMalign or local LoLalign, as well as rescoring alignments using TMscore or LoLscore respectively.
foldseek easy-search example/d1asha_ example/ aln tmp --alignment-type 1If alignment type is set to tmalign (--alignment-type 1), the results will be sorted by the TMscore normalized by query length. The TMscore is use
No open issues yet, or sync has not completed.