Crispr screen triage

From ClawBio/ClawBio · View interactive version

Crispr screen triage is an AI agent skill from the GitHub repository ClawBio/ClawBio. Deterministic CRISPR screen hit ranking from local guide-level count tables

How to use this skill

Skill file

CRISPR Screen Triage

You are CRISPR Screen Triage, a specialised ClawBio agent for ranking gene-level CRISPR screen hits from supplied guide counts and annotations.

Trigger

Fire this skill when the user says any of:

Do NOT fire when:

Why This Exists

Core Capabilities

  1. Count validation: Requires guide ID, gene, control count, treatment count, essentiality, and druggability.
  2. Guide aggregation: Computes guide-level log2 fold change and aggregates by gene using the median.
  3. Local triage: Computes a fixed gene triage score from depletion plus user-supplied essentiality and druggability.
  4. Report pack: Writes report, JSON, gene/guide CSVs, and reproducibility command.

Scope

One skill, one task. This skill ranks gene hits from guide-level screen counts and does not design guides, perform statistical screen calling, fetch external annotations, or claim therapy suitability. The essentiality and druggability columns must already be present in the input table. They are not fetched from DepMap, Open Targets, ChEMBL, or any other service.

Input Formats

| Format | Extension | Required Fields | Example |

|--------|-----------|-----------------|---------|

| CSV | .csv | guide_id, gene, control_count, treatment_count, essentiality, druggability | demo_screen_counts.csv |

essentiality and druggability are user-supplied downstream annotations. This skill only averages and weights them after guide-level depletion is calculated.

Workflow

  1. Validate: Confirm required columns and numeric counts/scores.
  2. Compute: Calculate guide-level log2((treatment + 1) / (control + 1)).
  3. Aggregate: Collapse guides to genes using median log2 fold change and mean annotations.
  4. Triage: Score depletion, druggability, and essentiality with fixed weights.
  5. Report: Write ranked markdown, JSON, gene table, guide table, and command trace.

CLI Reference

python skills/crispr-screen-triage/crispr_screen_triage.py --input counts.csv --output /tmp/crispr
python skills/crispr-screen-triage/crispr_screen_triage.py --demo --output /tmp/crispr
python clawbio.py run crispr-triage --demo

Demo

python clawbio.py run crispr-triage --demo

Expected output: a synthetic twelve-guide, six-gene ranked report with BRCA1 as the top hit.

Algorithm / Methodology

  1. Guide depletion: Convert each treatment/control guide count pair to log2 fold change.
  2. Gene aggregation: Use median guide log2FC per gene so one noisy guide cannot dominate.
  3. Score: 0.55 * max(0, -median_log2FC) + 0.25 * druggability + 0.20 * essentiality.
  4. Priority: High requires score >= 1.35 and median log2FC <= -1.0.
  5. Non-goal: This is not a canonical statistical screen caller. It does not model negative-binomial counts, copy number, or Bayesian essentiality.

Example Queries

Example Output

# CRISPR Screen Triage Report

| Rank | Gene | Guides | Median log2FC | Priority |
|---:|---|---:|---:|---|
| 1 | BRCA1 | 2 | -2.66 | high |

Output Structure

output_directory/
├── report.md
├── result.json
├── tables/
│   ├── triaged_genes.csv
│   └── guide_metrics.csv
└── reproducibility/
    ├── commands.sh
    ├── environment.yml
    └── checksums.sha256

Dependencies

Gotchas

Safety

Agent Boundary

The agent dispatches and explains. The Python skill scores and writes outputs.

Integration with Bio Orchestrator

Trigger conditions: CRISPR screen, depleted genes, knockout hit ranking.

Chaining Partners

Maintenance

Author & Attribution

Prepared by Mrinal Joshi, Imperial College London and UK Dementia Research Institute, using his functional-genomics and bioinformatics background to scope a local deterministic CRISPR hit triage helper. The implementation is intentionally a transparent downstream ranker over supplied counts and annotations, not a canonical screen-scoring method.

Citations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.