Skip to main content
License: CRISPR Guide Enumeration is open source and free for academic and commercial use under an MIT license. Please refer to the license for full terms.

Proto is not affiliated with Proto. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.


evo-design/proto-tools
evo-design/proto-tools
View repo
iupac.qmul.ac.uk
Visit website
ProtoProtoevo-design/proto-tools
View source
Open Notebook
Open notebook
proto-tools on GitHub
Run locally with proto-tools
Toolkit contributors

Background

RNA-guided CRISPR nucleases recognize a protospacer together with a nuclease-specific protospacer-adjacent motif (PAM). The PAM’s sequence and position relative to the protospacer vary by nuclease, so the operation accepts both an IUPAC PAM grammar and an explicit five-prime or three-prime orientation. The default NGG three-prime PAM and 20-nt protospacer describe SpCas9-style enumeration. This implementation performs deterministic string matching rather than efficacy or off-target prediction. It uses standard IUPAC-IUB nucleic-acid ambiguity symbols for the PAM grammar, but emits only candidates whose complete protospacer and observed PAM contain canonical A/C/G/T bases. Returned coordinates are always 1-indexed and inclusive, regardless of PAM strand.

Tools

CRISPR Guide Enumeration (crispr-guides-enumerate)

Enumerates every PAM-compatible protospacer in each supplied reference interval and bundles the candidates by input region.

API Reference

Source
List[CRISPRGuideRegion]
required
Independently scanned reference intervals.
Source
string
default:"NGG"
IUPAC PAM motif without protospacer placeholder bases.
enum
default:"three_prime"
PAM orientation.Available options: three_prime, five_prime
integer
default:"20"
Number of PAM-free guide bases.
enum
default:"both"
Reference PAM strands to scan.Available options: both, plus, minus
integer
default:"4"
Exterior 5-prime context bases to return.
integer
default:"3"
Exterior 3-prime context bases to return.
integer
default:"0"
Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). True is coerced to 1 and False to 0.
string
default:"cpu"
Device to run the tool on.
integer
default:"3600"
Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. None waits indefinitely.
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
List[CRISPRGuideRegionResult]
required
One result per input region, in input order.
string
required
Normalized IUPAC PAM grammar.
enum
required
PAM orientation.
integer
required
PAM-free guide length.
enum
required
Scanned PAM-bearing strands.
integer
required
Requested exterior 5-prime context.
integer
required
Requested exterior 3-prime context.
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 operation to create an auditable candidate pool before applying on-target activity models, mismatch/bulge-aware off-target searches, feature-window constraints, or portfolio selection. Its returned exterior context can feed models such as Rule Set 3 when the configured context dimensions match that model’s contract.

Usage Tips

  • Supply intervals in reference plus-strand orientation. Set each region’s 1-indexed start. The tool derives all plus- and minus-strand coordinates from that representation.
  • Write the PAM in nuclease orientation. Use pam_side="three_prime" for patterns such as SpCas9 NGG, or pam_side="five_prime" for patterns such as Cas12a TTTV.
  • pam_strand is the strand carrying the protospacer and PAM. The guide RNA matches the protospacer and pairs with the opposite strand.
  • Fetch enough exterior sequence. A candidate near an interval edge keeps whatever flank is available, so its context_sequence is shorter than context_5p + protospacer + PAM + context_3p.
  • Chain the output. Under the defaults, context_sequence is the 30-nt window Rule Set 3 scores (4-nt flank, 20-nt protospacer, 3-nt PAM, 3-nt flank), and protospacer is what a mismatch-aware off-target search takes.
  • Score downstream. This tool intentionally performs no guide ranking, efficacy prediction, off-target search, or candidate selection.

Toolkit Notes

These notes apply to every tool in the CRISPR Guide Enumeration toolkit.
  • Pure CPU operation. Enumeration runs in process with no separate environment, model weights, network access, or local database.
  • Naturally batched. One call accepts multiple independently identified intervals and returns exactly one candidate bundle per interval.
  • Deterministic. Identical normalized sequence and configuration inputs produce identical ordered candidates.
Example notebook: See the full working example for a copy-paste-ready walkthrough.

Infrastructure Guides

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

Tool Persistence

Keep a tool’s model warm across calls instead of reloading it every invocation.

Device Management

How GPUs are allocated to tools and how to target specific devices.

Parallel Execution

Fan a batch of inputs out across multiple GPUs.