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:

  • Seqtk - Subsample a specific number of reads per sample
  • FastQC - Raw read QC
  • SeqFu Stats - Statistics for FASTA or FASTQ files
  • FastQ Screen - Mapping against a set of references for basic contamination QC
  • MultiQC - Aggregate report describing results and QC from the whole pipeline
  • Pipeline information - Report metrics generated during the workflow execution

Seqtk

Output files
  • seqtk/
    • *_fastq: FastQ file after being subsampled to the sample_size value.

Seqtk samples sequences by number.

FastQC

Output files
  • fastqc/
    • *_fastqc.html: FastQC report containing quality metrics.
    • *_fastqc.zip: Zip archive containing the FastQC report, tab-delimited data file and plot images.

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.

FastQ Screen

Output files
  • fastqscreen/
    • *_screen.html: Interactive graphical report.
    • *_screen.pdf: Static graphical report.
    • *_screen.txt : Text-based report.

FastQ Screen allows you to set up a standard set of references against which all of your samples can be mapped. Your references might contain the genomes of all of the organisms you work on, along with PhiX, vectors or other contaminants commonly seen in sequencing experiments.

To use FastQ Screen, this pipeline requires a .csv detailing:

  • the working name of the reference
  • the name of the aligner used to generate its index (which is also the aligner and index used by the tool)
  • the file basename of the reference and its index (e.g. the reference genoma.fa and its index genome.bt2 have the basename genome)
  • the path to a dir where the reference and index files both reside.

See assets/example_fastq_screen_references.csv for example.

The .csv is provided as a pipeline parameter fastq_screen_references and is used to construct a FastQ Screen configuration file within the context of the process work directory in order to properly mount the references.

SeqFu Stats

Output files
  • seqfu/
    • *.tsv: Tab-separated file containing quality metrics.
    • *_mqc.txt: File containing the same quality metrics as the TSV file, ready to be read by MultiQC.

SeqFu is general-purpose program to manipulate and parse information from FASTA/FASTQ files, supporting gzipped input files. Includes functions to interleave and de-interleave FASTQ files, to rename sequences and to count and print statistics on sequence lengths. In this pipeline, the seqfu stats module is used to produce general quality metrics statistics.

MultiQC

nf-core/seqinspector will generate the following MultiQC reports:

  • one global reports including all the samples listed in the samplesheet
  • one group report per unique tag. These reports compile samples that share the same tag.
Output files
  • multiqc/
    • global_report
      • multiqc_report.html: a standalone HTML file that can be viewed in your web browser.
      • multiqc_data/: directory containing parsed statistics from the different tools used in the pipeline.
      • multiqc_plots/: directory containing static images from the report in various formats.
    • group_reports
      • tag1/
        • multiqc_report.html
        • multiqc_data/
        • multiqc_plots/
      • tag2/
        • multiqc_report.html
        • multiqc_data/
        • multiqc_plots/

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
  • pipeline_info/
    • Reports generated by Nextflow: execution_report.html, execution_timeline.html, execution_trace.txt and pipeline_dag.dot/pipeline_dag.svg.
    • Reports generated by the pipeline: pipeline_report.html, pipeline_report.txt and software_versions.yml. The pipeline_report* files will only be present if the --email / --email_on_fail parameter’s are used when running the pipeline.
    • Reformatted samplesheet files used as input to the pipeline: samplesheet.valid.csv.
    • Parameters used by the pipeline run: params.json.

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.