Skip to main content
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.


gpp-rnd/rs3
gpp-rnd/rs3
View repo
gpp-rnd.github.io
Visit website
Accounting for small variations in the tracrRNA sequence improves sgRNA activity predictions for CRISPR screening
Peter C. DeWeirdt
Nature Communications (2022)
Read paper
@articledeweirdt2022ruleset3
Copy citation
ProtoProtoevo-design/proto-tools
View source
Open Notebook
Open notebook
proto-tools on GitHub
Run locally with proto-tools
Toolkit contributors

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

Source
List[string]
required
Contexts arranged as 4-nt upstream flank, 20-nt protospacer, 3-nt PAM, and 3-nt downstream flank.
Source
enum
default:"Hsu2013"
tracrRNA architecture used experimentally.Available options: Hsu2013, Chen2013
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[RS3ScoreResult]
required
Per-context activity predictions.
string
required
Scoring model identity.
string
required
Pinned rs3 package version.
string
required
Scaffold feature set used by the model.
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.
Metrics (one set per 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. Its context_sequence is 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.5 ships no macOS arm64 wheel, so setup exits early instead of falling back to a source build. Linux and hosted execution use the published wheels.
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.