> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Foldseek Structure Novelty

> Penalize Foldseek similarity (e-value or TM-score) of an attached structure to known structures.

![Foldseek Structure Novelty](https://proto-bio.github.io/proto-assets/images/constraint/foldseek-novelty/hero.png)

> [!NOTE]
>
> **License:** Foldseek has a GPL-3.0 license. Please refer to [the license](https://github.com/steineggerlab/foldseek/blob/master/LICENSE.md) for full terms.

This constraint is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.

***

&#x20;Tools Used Tools Used  Source Source  Cite Cite

![](https://proto-bio.github.io/proto-assets/images/tool/foldseek/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/structure-alignment/foldseek.md)

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-language

&#x20;View source

[Open](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/foldseek_novelty_constraint.py#L101)

@articlevanKempen2023foldseek\@articlekim2025foldseekmultimer

```bibtex theme={null}
@article{vanKempen2023foldseek,
  title={Fast and accurate protein structure search with {F}oldseek},
  author={van Kempen, Michel and Kim, Stephanie S. and Tumescheit, Charlotte and Mirdita, Milot and Lee, Jeongjae and Gilchrist, Cameron L. M. and S{\"o}ding, Johannes and Steinegger, Martin},
  journal={Nature Biotechnology},
  volume={42},
  pages={243--246},
  year={2024},
  publisher={Nature Publishing Group},
  doi={10.1038/s41587-023-01773-0}
}

@article{kim2025foldseekmultimer,
  title={Rapid and sensitive protein complex alignment with {F}oldseek-{M}ultimer},
  author={Kim, Woosub and Mirdita, Milot and Levy Karin, Eli and Gilchrist, Cameron L. M. and Schweke, Hugo and S{\"o}ding, Johannes and Levy, Emmanuel D. and Steinegger, Martin},
  journal={Nature Methods},
  volume={22},
  pages={469--472},
  year={2025},
  publisher={Nature Publishing Group},
  doi={10.1038/s41592-025-02593-7}
}
```

&#x20;Copy citation

Constraint contributors[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)
Score proteins by their closest Foldseek hit (best e-value or top query TM-score).

## API Reference

ConfigFoldseekNoveltyConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_structure/foldseek_novelty_constraint.py#L43)

Configuration for the Foldseek structure-novelty constraint.

**metric** `enum` (default: evalue)

evalue: 0/1 step (best as a filter); tm\_score: graded, requires local search.

Options: `evalue`, `tm_score`

**max\_tm\_score** `number` (default: 0.5)

Query-normalized TM-score to the closest hit above which proposals are penalized.

**max\_evalue** `number` (default: 0.001)

E-value at or below which a hit counts as a known homolog (evalue metric).

**foldseek\_config** `FoldseekSearchConfig`

Foldseek settings: search\_mode (remote server or local) and local\_db.

ReturnsConstraintOutput

Score in `[0, 1]` (0 = novel fold). `metadata` carries `best_evalue` (None if no hits),
`top_tm_score` (top query TM-score, None unless local), `top_hit_id` and `num_hits`.

## Usage

```python python icon="python" theme={null}
from proto_language.core import Constraint
from proto_language.constraint import foldseek_novelty_constraint, FoldseekNoveltyConfig

constraint = Constraint(
    inputs=[segment],
    function=foldseek_novelty_constraint,
    function_config=FoldseekNoveltyConfig(
        # Configure parameters here
    ),
)

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `foldseek-novelty` |
| Function | `foldseek_novelty_constraint` |
| Category | `protein_structure` |
| Mode | `discrete` |
| Uses GPU | `False` |
| Supported Types | `protein` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.