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

# Cherimoya Activity

> Drive DNA toward high or low Cherimoya-predicted accessibility or TF binding.

![Cherimoya Activity](https://proto-bio.github.io/proto-assets/images/constraint/cherimoya-activity/hero.png)

> [!NOTE]
>
> **License:** Cherimoya uses MIT for code and CC-BY-4.0 for model weights and may require explicit attribution when utilized. Please refer to the [code license](https://github.com/jmschrei/cherimoya/blob/main/LICENSE) and [model weights license](https://huggingface.co/programmable-genomics/CATv1/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/cherimoya/social.png)

&#x20;Go to Tool Page

[Open](https://proto.evodesign.org/docs/tools/sequence-scoring/cherimoya.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/sequence_annotation/cherimoya_activity_constraint.py#L305)

@miscramirez2026cherimoya\@articleencode2020expanded

```bibtex theme={null}
@misc{ramirez2026cherimoya,
  title={Cherimoya: a lightweight genomic sequence-to-function model built for large-scale design and understanding},
  author={Ramirez, Christian and Aruva, Achsah Marlene and Weng, Zhiping and Schreiber, Jacob},
  howpublished={Genomics x AI Blog},
  year={2026},
  doi={10.5281/zenodo.21535161},
  url={https://genomicsxai.github.io/blogs/2026-011/}
}

@article{encode2020expanded,
  title={Expanded encyclopaedias of DNA elements in the human and mouse genomes},
  author={{ENCODE Project Consortium} and Moore, Jill E. and Purcaro, Michael J. and Pratt, Henry E. and Epstein, Charles B. and Shoresh, Noam and Adrian, Jessika and Kawli, Trupti and Davis, Carrie A. and Dobin, Alexander and others},
  journal={Nature},
  volume={583},
  pages={699--710},
  year={2020},
  doi={10.1038/s41586-020-2493-4},
  url={https://doi.org/10.1038/s41586-020-2493-4}
}
```

&#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 DNA proposals by Cherimoya-predicted read counts.

## API Reference

ConfigCherimoyaActivityConfig[ Source](https://github.com/evo-design/proto-language/blob/1a97e675c7e5e4ae0e92be91b1bb7b49f1331104/proto_language/constraint/sequence_annotation/cherimoya_activity_constraint.py#L52)

Configuration for the Cherimoya accessibility/binding activity constraint.

**collection** `enum` (default: catv1)

Model collection: 'catv1' (DNase/ATAC accessibility) or 'batv1' (ChIP-seq).

Options: `catv1`, `batv1`

**models** `List[string]` (default: \['ENCSR000EOT'])

ENCODE experiment accessions to score; per-model energies are averaged.

**folds** `List[integer]` (default: \[0])

Cross-validation folds averaged for each model.

**quantity** `enum` (default: log\_counts)

ln(reads + 1) over the output window, or inside the target span.

Options: `log_counts`, `log_target_counts`

**target\_start** `integer`

Target span start relative to the segment; None is its start.

**target\_end** `integer`

Target span end relative to the segment; None is its end.

**context\_left** `string`

Fixed DNA before the segment; contexts plus segment must total 2,114 bp.

**context\_right** `string`

Fixed DNA after the segment; contexts plus segment must total 2,114 bp.

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

Whether to maximize ('max') or minimize ('min') the predicted signal.

Options: `max`, `min`

**sigmoid\_center** `number` (default: 4.5)

ln(reads + 1) at energy 0.5; 4.5 is ENCSR000EOT's 1 kb median, too high for short spans

**sigmoid\_scale** `number` (default: 1.0)

Positive width of the sigmoid in ln(reads + 1) units; larger is gentler.

**reverse\_complement\_average** `boolean` (default: False)

Average forward and reverse-complement predictions (twice the compute).

**temperature** `number` (default: 1.0)

Fallback softmax temperature for direct gradient calls; optimizer schedules take precedence.

**device** `string` (default: cuda)

Device used for Cherimoya inference.

**batch\_size** `integer` (default: 64)

Sequences per Cherimoya forward or gradient call.

ReturnsConstraintOutput

One result per proposal. `score` is the mean per-model
sigmoid energy in `[0.0, 1.0]` (lower is better in the requested direction);
`metadata` carries each model's raw ln(reads + 1).

## Usage

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

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

scores = constraint.evaluate()
```

## Metadata

| Property | Value |
| - | - |
| Key | `cherimoya-activity` |
| Function | `cherimoya_activity_constraint` |
| Category | `sequence_annotation` |
| Mode | `dual` |
| Uses GPU | `True` |
| Supported Types | `dna` |


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