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:

Directory Structure

{outdir}
β”œβ”€β”€ backsub
β”œβ”€β”€ illumination_correction
β”‚Β Β  └── basicpy
β”œβ”€β”€ multiqc
β”‚Β Β  β”œβ”€β”€ multiqc_data
β”‚Β Β  β”œβ”€β”€ multiqc_plots
β”‚Β Β  └── multiqc_report.html
β”œβ”€β”€ pipeline_info
β”œβ”€β”€ quantification
β”‚Β Β  └── mcquant
β”‚Β Β      └── {segmentation module}
β”œβ”€β”€ registration
β”‚Β Β  └── ashlar
β”œβ”€β”€ segmentation
β”‚Β Β  └── {segmentation module}
└── tma_dearray
    └── masks
 

Illumination Correction

BaSiCPy

BaSiCPy is a python package for background and shading correction of optical microscopy images. It is developed based on the Matlab version of BaSiC tool with major improvements in the algorithm.

Output files
  • {sample_name}-dfp.tif : Tiff fields for dark field illumination correction
  • {sample_name}-ffp.tif : Tiff fields for flat field illumination correction

Registration

ASHLAR

ASHLAR combines multi-tile microscopy images into a high-dimensional mosaic image.

Output files
  • {sample_name}.ome.tif : A pyramidal, tiled OME-TIFF file created from input images.

Background Subtraction

Backsub

Backsub performs a pixel-by-pixel channel subtraction scaled by exposure times of pre-stitched tif images.

Output files
  • markers_bs.csv : Marker file adjusted to match the background corrected image
  • .backsub.ome.tif : Background corrected pyramidal ome.tif

TMA Core Separation

Coreograph

Coreograph uses UNet, a deep learning model, to identify complete/incomplete tissue cores on a tissue microarray. It has been trained on 9 TMA slides of different sizes and tissue types.

Output files
  • {core_number}.tif : Individual cropped tissue core images
  • centroidsY-X.txt : A text file listing centroids of each core in format Y, X
  • masks/{core_number}_mask.tif : Binary mask image for each tissue core
  • TMA_MAP.tif : A TMA map showing core number labels and mask outlines

Segmentation

Cellpose

Cellpose segments cells in images

Output files
  • {sample_name}.ome_cp_masks.tif : labelled mask output from cellpose in tif format

Mesmer

Mesmer segmentation for whole-cell

Output files
  • mask_{sample_name}.tif : File containing the mask.

Quantification

Mcquant

Mcquant extracts single-cell data given a multi-channel image and a segmentation mask.

Output files
  • *.csv : Single-cell feature table for all selected segmenters, for each segmented cell compartment.

Quality Control

MultiQC

Aggregate report describing results and QC from the whole pipeline

Output files
  • multiqc/
    • 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.

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

Report metrics generated during the workflow execution

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.