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.
Open Notebook
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 defaultNGG 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
Config: CRISPRGuideEnumerationConfig
Config: CRISPRGuideEnumerationConfig
Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr).
True is coerced to 1 and False to 0.Maximum execution time in seconds, not counting time spent while a weights download keeps progressing.
None waits indefinitely.Output: CRISPRGuideEnumerationOutput
Output: CRISPRGuideEnumerationOutput
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 SpCas9NGG, orpam_side="five_prime"for patterns such as Cas12aTTTV. pam_strandis 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_sequenceis shorter thancontext_5p + protospacer + PAM + context_3p. - Chain the output. Under the defaults,
context_sequenceis the 30-nt window Rule Set 3 scores (4-nt flank, 20-nt protospacer, 3-nt PAM, 3-nt flank), andprotospaceris 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.
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.

