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

# Splice-site score (SpliceAI / SpliceAI2 / Pangolin)

> Score donor/acceptor splice-site presence or absence with SpliceAI, SpliceAI2, or Pangolin.

![Splice-site score (SpliceAI / SpliceAI2 / Pangolin)](https://proto-bio.github.io/proto-assets/images/constraint/splice-site/hero.png)

> [!NOTE]
>
> **License:** This constraint can use multiple tools, each under its own license. See the **Tools Used** tab and each tool's page for license details.

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

[  ![](https://proto-bio.github.io/proto-assets/images/tool/spliceai/carousel.png)  ![](https://proto-bio.github.io/proto-assets/images/tool/spliceai2/carousel.png)  ![](https://proto-bio.github.io/proto-assets/images/tool/pangolin/carousel.png)RNA Splicing · 3 tools
&#x20;Go to Category](https://proto.evodesign.org/docs/tools/rna-splicing/overview)

![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/rna_splicing/splice_site.py#L202)

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 requested donor/acceptor positions with the selected splice predictor.

Each site's probability `p` (peak within `peak_search_radius`) becomes a
penalty `1 - p` (`direction="max"`) or `p` (`direction="min"`);
penalties are combined by `reduction`. Scores lie in `[0, 1]`, lower is better.

## API Reference

ConfigSpliceSiteConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/rna_splicing/splice_site.py#L42)

Configuration for the multi-tool splice-site constraint.

**splice\_tool** `enum` (default: spliceai)

Splice-site predictor: 'spliceai', 'spliceai2', or 'pangolin'

Options: `spliceai`, `spliceai2`, `pangolin`

**donor\_pos** `List[integer]`

0-indexed donor position(s) in the concatenated target; negatives count from its end

**acceptor\_pos** `List[integer]`

0-indexed acceptor position(s) in the concatenated target; negatives count from its end

**direction** `enum` (default: max)

'max' rewards splice sites at the positions; 'min' penalizes them

Options: `max`, `min`

**reduction** `enum` (default: mean)

Combine per-site penalties: 'mean' over all sites or 'worst' (largest penalty)

Options: `mean`, `worst`

**peak\_search\_radius** `integer` (default: 0)

Max probability within +/- this many positions of each site; 0 = exact index

**left\_context** `string`

Genomic DNA 5' of the target; supply real flanks for spliceai2

**right\_context** `string`

Genomic DNA 3' of the target; supply real flanks for spliceai2

**spliceai\_config** `SpliceAIPredictConfig`

SpliceAI prediction config (used when splice\_tool='spliceai')

**spliceai2\_config** `SpliceAI2PredictConfig`

SpliceAI2 prediction config (used when splice\_tool='spliceai2')

**pangolin\_config** `PangolinPredictConfig`

Pangolin prediction config (used when splice\_tool='pangolin')

ReturnsConstraintOutput

One result per input. `metadata` carries the tool,
per-site `donor_probs`/`acceptor_probs` and `direction`.

## Usage

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

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

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `splice-site` |
| Function | `splice_site_constraint` |
| Category | `rna_splicing` |
| Mode | `discrete` |
| Uses GPU | `True` |
| Supported Types | `dna` |


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