Skip to main content

CRISPRWorks Count

CRISPR guide counts and assignment QC from FASTQ reads.

CRISPRWorks is a family of open-source tools for pooled CRISPR screen analysis. CRISPRWorks Count is its guide-counting component, powered by DotMatch. Install it as dotmatch and use the existing dotmatch commands.

DotMatch turns FASTQ reads and a known guide library into count tables and assignment QC. Use it for CRISPR guide counting, fixed-position barcode demultiplexing, and other short-DNA assays with known targets. It runs locally on Linux and macOS and writes MAGeCK-compatible counts.

CI PyPI Documentation DOI

Start counting guides · Check a library in your browser · Documentation · Methods and results

Benchmark spotlight: faster one-mismatch counting, identical counts.

The benchmarked source checkout's dotmatch guide-counter count is 1.6–5.5× faster with 11.3–14.4× lower peak memory than unmodified guide-counter 0.1.3 in the tested one-mismatch workflows. Every paired run produced identical full guide/sample count matrices.

Measured on controlled 100k/1M-read FASTQs against the public 87,437-guide Yusa library, using one CPU thread and five paired repeats. Guide-counter is faster in the tested exact-mode million-read cases. Full experimental-screen performance and biological accuracy require separate validation. See the throughput and memory graphs, protocol and raw results.

The CRISPRWorks family

Component Purpose Availability
Count Count guides and inspect read assignments Available through the DotMatch CLI and Python package
Fit Fit gene effects, learn guide efficacy across screens and calibrate control-gene tails Experimental alpha available from source
Review Review QC, comparisons and screen results Existing DotMatch reports cover counts and assignment QC; a broader Review tool is planned

Start with Count using the commands below. Read the family overview for component status and scientific scope. For gene-level analysis, follow From counts to gene effects. Fit is a separate source install and has no published package release. The broader Review tool is planned.

What the counts mean

An assigned-read percentage cannot tell you which targets gained counts, which reads fit several targets, or whether a more permissive matching rule changed the result. DotMatch keeps those decisions inspectable.

Read outcomes are unique, ambiguous, none (unmatched), or invalid (the requested window could not be extracted). Only unique calls contribute to a target count. Choose the matching policy deliberately; a unique call is not proof of biological origin.

Keep downstream screen statistics in the workflow you already use. DotMatch is not a genome aligner, basecaller, cell/UMI pipeline or gene-level hit-calling package.

Install

Release 0.8.0 is published on PyPI (GHCR has 0.7.0). It includes the six dotmatch agent tools described below:

python3 -m pip install dotmatch==0.8.0
dotmatch --version

Conda and container routes:

conda create -n dotmatch -c conda-forge -c bioconda dotmatch
conda activate dotmatch

# Or use the pinned release container:
docker run --rm ghcr.io/dnncha/dotmatch:v0.7.0 --version

Bioconda and its generated BioContainers images can lag PyPI/GHCR. When a newly tagged version has not reached Bioconda yet, use PyPI or the source build. Check the installed version. The Bioconda recipe includes osx-arm64 for Apple Silicon. Review the packaging details for platform and container verification. See the installation guide for platform details, source builds and the third-party Homebrew tap. The desktop Workbench is developed separately as dotmatch-community; the commands below use the core CLI.

Try a checked first run

The packaged fixture checks expected native assignment counts without using study data or making network requests:

dotmatch demo --out-dir first-run/

Open first-run/index.html for the local review bundle. To compare existing raw-count tables, use dotmatch compare-counts.

Count a CRISPR screen

You need a guide CSV/TSV with target sequences and the FASTQ files from your screen. The first-run tutorial explains the library columns and provides a small example. Keep biological sample names distinct from sequencing filenames when preparing the library and sample configuration.

Start a new assay project:

dotmatch crispr quickstart \
  --library guides.csv \
  --fastq 'fastqs/*.fastq.gz' \
  --out crispr_screen/

This creates a draft project. Review crispr_screen/inference_report.json and assay.toml: confirm the guide window, orientation, library and sample files. After confirming the settings, change the top-level status = "draft" to status = "ready" in assay.toml, then run and review:

dotmatch assay start crispr_screen/assay.toml

# After reviewing a completed run:
dotmatch assay handoff crispr_screen/assay.toml

The handoff carries configuration, QC, methods and checksums without copying raw FASTQs. Follow the complete CRISPR tutorial for inputs, direct CLI options and count-table outputs.

Understand the effect of mismatch correction

The dotmatch sensitivity command, introduced in 0.5.0, compares exact, radius-one and best-distance Hamming assignment using the same windows in one FASTQ pass. It produces three count matrices, per-guide deltas, read-state transitions, checksums and a self-contained HTML report. It never selects a policy for you.

Run the included synthetic example from a checkout of the v0.8.0 release:

python3 -m pip install dotmatch==0.8.0
dotmatch sensitivity \
  --targets examples/assignment_sensitivity/targets.tsv \
  --reads examples/assignment_sensitivity/reads.fastq \
  --target-start 0 --target-length 20 \
  --write-read-changes --out-dir sensitivity-example

The nine-read synthetic example shows why equal assigned totals can hide different per-guide counts. Read the output contract. This is sensitivity analysis, not an estimate of biological accuracy.

Explore the interactive review example without installing anything. The example uses the public nine-read synthetic fixture. The interactive assignment review is published on the DotMatch 0.8.0 site. The installed dotmatch sensitivity command continues to write its static report. The synthetic fixture demonstrates software behavior, not biological accuracy.

Choose by task

Task Entry point Workflow
CRISPR guide counting dotmatch crispr-count First run
Inline barcode demultiplexing dotmatch demux Getting started
High unmatched or ambiguous barcode rate dotmatch barcode autopsy Barcode diagnostics
Target-library collisions dotmatch audit Browser checker
Barcode panel design dotmatch panel design Panel documentation
Paired target counting dotmatch pair-count Command reference
Cell-by-feature matrix from extracted observations dotmatch feature matrix scverse handoff

Feature matrices require upstream cell identifiers and extracted feature windows. They do not perform cell calling, UMI deduplication or perturbation-effect analysis.

Research and reproducibility

Cheerful Duck Research publishes our bioinformatics software investigations, reproducible examples, and follow-up corrections. For DotMatch-specific methods and measurements, use the reports below and record the release and assignment policy used in your own run.

Reproduce a comparison

The benchmark reports include commands, hardware and assignment rules. Those reports cover the tested workloads; they are not universal speed or biological-accuracy guarantees.

The guide-counter comparison records complete-command throughput and peak memory with identical full counts. The figures below show exact and one-mismatch modes, with median bars and the observed range across five runs. They cover the benchmarked source checkout and controlled 100k/1M-read FASTQs against the Yusa library.

DotMatch versus guide-counter: complete-command throughput in exact and one-mismatch modes

DotMatch versus guide-counter: peak memory for the same complete commands

The current source engine's Hamming improvement report records 5.2–5.7× faster complete k=3 counting against the previous engine on 30,000 simulated reads and the real Yusa guide library, with identical counts. It also documents a corrected false-tie bug in Hamming queries containing literal unknown bytes and 136,096 independent oracle checks.

Public CRISPR comparisons record Yusa and Brunello inputs, methods, count differences, runtime and memory. Exact, Hamming and Levenshtein results use different semantics and should be compared separately. A comparison that completed successfully is not necessarily an identical count matrix or biological validation.

The GSE146194 direct-guide-capture case study separates discovery and evaluation reads and checks per-read assignments against independent reference implementations. It does not establish guide-per-cell or perturbation-effect accuracy.

For an installation-free synthetic smoke demo, use Binder or Google Colab. For a shareable or de-identified workflow evaluation, see the public validation invitation. Do not post private reads or unpublished guide libraries.

Pipelines, Python and local agents

DotMatch provides a Python streaming API, output schemas, and workflow examples. The ecosystem status ledger distinguishes local examples from accepted upstream integrations. Development typing and test commands are documented in docs/typing-and-testing.md, and the assignment reliability contract is in docs/scientific-reliability.md.

Use DotMatch from an AI agent

Add DotMatch as a local MCP server in Claude Code, Codex, Cursor or any MCP client:

claude mcp add dotmatch -- uvx dotmatch mcp
codex mcp add dotmatch -- uvx dotmatch mcp

Claude Code users can install the plugin, which bundles the MCP server and a routing skill:

/plugin install dotmatch --marketplace dnncha/dotmatch

On older Claude Code versions, run /plugin marketplace add dnncha/dotmatch and then /plugin install dotmatch@dotmatch. Other MCP clients use {"mcpServers": {"dotmatch": {"command": "uvx", "args": ["--from", "git+https://github.com/dnncha/dotmatch", "dotmatch", "mcp"]}}}. With DotMatch already installed from source, dotmatch mcp serves the same tools.

The server exposes route_task, count_targets, demux_barcodes, audit_targets and edit_distance for known-window work, plus the six assay tools above for reviewed CRISPR and Perturb-seq runs. Every tool runs locally, takes structured arguments only, refuses to overwrite existing outputs, and returns the JSON envelope as MCP structured content. dotmatch mcp ships in DotMatch 0.8.0 and later.

The six structured agent tools are included in release 0.5.0:

dotmatch capabilities --json
dotmatch agent tools --json
dotmatch agent export-skill --target ./dotmatch-agent

They prepare, preflight, run, review and hand off local assays without accepting free-form shell commands or uploading research data. Start with the Agent guide, CRISPR agent route, or Perturb-seq agent route. Machine-readable discovery: agent-capabilities.json, agent-tools.json, and the checked contract fixture.

Citation and contributing

DotMatch is Apache-2.0 licensed. Use dotmatch citation and CITATION.cff to record the actual software version. Use the methods and citation guide to cite the actual release and configuration used. Improvements, discrepancy fixtures and reproducible bug reports are welcome: contributing guide.

Metadata

Release files for dotmatch 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dotmatch 0.8.0
File Size Uploaded Provenance Actions
dotmatch-0.8.0.tar.gz 347.1 kB Without provenance Details for dotmatch-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dotmatch 0.8.0
File Interpreter ABI Platform Actions
dotmatch-0.8.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for dotmatch-0.8.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
dotmatch-0.8.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for dotmatch-0.8.0-py3-none-macosx_11_0_arm64.whl

Total release size: 1.4 MB

Release files / dotmatch-0.8.0.tar.gz

Download URL dotmatch-0.8.0.tar.gz
Size 347.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d825abd4cb7cf6e8010ec4fc9ccc09c6e7d68cc75e7f6b754be4d810e621ed1
BLAKE2b-256 checksum
How to use checksums
cfa1d1ad909bcf5bc36e22c4198a8382a8b9d511b5f84f4831a89533e2909524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / dotmatch-0.8.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dotmatch-0.8.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 672.6 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2fa3accf694c0b346d78285ec3dae05468f965a55965fe2e9520f53a1bd30ef8
BLAKE2b-256 checksum
How to use checksums
e2fa84a39ea7916e9c9615de16d733de240f4c566a38cedcc9dbab0aff4ab9ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / dotmatch-0.8.0-py3-none-macosx_11_0_arm64.whl

Download URL dotmatch-0.8.0-py3-none-macosx_11_0_arm64.whl
Size 395.1 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c197803e05e8b199078ebc6dba32e3b0b556d834c5525da6f5d86e12084fc83e
BLAKE2b-256 checksum
How to use checksums
bbb8b5ac6c1c3ce15d2ee47affdb7799378b351f3fe2e918e82fbc2a36c24ce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for dotmatch 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page