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

# CRISPRitz

> `crispritz-search` wraps CRISPRitz 2.8.1 for exhaustive, PAM-aware CRISPR target enumeration with substitutions, DNA bulges, and RNA bulges.

![CRISPRitz](https://proto-bio.github.io/proto-assets/images/tool/crispritz/hero.png)

> [!NOTE]
>
> **License:** CRISPRitz is licensed under Custom (CRISPRitz Dual License) and has restrictions around commercial use and may require explicit attribution when utilized. Please refer to [the license](https://github.com/pinellolab/CRISPRitz/blob/v2.8.1/LICENSE) for full terms.

This toolkit 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;Publication Publication  Cite Cite  Tool Source Tool Source  Open as Notebook Open as Notebook  Run Locally Run Locally

CRISPRitz: rapid, high-throughput and variant-aware in silico off-target site identification for CRISPR genome editingSamuele Cancellieri, Matthew C Canver, ... Luca PinelloBioinformatics (2020)

&#x20;Read paper

[Open](https://doi.org/10.1093/bioinformatics/btz867)

@articlecancellieri2020crispritz

```bibtex theme={null}
@article{cancellieri2020crispritz,
  title={CRISPRitz: rapid, high-throughput and variant-aware in silico off-target site identification for CRISPR genome editing},
  author={Cancellieri, Samuele and Canver, Matthew C and Bombieri, Nicola and Giugno, Rosalba and Pinello, Luca},
  journal={Bioinformatics},
  volume={36},
  number={7},
  pages={2001--2008},
  year={2020},
  doi={10.1093/bioinformatics/btz867}
}
```

&#x20;Copy citation

![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-tools

&#x20;View source

[Open](https://github.com/evo-design/proto-tools/tree/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz)

Open Notebook

&#x20;Open notebook

[Open](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/examples/example.ipynb)

[![proto-tools on GitHub](https://opengraph.githubassets.com/1/evo-design/proto-tools)](https://github.com/evo-design/proto-tools)

Run locally with proto-tools

```bash theme={null}
pip install git+https://github.com/evo-design/proto-tools.git
```

Toolkit contributors[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)

| Function | Description | |
| - | - | - |
| `run_crispritz_search()` | Enumerate CRISPR targets with explicit mismatches and DNA/RNA bulges | [ Docs](#api-run-crispritz-search) [ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/crispritz_search.py#L243) |

## Background

CRISPRitz indexes every PAM-compatible site in a caller-supplied genome and
then aligns batches of guides under explicit mismatch and bulge limits. Unlike
a general local-alignment search, its index and traversal retain nuclease PAM
orientation and distinguish DNA bulges, RNA bulges, and joint bulge alignments.

## Tools

### CRISPRitz Off-Target Search (`crispritz-search`)

Builds or reuses a content-addressed TST index and returns every native target
row as structured data.

#### API Reference

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/crispritz_search.py#L18)

> [accordion] Input: CRISPRitzSearchInput
>
> **guides** `List[string]` *required*
>
> PAM-free guide protospacers to search.
>
> **reference\_fasta** `string` *required*
>
> Local uncompressed reference FASTA path.
>
> **reference\_id** `string`
>
> Optional versioned reference identifier.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/crispritz_search.py#L76)

> [accordion] Config: CRISPRitzSearchConfig
>
> **pam** `string` (default: NGG)
>
> IUPAC PAM motif without protospacer bases.
>
> **pam\_side** `enum` (default: three\_prime)
>
> PAM position relative to the protospacer.
>
> Available options: `three_prime`, `five_prime`
>
> **max\_mismatches** `integer` (default: 4)
>
> Inclusive substitution limit per hit.
>
> **max\_dna\_bulges** `integer` (default: 1)
>
> Inclusive DNA-bulge limit per hit.
>
> **max\_rna\_bulges** `integer` (default: 1)
>
> Inclusive RNA-bulge limit per hit.
>
> **max\_total\_edits** `integer`
>
> Optional inclusive limit on all edits.
>
> **threads** `integer` (default: 4)
>
> CPU threads used for indexing and search.
>
> **index\_cache\_dir** `string`
>
> Optional persistent CRISPRitz index cache.
>
> **verbose** `integer` (default: 0)
>
> Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). `True` is coerced to `1` and `False` to `0`.
>
> **device** `string` (default: cpu)
>
> Device to run the tool on.
>
> **timeout** `integer` (default: 3600)
>
> Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. `None` waits indefinitely.
>
> **seed** `integer`
>
> Random seed. When set, tools run reproducibly up to small GPU float noise (see `BaseToolOutput.approx_equal`), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/crispritz_search.py#L155)

> [accordion] Output: CRISPRitzSearchOutput
>
> **hits** `List[CRISPRitzHit]`
>
> Enumerated target and off-target sites.
>
> **CRISPRitzHit**
>
> **guide** `string` *required*
>
> Normalized PAM-free guide protospacer
>
> **bulge\_type** `enum` *required*
>
> Normalized alignment indel class
>
> **crispritz\_bulge\_type** `string` *required*
>
> Unmodified upstream X, DNA, RNA, or RNA,DNA label
>
> **guide\_alignment** `string` *required*
>
> CRISPRitz crRNA alignment
>
> **target\_alignment** `string` *required*
>
> CRISPRitz genomic alignment
>
> **chromosome** `string` *required*
>
> Reference FASTA record identifier
>
> **start** `integer` *required*
>
> 1-indexed inclusive genomic start of the aligned target
>
> **end** `integer` *required*
>
> 1-indexed inclusive genomic end of the aligned target
>
> **strand** `enum` *required*
>
> Genomic target strand
>
> **mismatches** `integer` *required*
>
> Substitution count excluding bulges
>
> **bulge\_size** `integer` *required*
>
> Bulge length
>
> **total\_edits** `integer` *required*
>
> Mismatches plus bulge length
>
> **guides** `List[string]` *required*
>
> Normalized queried protospacers.
>
> **reference\_id** `string`
>
> Optional reference accession.
>
> **reference\_sha256** `string` *required*
>
> Combined reference FASTA checksum.
>
> **index\_reused** `boolean` *required*
>
> Whether a completed index was reused.
>
> **crispritz\_version** `string` *required*
>
> Pinned CRISPRitz version.
>
> **pam** `string` *required*
>
> IUPAC PAM motif.
>
> **pam\_side** `enum` *required*
>
> PAM orientation.
>
> **max\_mismatches** `integer` *required*
>
> Search substitution limit.
>
> **max\_dna\_bulges** `integer` *required*
>
> Search DNA-bulge limit.
>
> **max\_rna\_bulges** `integer` *required*
>
> Search RNA-bulge limit.
>
> **max\_total\_edits** `integer` *required*
>
> Optional total-edit limit.
>
> **tool\_version** `string`
>
> Version of the toolkit that produced the output, from its `versions.yaml`. Suffixed `+dirty` when the source no longer matches that version. See `notes/versioning.md`.

#### Applications

Use this tool to enumerate candidate genomic off-targets for CRISPR guide
ranking, to audit exact mismatch and bulge thresholds, and to search custom or
newly fetched genome assemblies without maintaining a bundled database.

#### Usage Tips

* `guides`: one or more **PAM-free protospacers** of equal length. Supply the
  20-nt guide for SpCas9, not a 23-nt guide-plus-PAM and not CRISPRitz's `NNN`
  placeholder form. RNA `U` is normalized to DNA `T`.
* `reference_fasta`: either one uncompressed `.fa`, `.fasta`, or `.fna` file
  (multi-record files are supported), or a directory containing those files.
  An `.fna` artifact returned by `ncbi-reference-bundle` can be passed directly.
* `reference_id`: optional versioned assembly/accession provenance, such as
  `GCF_000001405.40`.
* `pam` and `pam_side`: the IUPAC PAM without the guide. SpCas9 is `NGG` on
  `three_prime`. Cas12a is commonly `TTTV` on `five_prime`.
* mismatch, DNA-bulge, RNA-bulge, and optional combined edit limits are
  inclusive maxima.

## Toolkit Notes

The reference is never modified. The wrapper splits multi-record FASTA only in
its private staging area and builds a CRISPRitz TST index under a cache key made
from the reference checksum, guide length, PAM, PAM side, bulge capacity, and
CRISPRitz version. No genome or curated sequence database ships with Proto.

Setup compiles CRISPRitz from its pinned source with `g++ -fopenmp`, which
Apple's `clang++` rejects, so the environment builds on Linux only and setup
exits early on macOS.

> [!TIP]
>
> **Example notebook:** See the [full working example](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/sequence_alignment/crispritz/examples/example.ipynb) for a copy-paste-ready walkthrough.

## Infrastructure Guides

The following guides cover how to run tools efficiently and at scale.

> [card] [Tool Persistence](https://proto.evodesign.org/docs/tools/guides/tool-persistence.md)
>
> Keep a tool's model warm across calls instead of reloading it every invocation.

> [card] [Device Management](https://proto.evodesign.org/docs/tools/guides/device-management.md)
>
> How GPUs are allocated to tools and how to target specific devices.

> [card] [Parallel Execution](https://proto.evodesign.org/docs/tools/guides/parallel-execution.md)
>
> Fan a batch of inputs out across multiple GPUs.

## Additional Information

> [accordion] Outputs
>
> Every upstream target row is returned, including aligned guide and genomic
> strings, explicit DNA/RNA bulge class and size, mismatch count, total edits,
> strand, chromosome, and the aligned target's `start` and `end`, converted from
> CRISPRitz's zero-based coordinates to the 1-indexed inclusive convention used
> throughout Proto. CRISPRitz 2.8 can also emit joint `RNA,DNA` alignments. These
> are represented as `dna_rna` while the unmodified upstream label remains
> available. The output also records the combined reference checksum, index reuse,
> all search parameters, and the pinned CRISPRitz version.


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