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

# Protein Isoelectric Point

> Penalize proteins whose predicted isoelectric point falls outside an acceptable range

![Protein Isoelectric Point](https://proto-bio.github.io/proto-assets/images/constraint/protein-isoelectric-point/hero.png)

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;Source

![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_quality/protein_isoelectric_point_constraint.py#L84)

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 each protein's predicted isoelectric point against `[min_pi, max_pi]`.

## API Reference

ConfigProteinIsoelectricPointConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/protein_quality/protein_isoelectric_point_constraint.py#L28)

Configuration for the protein isoelectric point constraint.

**min\_pi** `number` (default: 4.05)

Lowest acceptable isoelectric point (4.05 = no lower bound).

**max\_pi** `number` (default: 12.0)

Highest acceptable isoelectric point (12 = no upper bound), e.g. 6.0 to keep designs acidic.

ReturnsConstraintOutput

One per proposal. `score` is 0.0 inside the range and grows
linearly with the relative distance outside it; `metadata` carries
`isoelectric_point`.

## Usage

```python python icon="python" theme={null}
>>> from proto_language.core import Sequence
>>> config = ProteinIsoelectricPointConfig(max_pi=6.0)
>>> out = protein_isoelectric_point_constraint([(Sequence("KKKRRRAG", "protein"),)], config)
>>> out[0].score > 0  # True: a basic peptide
```

## Metadata

| Property | Value |
| - | - |
| Key | `protein-isoelectric-point` |
| Function | `protein_isoelectric_point_constraint` |
| Category | `protein_quality` |
| Mode | `discrete` |
| Uses GPU | `False` |
| Supported Types | `protein` |


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