License: Rule Set 3 is open source and free for academic and commercial use under an Apache-2.0 license and may require explicit attribution when utilized. Please refer to the license for full terms.
Proto is not affiliated with Broad Institute. 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.
Accounting for small variations in the tracrRNA sequence improves sgRNA activity predictions for CRISPR screening
@articledeweirdt2022ruleset3
Open Notebook
Background
Rule Set 3 was trained to predict guide activity in CRISPR screening and explicitly accounts for differences between common tracrRNA scaffolds. Its raw output is a relative activity score rather than a probability, so comparisons should stay within the model’s SpCas9 screening domain.Tools
Rule Set 3 On-Target Score (rs3-score)
Scores contexts arranged as four upstream bases, a 20-base protospacer, a three-base NGG PAM, and three downstream bases. Select Hsu2013 or Chen2013 to match the tracrRNA scaffold. Scores are raw mean-centered model outputs, not calibrated probabilities; higher values predict greater activity within the model domain.The tool validates the context and reports the exact model/package version. It does not evaluate genomic specificity, chromatin accessibility, target-gene features, or non-SpCas9 nucleases.API Reference
Config: RS3ScoreConfig
Config: RS3ScoreConfig
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: RS3ScoreOutput
Output: RS3ScoreOutput
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.results item)Applications
Use this tool to rank PAM-compatible SpCas9 guide candidates after exact target matching and before separate genome-wide off-target evaluation.Usage Tips
- Supply the complete 30-nt context in the documented orientation; do not score an isolated 20-mer.
- Select the tracrRNA architecture that matches the experimental construct.
- Retain raw scores and model version in candidate provenance rather than interpreting the score as a calibrated success probability.
Toolkit Notes
- Runs on CPU in an isolated Python 3.10 environment, because the published package pins its training-era scikit-learn dependency.
- Batched. One call scores many contexts and results preserve input order.
- Chaining from
crispr-guides-enumerate. Itscontext_sequenceis this model’s 30-nt window under the default flanks, but a candidate near an interval edge keeps a shorter context and flanks carry any non-ACGT reference bases. Filter to full-length ACGT contexts before scoring; both are rejected rather than silently scored. - Not available on Apple Silicon. The pinned
lightgbm==3.3.5ships no macOS arm64 wheel, so setup exits early instead of falling back to a source build. Linux and hosted execution use the published wheels.
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.

