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. Directories are numbered in the order the steps run, and which ones appear depends on --mode and the --run_* toggles.

Pipeline overview

Bulk mode (--mode bulk):

Single-cell mode (--mode sc):

All modes:

  • MultiQC - Aggregate report describing results and QC from the whole pipeline
  • Pipeline information - Report metrics generated during the workflow execution

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.

fastp

Output files
  • 02_fastp/
    • *.fastp.html, *.fastp.json: Trimming reports.
    • *.trimmed.fastq.gz: Trimmed reads passed to STAR.

fastp removes adapters and low-quality bases. Only produced for FASTQ-start samples.

STAR

Output files
  • 03_star/
    • *.Aligned.sortedByCoord.out.bam(.bai): Coordinate-sorted, indexed alignments.
    • *.Log.final.out, *.Log.out, *.Log.progress.out: Alignment logs; the final log is parsed by MultiQC.

STAR aligns reads to the genome. BAMs are written with MD tags, which MARINE requires to detect edits.

Strandedness

Output files
  • 04_strandedness/
    • *_strandedness.txt: Raw infer_experiment.py output.
    • *_strand_code.txt: The inferred code (0 unstranded, 1 forward, 2 reverse).

RSeQC infers library strandedness, which determines how edits are assigned to strands downstream. Supply --strandedness to skip inference.

MARINE (bulk)

Output files
  • 04_marine/<sample>/
    • final_filtered_site_info.tsv: All called edit sites.
    • final_filtered_site_info_annotated.tsv: The same sites annotated against --gene_bed (stranded libraries only).

MARINE reads MD tags to call nucleotide edits of the type given by --edit_type. These are raw calls; filtering happens later. BAMs lacking MD tags are passed through samtools calmd first.

SAILOR

Output files
  • 04_sailor/sailor_output/
    • *.combined.readfiltered.formatted.varfiltered.snpfiltered.ranked.bed: Confidence-ranked edit sites, one BED per sample.
    • 8_bw_and_bam/: Per-sample coverage bigWigs and filtered BAMs, consumed by FLARE.
  • 04_sailor/metaplotr/<sample>/
    • *.dist.measures.txt: Metagene coordinates of the ranked edit sites.

SAILOR scores each candidate edit site with a beta-binomial confidence value. The ranked BED is the input to FLARE. Produced when --run_sailor true (the default).

FLARE

Output files
  • 05_flare/flare_output/FLARE/
    • <sample>_merged_sorted_peaks.*.scored.tsv: Edit clusters with FDR scores. This is the primary RBP-STAMP result — each row is a candidate RBP binding site.
  • 05_flare/flare_regions/
    • Sliding-window region files, generated from --gtf when --flare_regions is not supplied.

FLARE groups SAILOR’s edit sites into clusters and tests each against a background model, reporting those below --flare_fdr. Adjacent significant windows within --flare_max_merge_dist bp are merged. Produced only when --run_flare true.

Only cluster-identification mode runs here. FLARE’s edit-fraction mode is left to the user; see the FLARE documentation.

featureCounts

Output files
  • 05_featurecounts/
    • *.featurecounts.txt: Per-sample gene counts.
    • *.featurecounts.txt.summary: Assignment summary, parsed by MultiQC.
    • counts_matrix_combined.tsv: All samples merged into one matrix.

featureCounts quantifies reads per gene. The merged matrix is used to normalise edit counts to expression, so that a heavily edited gene is not simply a heavily expressed one.

Filtered and normalised edits

Output files
  • 06_filter_normalize/<sample>/filtered/
    • filtered_edits.tsv: Edit sites surviving all enabled filters.
  • 06_filter_normalize/<sample>/normalized/bedgraphs/
    • <sample>.<edit_type>.edit_fraction.bed: BED6 of edit fractions, used by metaPlotR.
    • Per-gene edit rates normalised to expression.

Edits pass through four filters, each individually switchable: multiallelic sites (--filter_bulk_multiallelic), dbSNP overlap (--filter_bulk_dbsnp), editing fraction above --max_frac (--filter_bulk_max_frac), and sites without gene annotation (--filter_bulk_unannotated). Surviving sites are then normalised against the featureCounts matrix.

For Ribo-STAMP these are the primary results: the normalised edit rate per gene is the readout of ribosome association.

metaPlotR

Output files
  • 07_metaplotr/<sample>/
    • *.dist.measures.txt: Position of each edit site in normalised transcript coordinates (5’ UTR / CDS / 3’ UTR).

metaPlotR maps edit sites onto a metagene so their transcript-level distribution can be plotted. The genePred annotation is chosen from --genome or supplied with --genepred.

Cell Ranger

Output files
  • 01_cellranger/<sample>/
    • outs/possorted_genome_bam.bam(.bai): Aligned reads tagged with cell barcodes.
    • outs/filtered_feature_bc_matrix/: Cell-by-gene count matrix.
    • outs/web_summary.html: Cell Ranger QC report.

Cell Ranger aligns 10x reads and calls cells. Only run for single-cell FASTQ-start samples; BAM-start samples supply these files directly.

Note

Cell Ranger requires a 10x Genomics licence, which you must accept before use.

MARINE (single-cell)

Output files
  • 02_marine_sc/<sample>/marine_output/
    • Per-barcode edit site calls, keyed by the BAM tag given in --barcode_tag.

Filtered and normalised edits (single-cell)

Output files
  • 03_filter_sc/<sample>/
    • filtered_edits.tsv: Edit sites surviving filters 1–4.
    • sites.bed: The surviving sites, input to the depth step.
    • piecharts_unique_sites.png, piecharts_edit_rows.png: Conversion types at every filter step (raw through filter 5), counted by unique edit site and by edit row (one per cell per site).
    • histograms_cell_fraction.png: Each cell’s editing fraction at a site (0–1) at every filter step.
    • filter_step_stats_f1_f4.tsv: The counts behind the plots for filters 1–4 (unique sites and edit rows per conversion type).
    • With --filter_sc_site_max_frac only:
      • site_depth.tsv: samtools read depth at each site across the barcode list’s cells.
      • site_frac.tsv: Per site: edited reads, depth, fraction and which checks it passed.
      • site_frac_summary.tsv: Sites, edit entries and C>T site purity at each step of filter 5.
      • filtered_edits_site_frac.tsv: Edits surviving filter 5; this is what gets normalised.
      • filter_step_stats.tsv: The plot counts for filters 1–5.
      • histograms_site_fraction.png: Each site’s editing fraction (edited reads / depth, 0–1, cutoff marked) at each step of filter 5.
  • 04_normalize_sc/<sample>/
    • normalized_edits.tsv: Edit counts normalised to per-cell UMI totals. This is the primary single-cell result.

Four filters apply here, each switchable: multiple conversion types per site (--filter_sc_multi_conversion), dbSNP overlap (--filter_sc_dbsnp), fewer than --min_count edited reads (--filter_sc_min_count), and unannotated sites (--filter_sc_unannotated). A fifth, opt-in filter (--filter_sc_site_max_frac) drops sites where more than --site_max_frac of reads are edited, with depth measured by samtools depth over the BAM across all cells in the sample’s barcode list. When a barcode list is given, --min_count is re-applied within those cells first (--filter_sc_recount_min_count).

MultiQC

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 collates QC into a single report, alongside the software versions used in the run. What it contains depends on the route taken:

Route Sections in the report
Bulk, FASTQ start FastQC, fastp, STAR, RSeQC (strandedness), featureCounts
Bulk, BAM start RSeQC, featureCounts
sc, FASTQ start Cell Ranger
sc, BAM start Software versions only

The edit-calling steps — MARINE, SAILOR, FLARE — and the filter, normalise and metaPlotR steps produce no MultiQC-parsable output, so they do not appear in the report.

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.