13.3 Screen Analysis
13.3 Analysing Pooled Screen Data
Purpose. Turn sequencing reads into a ranked list of candidate genes: demultiplex the samples, trim to the guide, count reads against the library reference, and test for differential abundance between the selected and reference arms.
Background and principle
The analysis has four stages and they are always the same, whatever tool is used:
Stage | Input \(\rightarrow \) output | Done with |
Demultiplex | Pooled FASTQ \(\rightarrow \) per-sample FASTQ | Barcode matching at the read start |
Trim | Reads \(\rightarrow \) guide sequence only | Removing the barcode and constant region |
Count | Reads \(\rightarrow \) counts per guide | Matching against the library reference |
Test | Counts \(\rightarrow \) ranked genes | Differential abundance, selected against reference |
In-line barcodes are demultiplexed by you, not by the sequencer
A standard Illumina index sits in a separate index read and the provider’s software splits samples on it automatically. A screen barcode designed as part of the amplicon — an in-line barcode — arrives inside the biological read instead.
That means two things. The provider returns one large FASTQ containing every sample, not one file per sample; and the first analysis step is yours. Tell the provider which arrangement you used, and expect to receive undemultiplexed data if the barcodes are in-line (Guide Recovery).
Why the reads must be trimmed to a common structure
Staggered barcodes solve the sequencing diversity problem and create an analysis problem: the guide starts at a different position in every sample. A counting step that expects the guide at a fixed offset will find it in one sample and miss it in the rest.
Two ways to deal with it. Trim the stagger away — remove the barcode plus enough of the constant region that every read begins at the same place, so the guide is at a fixed position in all samples and the counter can use a simple positional rule. Or search for the guide by its flanking sequence, which tolerates variable offsets but is slower.
Trimming is the usual choice because it makes everything downstream simpler, and it is done in the same pass as demultiplexing: the barcode identifies the sample and its removal normalises the position. The two-pass approach below does exactly that — one pass to sort reads into samples without cutting, one to cut.
When to use this — and when not to
After sequencing any pooled screen. The same pipeline handles knockout, activation, interference and base-editor screens — only the library reference changes.
Materials and equipment
The sequencing FASTQ files; the library reference file with guide sequences and gene assignments; the barcode-to-sample assignment recorded at PCR set-up; a Unix shell with a read-trimming tool installed; R with the analysis packages; enough disk for raw and intermediate files.
Timing
Demultiplexing and trimming scale with data volume — allow roughly half an hour per gigabyte of compressed FASTQ. Counting is comparable. The statistical analysis is minutes; interpreting it is the part that takes days.
13.3.1 Demultiplexing and trimming
Procedure
-
Build a barcode FASTA from the assignment recorded at PCR set-up: one entry per sample, named for the sample, with the barcode anchored to the read start.
>reference_rep1 ^TAAGTAGAG >reference_rep2 ^ATCATGCTTA >selected_rep1 ^GATGCACATCT >selected_rep2 ^CGATTGCTCGAC Critical step. The caret anchors the match to the start of the read. Without it, the barcode is matched anywhere in the sequence, and reads are assigned to whichever sample’s barcode happens to occur somewhere inside them — which produces a plausible-looking but wrong assignment.
Note. Name the entries for the samples, because the output files are named from these entries. Getting the names right here saves renaming dozens of files later.
-
Demultiplex without trimming, so reads are sorted into per-sample files while the sequence is left intact:
cutadapt -e 0 --no-indels --action=none \
-g file:barcodes.fasta \
--untrimmed-output unassigned.fastq.gz \
-o "{name}.fastq.gz" pooled_input.fastq.gzNote. -e 0 allows no mismatches and --no-indels forbids insertions or deletions — strict, and appropriate when the barcodes were designed with an edit distance of 3. Allowing one mismatch typically raises assignment by a per cent or two; with well-separated barcodes it is safe, and with poorly separated ones it is not.
Critical step. Always write the unassigned reads to a file rather than discarding them. The proportion unassigned is the first diagnostic of the whole run: a few per cent is normal, and a large fraction means a barcode was mis-recorded, the wrong file was processed, or the reads are not oriented as expected.
-
Trim each sample to a common start, removing its barcode plus enough constant sequence to remove the stagger:
cutadapt -e 0 --no-indels --action=trim --cores=4 \
-g file:trim_sequence.fasta \
-o sample_trimmed.fastq.gz sample.fastq.gzNote. The trim FASTA contains the barcode plus a few bases of the following constant region. Where guide lengths vary, appending N characters extends the match through the adapter regardless of sequence.
-
Check a few reads by eye before proceeding.
Critical step. Open a trimmed file and confirm the reads now begin at the guide, in every sample. This takes a minute and catches an off-by-one trim that would otherwise produce a near-zero mapping rate that looks like a failed experiment.
13.3.2 Counting guides
Procedure
-
Prepare the library reference as a table of unique guide sequences with their gene assignments.
Critical step. Some guides target more than one gene, and some sequences appear more than once in a library. The reference must be collapsed to unique sequences, carrying the list of genes each one hits, or those guides are double-counted. The script that does this is the first in Analysis Scripts.
-
Count reads per guide per sample, matching each read against the reference at the now-fixed offset, allowing a small mismatch tolerance in the guide but none in the barcode.
Note. The counting call and its parameters are in Analysis Scripts. The parameters that matter are where the guide starts and ends in the trimmed read, and how much mismatch is tolerated.
-
Inspect the count matrix before any statistics.
Critical step. Check three things: the total reads per sample against what was ordered; the proportion of reads mapping to the library, which should be high; and the number of guides with zero counts in the reference arm, which should be very low. A reference arm missing guides means coverage was lost in the wet lab, and no analysis repairs that.
13.3.3 Differential abundance
Procedure
-
Filter low-count guides — those below a counts-per-million threshold in a minimum number of samples — before testing.
Note. Filtering improves power by reducing the multiple-testing burden, and removes guides whose counts are too low to estimate a dispersion from. The threshold is a judgement; state it.
-
Normalise between samples for sequencing depth and composition.
Critical step. Composition normalisation matters more here than in ordinary expression work. A strong selection enriches a minority of guides enormously, which mechanically reduces the apparent abundance of everything else — so library-size normalisation alone creates spurious depletion across the whole library. Use a method that accounts for composition, and inspect the normalisation factors.
-
Inspect the samples before testing — a multidimensional scaling plot should separate selected from reference arms and cluster replicates together.
Critical step. Look at this plot before any hit list. Replicates that do not cluster, or an arm that separates on replicate rather than treatment, mean a batch effect is larger than the biology — and a hit list generated from that data is not worth reading.
-
Test for differential abundance between selected and reference arms, fitting a model appropriate to count data with replicates.
Note. The full script — building the count object, filtering, normalising, plotting and testing — is in Analysis Scripts.
-
Aggregate guides to genes. A gene is supported by the consistent behaviour of several independent guides, not by one.
Critical step. This aggregation is what makes a screen interpretable. A single guide can be enriched through an off-target effect, a fitness effect, or chance. Requiring agreement among the guides targeting a gene is the screen’s internal replication — and a hit resting on one guide out of six should be treated as noise until shown otherwise.
- Build the null from the non-targeting controls. Their distribution is the empirical noise floor against which real effects are judged.
- Rank and threshold, applying multiple-testing correction, and carry forward a candidate list.
edgeR, MAGeCK, and which to use
The pipeline documented here and in Analysis Scripts uses edgeR, a general count-based differential abundance framework. It is flexible, well documented, handles arbitrary experimental designs through a model matrix, and is the right choice when the design is more complex than two arms — timepoints, multiple selections, paired donors.
MAGeCK is purpose-built for pooled CRISPR screens. It does counting, normalisation, guide-level testing and gene-level ranking in one tool, with a robust rank aggregation designed for exactly the guides-to-genes problem above, and it handles the common case with far less code [Li et al., 2014b]. For a standard two-arm screen it is the faster route and the field’s usual reference.
Others — BAGEL for essentiality, CRISPhieRmix, drugZ — address particular screen types.
Running two and comparing is worth the afternoon it costs. Genes appearing near the top of both are the ones to take forward; genes appearing in only one warrant a look at why.
Expected results
A high proportion of reads assigned to samples and mapping to the library; an even guide distribution in the reference arm; replicates clustering by treatment on the multidimensional scaling plot; non-targeting controls distributed around no change; and a candidate list in which top genes are supported by several guides moving in the same direction.
Troubleshooting
|
Problem |
Likely cause |
What to do |
|
Large unassigned fraction |
Barcode assignment mis-recorded; caret omitted; wrong file |
Check the recorded assignment; anchor the match; inspect reads |
|
Low mapping to the library |
Trim offset wrong; reference does not match the library lot |
Inspect trimmed reads; confirm the reference file |
|
Many zero-count guides in the reference arm |
Coverage lost in culture or in the PCR |
Not recoverable analytically — check the wet-lab records |
|
Replicates do not cluster |
Batch effect; split cultures used as replicates |
Include batch in the model if possible; use independent transductions |
|
Whole library appears depleted |
Composition effect from strong enrichment |
Use composition-aware normalisation |
|
Thousands of significant hits |
Normalisation or dispersion misspecified |
Inspect the plots; check the non-targeting control distribution |
|
No hits at all |
Selection too weak; coverage too low; insufficient replicates |
Check separation on the MDS plot before concluding |
|
Top hit supported by one guide |
Off-target or chance |
Require multi-guide agreement |
|
edgeR and MAGeCK disagree |
Different aggregation |
Take the intersection forward; investigate the difference |
Validation and limitations
A screen produces a ranked list, not a set of conclusions. Ranking depends on the normalisation, the filter, the aggregation method and the threshold, all of which are choices — so the list should be reported with those choices stated, and the boundary between hit and non-hit treated as soft.
Statistical significance also does not establish biological relevance: essential genes deplete in any screen regardless of the selection, guides vary in knockout efficiency, and off-target effects generate guide-specific behaviour that multi-guide aggregation reduces but does not remove. Every hit requires individual validation — an arrayed knockout with independent guides, a rescue, and a direct phenotypic assay (CRISPR RNP, Edit Verification). The screen’s job is to shorten the list, not to finish the experiment.
Further reading. The MAGeCK documentation is a good practical introduction to pooled screen statistics even for those using another tool, and the edgeR user guide covers the count-model framework in detail. Both are free and actively maintained.