Command Palette

Search for a command to run...

Назад к скиллам
скилл № 31023

bio-crispr-screens-jacks-analysis

Runs JACKS (Joint Analysis of CRISPR/Cas9 Knockout Screens; Allen et al 2019 Genome Research) which models per-sgRNA log-fold-change as the product of a…

БесплатноЗапускает вложенные скрипты
BioTender-maxот BioTender-max★ 235 звёзд на GitHub

Установить bio-crispr-screens-jacks-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Version Compatibility

Reference examples tested with: JACKS 0.2.0+ (felicityallen/JACKS), pandas 2.2+, numpy 1.26+, scipy 1.12+, matplotlib 3.8+.

Before using code patterns, verify installed versions match. If versions differ:

  • CLI: python run_JACKS.py --help (run_JACKS.py at the JACKS repo root after clone)
  • Python: from jacks.jacks_io import runJACKS; help(runJACKS)
  • GitHub: install via git clone https://github.com/felicityallen/JACKS && cd JACKS && pip install .

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

JACKS CRISPR Screen Analysis

"Analyze CRISPR screens with guide-level efficacy modeling" -> Jointly model per-sgRNA log-fold-change across one or more screens as the product of gene essentiality and guide efficacy, sharing efficacy across screens with the same library so that low-quality guides are down-weighted automatically.

  • CLI: python run_JACKS.py countfile replicatefile guidemappingfile [options] (script at JACKS repo root)
  • Python: from jacks.jacks_io import runJACKS for programmatic use; lower-level from jacks.infer import inferJACKS
  • Output: per-gene essentiality (X1), per-sgRNA efficacy (X1), log-likelihood ratio per gene

The JACKS Model (under the hood)

Why this matters for postdoc-level use: JACKS decomposes the observed per-sgRNA log-fold-change as:

LFC[i, c] = gene_effect[g(i), c] * guide_efficacy[i] + noise

where i is sgRNA index, c is screen condition, g(i) is the gene targeted by sgRNA i. Gene effect varies by condition (different cell lines, different treatments) but guide efficacy is intrinsic to the sgRNA sequence and is treated as constant across screens. The model fits both parameters via variational Bayes with hierarchical priors:

  • guide_efficacy[i] ~ Beta(alpha, beta) shared across all sgRNAs (hyperparameters fit empirically)
  • gene_effect[g, c] ~ Normal(0, sigma_c^2) per condition

The variational posterior gives expected guide efficacy and gene effect; log-likelihood-ratio tests against a null (zero gene effect) provide gene-level significance.

Critical assumption: Guide efficacy is treated as cell-line independent within the same chemistry. Allen 2019 reports per-sgRNA Cas9 KO efficacy correlates ~0.7 across cell lines (within-chemistry), supporting library-shared efficacy. However, efficacy is NOT shareable across chemistries: Cas9 KO efficacy != CRISPRi knockdown efficiency != CRISPRa activation efficiency. JACKS must be run separately per chemistry; use only within the same chemistry on the same library.

When JACKS Outperforms MAGeCK and BAGEL2

Scenario Advantage Quantified gain (Allen 2019)
Multi-screen joint analysis (>=3 screens with same library) Efficacy shared; noise averaged 12-21% lower error vs MAGeCK; 9% vs BAGEL2; 97-99% of cell lines improved
Reusing public reference screens (DepMap, Sanger Score) as efficacy prior Transfer learning New screens can be smaller; 2.5x sample-size reduction
Libraries with broad efficacy variance (e.g. older GeCKOv2) Down-weights known weak guides Larger gain than on Brunello (already efficacy-filtered)
Heterogeneous quality (mixed plasmid quality across screens) Per-screen noise estimation Cleaner per-condition gene effects

When JACKS Is Not the Right Tool

  • Single screen, no prior efficacy: JACKS has nothing to leverage; MAGeCK or BAGEL2 work as well.
  • Single timepoint / two-condition essentiality: RRA or BAGEL2 simpler and equivalent.
  • Heavy-selection drug screens: drugZ explicit for chemogenomic; JACKS less sensitive.
  • Cancer-cell-line copy-number screens: Chronos preferred; jointly models CN bias + screen quality; JACKS does neither.
  • Cross-chemistry sharing (e.g. CRISPRi + Cas9): Efficacy is chemistry-specific; do not share.

Run JACKS Joint Analysis

Goal: Jointly analyze multiple CRISPR screens performed with the same library and chemistry.

Approach: Provide a count matrix with all samples across all screens, a replicate map identifying which samples belong to which screen and condition, and a sgRNA-to-gene map. JACKS learns guide efficacy shared across screens and gene effects per screen.

# Programmatic invocation
from jacks.jacks_io import runJACKS

# Input file paths
counts_path = 'counts.txt'                    # rows=sgRNA; first cols 'sgRNA' (or custom), then sample counts
replicate_map_path = 'replicatemap.txt'       # tab-separated with header: Replicate, Sample, Control
guide_map_path = 'guidemap.txt'               # tab-separated with header: sgRNA, Gene

# Replicate map format (tab-separated WITH header; column names match flags below)
# Replicate                Sample          Control
# Screen1_T1               Screen1_T       Screen1_C
# Screen1_T2               Screen1_T
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • examples/run_jacks.py
  • usage-guide.md

FAQ

Что делает скилл bio-crispr-screens-jacks-analysis?

Runs JACKS (Joint Analysis of CRISPR/Cas9 Knockout Screens; Allen et al 2019 Genome Research) which models per-sgRNA log-fold-change as the product of a treatment-dependent gene-essentiality term and a treatment-independent guide-efficacy term. Covers the Bayesian decomposition math, the hierarchical efficacy prior shared across screens performed with the same library, when JACKS outperforms MAGeCK (multi-screen joint analysis, libraries with broad efficacy variance) and when it does not (single screen, novel libraries with no prior efficacy), library-reuse efficacy transfer, downstream essentiality interpretation, and the 2.5x sample-size reduction enabled by efficacy-aware testing. Use when running multiple screens with the same library, when guide-level noise is suspected to dominate per-gene signal, when reusing published essentiality reference screens for efficacy priors, or when comparing screens performed across cell lines that share library but differ biologically.

Как установить скилл bio-crispr-screens-jacks-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-crispr-screens-jacks-analysis запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bio-crispr-screens-jacks-analysis с