> ## 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.

# DSSP Secondary Structure

> Keep helix/sheet/loop percentages (DSSP) of an attached structure within target ranges

![DSSP Secondary Structure](https://proto-bio.github.io/proto-assets/images/constraint/dssp-secondary-structure/hero.png)

> [!NOTE]
>
> **License:** DSSP is open source and free for academic and commercial use under a BSD-2-Clause license. Please refer to [the license](https://github.com/PDB-REDO/dssp/blob/trunk/LICENSE) 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/dssp/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/structure-scoring/dssp.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/structure_developability_constraint.py#L143)

@articlehekkelman\_2025\_dssp4\@articlekabsch\_1983\_dssp

```bibtex theme={null}
@article{hekkelman_2025_dssp4,
  title={{DSSP} 4: FAIR annotation of protein secondary structure},
  author={Hekkelman, Maarten L. and {\'A}lvarez Salmoral, Daniel and Perrakis, Anastassis and Joosten, Robbie P.},
  journal={Protein Science},
  volume={34},
  number={8},
  pages={e70208},
  year={2025},
  doi={10.1002/pro.70208},
  pmid={40671631},
  pmcid={PMC12268231},
}

@article{kabsch_1983_dssp,
  title={Dictionary of protein secondary structure: Pattern recognition of hydrogen-bonded and geometrical features},
  author={Kabsch, Wolfgang and Sander, Christian},
  journal={Biopolymers},
  volume={22},
  number={12},
  pages={2577--2637},
  year={1983},
  doi={10.1002/bip.360221211},
  pmid={6667333},
}
```

&#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 one chain's secondary-structure composition against target ranges.

The score is the mean of the helix, sheet and loop range deviations, each
0 inside the range, linear outside it, capped at 1.

## API Reference

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

Config for the DSSP secondary-structure composition constraint.

Percentages are DSSP helix (H/G/I), sheet (E) and loop (other) fractions of
`chain` in the attached structure, on a 0-100 scale.

**chain** `string`

Chain to analyze in the attached structure; None uses the chain matching the input.

**min\_helix\_pct** `number` (default: 0.0)

Min helix %.

**max\_helix\_pct** `number` (default: 100.0)

Max helix %.

**min\_sheet\_pct** `number` (default: 0.0)

Min sheet %.

**max\_sheet\_pct** `number` (default: 100.0)

Max sheet %.

**min\_loop\_pct** `number` (default: 0.0)

Min loop %.

**max\_loop\_pct** `number` (default: 100.0)

Max loop %.

ReturnsConstraintOutput

Per-proposal score in `[0, 1]` with
`helix_pct` / `sheet_pct` / `loop_pct` / `dssp_chain` metadata.

## Usage

```python python icon="python" theme={null}
>>> from proto_language.core import Constraint, Segment
>>> protein = Segment(length=80, sequence_type="protein")
>>> dssp = Constraint(
...     inputs=[protein],
...     function=dssp_secondary_structure_constraint,
...     function_config={"min_helix_pct": 60.0, "max_loop_pct": 30.0},
... )
```

## Metadata

| Property | Value |
| - | - |
| Key | `dssp-secondary-structure` |
| Function | `dssp_secondary_structure_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.