nf-core-crispriscreen

nf-core/crispriscreen: Output

Introduction

This document describes the output produced by the pipeline. Most of the plots are taken from the MultiQC report, which summarises results at the end of the pipeline.

The directories listed below will be created in the results directory after the pipeline has finished. All paths are relative to the top-level results directory.

Pipeline overview

The pipeline is built using Nextflow and processes data using the following steps:

  1. Sub-sampling of reads (Seqtk/sample, optional)
  2. Read QC (FastQC)
  3. Generic adapter and quality trimming (Trim Galore!)
  4. Specific primer sequence trimming (cutadapt)
  5. Preparation of *.fasta library (custom R script)
  6. Alignment using (Bowtie2)
    1. Build index from *.fasta library
    2. Align reads to library
    3. Optional filtering by mapping quality
  7. Count reads per target and input file (subread/featurecounts)
  8. Quantify gene fitness score from multiple targets per gene
    1. Option 1: Gene fitness is calculated using Mageck MLE
    2. Option 2: Gene fitness is calculated using DESeq2
  9. Generate HTML report with fitness results (R markdown)
  10. Present QC for raw and mapped reads (MultiQC)

Seqtk/Sample

Output files

Sub-sampling of reads (Seqtk/sample, optional).

FastQC

Output files

FastQC gives general quality metrics about your sequenced reads. It provides information about the quality score distribution across your reads, per base sequence content (%A/T/G/C), adapter contamination and overrepresented sequences. For further reading and documentation see the FastQC help pages.

MultiQC - FastQC sequence counts plot

MultiQC - FastQC mean quality scores plot

MultiQC - FastQC adapter content plot

:::note The FastQC plots displayed in the MultiQC report shows untrimmed reads. They may contain adapter sequence and potentially regions with low quality. :::

Trimgalore

Output files

Generic adapter (e.g. Illumina) and quality trimming of reads (Trim Galore!).

Cutadapt

Output files

Specific primer sequence trimming (cutadapt).

Preparation of *.fasta library

Output files

This module generates a .tsv input table from the provided .fasta file. It also checks if a pattern for control barcodes has been passed with the --gene_controls parameter. In case a pattern has been supplied but no matching barcodes were found, it stops with an error.

Bowtie2

Output files

Bowtie2 is used for mapping reads to the ‘genome’, here the library of guide RNAs/barcodes.

FeatureCounts

Output files

Summarizes read counts per target and input file, see subread/featurecounts. This is the input for fitness score calculation with DESeq2.

Mageck

Output files

DESeq2

Output files

A custom R script employing DESeq2 to quantify gene fitness score from multiple targets per gene, reporting different summary statistics. The final output of this module is a table in *.txt and *.Rdata format with the following columns:

Column Type Example Comment
sgRNA chr aat_111 name of sgRNA as in .fasta reference
sgRNA_target chr aat name of sgRNA target gene
sgRNA_position numeric 111 position of sgRNA relative to target start
condition chr example experimental condition
date chr 2021_01_09 experiment date
time numeric 0 time / n generations, important for fitness calculation
group numeric 1 group number for sample
reference_group numeric 1 group number of reference for comparison
baseMean numeric NA DESeq2 average number of reads for sgRNA
log2FoldChange numeric 0 DESeq2 log2 FC for sgRNA
lfcSE numeric 0 DESeq2 log2 FC error for sgRNA
stat numeric NA DESeq2 t statistic for sgRNA
pvalue numeric 1 DESeq2 p-value for sgRNA
padj numeric 1 DESeq2 adjusted p-value for sgRNA
fitness numeric 2.020183 fitness for sgRNA
sgRNA_index numeric 4 relative position of sgRNA
sgRNA_correlation numeric 0.6247412 correlation of sgRNA with others
sgRNA_efficiency numeric 0.9893041 relative repression efficiency of sgRNA
wmean_log2FoldChange numeric 0 weighted mean log2 FC for gene
sd_log2FoldChange numeric 0 standard deviation of log2 FC for gene
wmean_fitness numeric 1.777574 weighted mean fitness for gene
sd_fitness numeric 0.9558989 standard dev of fitness for gene
p_fitness numeric 0.001 p-value from Wilcoxon rank sum test (Null: fitness ~ 0)
p_fitness_adj numeric 0.0001 p-value from Wilcoxon test, Benjamini-Hochberg adjusted
comb_score numeric 0.0001 combined score (-log10(p-value) * abs(wmean_fitness)

R markdown report

Output files

Custom R markdown templates are used to render two HTML reports with information about all samples, their number of mapped reads, barcodes, genes, fitness scores, and other information. If fitness calculation is omitted through the option gene_fitness = false in the call to nextflow run ..., only the first report is written. The same applies for having less than two time points in the samplesheet.csv table.

MultiQC

Output files

MultiQC is a visualization tool that generates a single HTML report summarising all samples in your project. Most of the pipeline QC results are visualised in the report and further statistics are available in the report data directory.

Results generated by MultiQC collate pipeline QC from supported tools e.g. FastQC. The pipeline has special steps which also allow the software versions to be reported in the MultiQC output for future traceability. For more information about how to use MultiQC reports, see http://multiqc.info.

Pipeline information

Output files

Nextflow provides excellent functionality for generating various reports relevant to the running and execution of the pipeline. This will allow you to troubleshoot errors with the running of the pipeline, and also provide you with other information such as launch commands, run times and resource usage.