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

# pDockQ2 Interface

> Reward confident interfaces in an attached multi-chain complex (pDockQ2)

![pDockQ2 Interface](https://proto-bio.github.io/proto-assets/images/constraint/pdockq2/hero.png)

> [!NOTE]
>
> **License:** pDockQ2 has an AGPL-3.0 license and may require explicit attribution when utilized. Please refer to [the license](https://gitlab.com/ElofssonLab/afm-benchmark/-/blob/main/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/pdockq2/social.png)

&#x20;Go to Tool Page

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

@articlezhu\_2023\_pdockq2\@articlebryant\_2022\_pdockq

```bibtex theme={null}
@article{zhu_2023_pdockq2,
  title={Evaluation of AlphaFold-Multimer prediction on multi-chain protein complexes},
  author={Zhu, Wensi and Shenoy, Aditi and Kundrotas, Petras and Elofsson, Arne},
  journal={Bioinformatics},
  volume={39},
  number={7},
  pages={btad424},
  year={2023},
  doi={10.1093/bioinformatics/btad424},
}

@article{bryant_2022_pdockq,
  title={Improved prediction of protein-protein interactions using AlphaFold2},
  author={Bryant, Patrick and Pozzati, Gabriele and Elofsson, Arne},
  journal={Nature Communications},
  volume={13},
  number={1},
  pages={1265},
  year={2022},
  doi={10.1038/s41467-022-28865-w},
}
```

&#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 interface quality of the attached complex with pDockQ2 (score = 1 - pDockQ2).

The attached structure needs pLDDT B-factors and the PAE matrix at
`metrics['pae']`, which predictors emit only with `include_pae_matrix=True`: set it
on the structure-predicting constraint's tool config, e.g. `structure-plddt` with
`{"structure_tool": "boltz2", "boltz2_config": {"include_pae_matrix": True}}`.
Without it pDockQ2 raises `structure.metrics['pae'] is missing`.

## API Reference

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

Config for the pDockQ2 interface-quality constraint.

**binder\_chain** `string`

Binder chain in the complex; None uses the chain matching the input, else the first non-target.

**target\_chains** `array`

Target chains in the attached complex; None uses every chain except the binder.

**distance\_cutoff** `number` (default: 8.0)

CA-CA distance cutoff (Å) for interface contacts; 8.0 matches the published calibration.

ReturnsConstraintOutput

Per-proposal score in `[0, 1]` with `pdockq2`
/ `binder_chain` / `target_chains` metadata.

## Usage

```python python icon="python" theme={null}
>>> from proto_language.core import Constraint, Segment
>>> binder = Segment(length=60, sequence_type="protein")
>>> interface = Constraint(
...     inputs=[binder],
...     function=pdockq2_constraint,
...     function_config={"binder_chain": "A", "target_chains": ["B"]},
... )
```

## Metadata

| Property | Value |
| - | - |
| Key | `pdockq2` |
| Function | `pdockq2_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.