Execute the CRISPR MAGeCK analysis
This execution begins with the complete deposited A375 Brunello count table and produces fresh MAGeCK gene results. It does not execute FASTQ processing, read assignment, or copy-number correction. The CRISPR section uses these shared results for six paired R and Python lessons.
Identify the inputs
Section titled “Identify the inputs”The source workbook comes from the
Goh study deposit, version 2, under
CC BY 4.0. The preparation reads only the integer Read count sheet. It verifies
the complete guide and sequence set against the
Brunello depositor file.
The Brunello guide table comes from the Doench and Root laboratory deposit at Addgene. Addgene’s content terms permit informational, noncommercial use while retaining copyright and proprietary notices. This educational comparison uses the table to check guide identifiers and controls. The displayed counts and identifiers come from the Goh study deposit, version 2, under CC BY 4.0; that license does not replace Addgene’s terms for its separate table.
| Input | Identity |
|---|---|
| Count workbook | SHA-256 bcd9b59bf9a4aad6c5608aa48995788ef431fa2aa0cd668b2d1081e88669655c |
| Depositor library | SHA-256 77001ee17860df41fb5f6df87081379cf5f92e51d88614b9fbe8ccca3367905c |
| Main sample order | C1D14, C2D14, P1D14, P2D14 |
| Main guide filter | At least one day-14 DMSO culture has ten counts or more. |
| Main control set | The preparation freezes the passing non-targeting identifiers before inference. |
| MLE design | The model has an intercept and a drug coefficient, with DMSO as the baseline. |
The shared transduction limits the interpretation to these treatment cultures.
The source material for Brunello Library remains unresolved. Its deposited
label is preserved, and that profile does not enter the main treatment test.
Identify the software and random states
Section titled “Identify the software and random states”The container compiles unmodified MAGeCK 0.5.9.5 source from the
upstream release tag.
The archive SHA-256 is
b06a18036da63959cd7751911a46727aefe2fb1d8dd79d95043c3e3bdaf1d93a.
The image extends the existing digest-locked R and Python base and uses an
isolated uv environment with NumPy 1.26.4 and SciPy 1.13.1. The source uses
NumPy’s matrix API, which this numerical environment preserves.
The image ID is
035ce68e8fe0cb8eb8f309c6ff6dede6da858b5cc27a68d4ac829babcd74129f.
The companion image lock records the image digest, base digest, and resource
limits. The container records Python package versions and compiled binary
hashes. The extension build requires the recorded base image in local Podman
storage. Rebuilding from the same source verifies identities, but this record
does not promise a byte-identical container image on every host.
RRA initializes its own generator with 123456 in the pinned C++ source.
MLE calls NumPy random permutations without a CLI seed option. The wrapper sets
Python and NumPy seeds to 20261031 before entering unmodified MAGeCK. It also
sets PYTHONHASHSEED=20261031, uses one MLE worker, and limits BLAS to one
thread. The repeat check tests this exact environment; it does not establish
identical floating point results across architectures.
Preserve the method definitions
Section titled “Preserve the method definitions”RRA uses control normalization and requests 100 permutation rounds, grouped by
guide count. The pinned implementation adds one internal pass after division,
so each targeting-guide group receives 101 times the native gene count in null
scores. The captured record reports that count. The native adjustment includes
the control aggregate before its
report suppresses that row. The tutorial preserves native FDR fields and applies
its declared BH correction to every retained non-control gene.
The control aggregate’s p-value is absent from the report. The validator checks
native FDR values against BH bounds for that probability from zero through one,
with 1e-4 tolerance for printed precision. It does not invent the missing value.
MLE uses the same count rows and control identifiers. Its reader adds one to each deposited count before normalization. The validator uses that actual reader and preserves MLE factors separately from the RRA factors. Its source computes a two-sided Wald test for the drug coefficient. The separate permutation fields use two rounds per guide-count group, the upstream default. These limited permutation results define neither the primary RRA discoveries nor the Wald comparison findings.
The MLE command explicitly uses --genes-varmodeling 0. The pinned source then
uses dispersion 0.01 without a fitted mean-variance trend. Iterative guide
efficiency updates and outlier removal remain disabled. The Wald comparison
is conditional on those model choices; it does not validate the RRA discoveries.
The explicit MLE limit of 40 guides excludes the large control aggregate from gene fitting. The control guides remain in the permutation background. Every targeting gene has at most four guides, and the validator requires a result for every retained targeting gene. It checks finite p-values, the Wald tail against reported z-scores, and all error and convergence messages.
The median sensitivity preserves count rows and the control null list. The restored-guide sensitivity restores targeting rows while retaining the frozen control rows. Day seven uses its own DMSO filter for targeting guides and retains those same control rows. Each comparison has a separate testing family.
Execute and verify
Section titled “Execute and verify”The companion execution folder requires repository access. Its README describes source retrieval, preparation, and the image build. Run this command from the companion repository root after that preparation.
bash guides/reproducibility/crispr_mageck/run.shThe runner executes every comparison twice without network access. Each container has a two-CPU and 8 GiB limit and acquires the shared compute lock. The validator requires byte-identical gene tables, guide tables, and full precision normalization tables across the repeats. The normalization factors also match the original upstream function and the actual engine log.
The captured output below comes from that runner. Its synchronization check requires the published block to match the capture exactly. The result manifest connects every downstream fixture to the fresh output hash and input hashes.
MAGeCK version: 0.5.9.5Python and NumPy seed: 20261031; upstream RRA seed: 123456Each analysis reproduced its gene, guide, and normalization tables.rra_primary: 19111 non-control genes Enrichment BH discoveries: 28 Native FDR discoveries: 28 Native adjustment genes: 19112 RRA null scores per targeting-guide group: 1930312 Native FDR maximum outside BH bounds: 0.00001821 Gene table SHA-256: df75e400f5b9501678644bc56ea1232c8f4822cb37d24f5d783b30479ff6f95c Engine warning records: 0rra_median: 19111 non-control genes Enrichment BH discoveries: 28 Native FDR discoveries: 28 Native adjustment genes: 19112 RRA null scores per targeting-guide group: 1930312 Native FDR maximum outside BH bounds: 0.00001040 Gene table SHA-256: ce870d00d15786d826e8f834ac24e056a682bd01ed121f87d5e948178969fdb4 Engine warning records: 0rra_restored: 19114 non-control genes Enrichment BH discoveries: 49 Native FDR discoveries: 49 Native adjustment genes: 19115 RRA null scores per targeting-guide group: 1930615 Native FDR maximum outside BH bounds: 0.00001667 Gene table SHA-256: 4980b786b2b8be6ce42ae958d449e18536bfe6a8c831c726156b77344461da59 Engine warning records: 0rra_day7: 19114 non-control genes Enrichment BH discoveries: 1845 Native FDR discoveries: 1845 Native adjustment genes: 19115 RRA null scores per targeting-guide group: 1930615 Native FDR maximum outside BH bounds: 0.00001141 Gene table SHA-256: 63d06eb1f9a7e146f8d791a9f3cbc9132eb246b82f09e63a8e1fa4bbb9ed456d Engine warning records: 0mle: 19111 non-control genes Positive Wald BH findings: 0 Printed Wald-tail maximum error: 0.00002697 Gene table SHA-256: 08d74f23574e20b37d8d536db1defc5d193fc17301d0b0b32559acc9043b5b27 Engine warning records: 0Keep the read workflow separate
Section titled “Keep the read workflow separate”nf-core/crisprseq 2.3.0 describes a broader pipeline that can begin from reads. A later read-based implementation needs verified accessions, a pinned runtime, and a separate preflight. The nf-core compatibility advisory also requires attention when selecting Nextflow versions from 25.04.0 through versions before 25.04.3.
Further reading
Section titled “Further reading”The Goh study deposit, version 2, identifies the source workbook and its data license. The original study describes the selection and treatment cultures needed to interpret the count columns.
The MAGeCK output reference distinguishes RRA scores and FDR columns from MLE coefficients and tests. Consult it before comparing the output tables from the two methods.