nf-core/bacass
Simple bacterial assembly and annotation pipeline
2.0.0
). The latest
stable release is
2.3.1
.
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:
- Quality trimming and QC
- Taxonomic classification
- Assembly Output
- Assembly QC with QUAST
- Annotation
- Report
- Pipeline information - Report metrics generated during the workflow execution
Quality trimming and QC
Short Read Trimming
This step quality trims the end of reads, removes degenerate or too short reads and if needed, combines reads coming from multiple sequencing runs.
Output files
{sample_id}/trimming/shortreads/
*.fastq.gz
: Trimmed (and combined reads)
Short Read RAW QC
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.
NB: The FastQC plots displayed in the MultiQC report shows untrimmed reads. They may contain adapter sequence and potentially regions with low quality.
Output files
{sample_id}/FastQC/
*_fastqc.html
: FastQC report containing quality metrics.*_fastqc.zip
: Zip archive containing the FastQC report, tab-delimited data file and plot images.
Long Read Trimming
This step performs long read trimming on Nanopore input (if provided).
Output files
{sample_id}/trimming/longreads/
trimmed.fastq.gz
: The trimmed FASTQ file
Long Read RAW QC
These steps perform long read QC for input data (if provided).
Please refer to the documentation of NanoPlot and PycoQC if you want to know more about the plots created by these tools.
Output files
-
{sample_id}/QC_Longreads/NanoPlot
: Various plots in HTML and PNG format -
{sample_id}/QC_Longreads/PycoQC
{sample_id}_pycoqc.html
: QC report in HTML format{sample_id}_pycoqc.json
: QC report in JSON format
Example plot from Nanoplot:
Taxonomic classification
This QC step classifies your reads using Kraken2 a k-mer based approach. This helps to identify samples that have purity issues. Ideally you will not want to assemble reads from samples that are contaminated or contain multiple species. If you like to visualize the report, try Pavian or Krakey.
Output files
{sample}/Kraken2
{sample}.kraken2.report.txt
: Classification of short reads in the Kraken(1) report format.{sample}_longreads.kraken2.report.txt
: Classification of long reads in the Kraken(1) report format.
See webpage for more details.
Exemplary Kraken2 report screenshot:
Assembly Output
Trimmed reads are assembled with Unicycler in short
or hybrid
assembly modes. For long-read assembly, there are also canu
and miniasm
available.
Unicycler is a pipeline on its own, which at least for Illumina reads mainly acts as a frontend to Spades with added polishing steps.
Output files
{sample_id}/Unicycler
{sample}.scaffolds.fa
: Final assembly in fasta format{sample}.assembly.gfa
: Final assembly in Graphical Fragment Assembly (GFA) format{sample}.unicycler.log
: Log file summarizing steps and intermediate results on the Unicycler execution
Check out the Unicycler documentation for more information on Unicycler output.
{sample_id}/Canu
{sample}_assembly.fasta
: Final assembly in fasta format{sample}_assembly.report
: Log file
Check out the Canu documentation for more information on Canu output.
{sample_id}/Miniasm
{sample}_assembly.fasta
: Assembly in fasta format{sample}_assembly_consensus.fasta
: Consensus assembly in fasta format (polished by Racon)
Check out the Miniasm documentation for more information on Miniasm output.
Polished assemblies
Long reads assemblies can be polished using Medaka or NanoPolish with Fast5 files.
Output files
-
{sample_id}/Medaka/{sample_id}_polished_genome.fa
consensus.fasta
: Polished consensus assembly in fasta formatcalls_to_draft.bam
: Alignment in bam formatcalls_to_draft.bam.bai
: Index of alignmentconsensus.fasta.gaps_in_draft_coords.bed
consensus_probs.hdf
-
{sample_id}/Nanopolish
polished_genome.fa
: Polished consensus assembly in fasta format
Assembly QC with QUAST
The assembly QC is performed with QUAST for all assemblies in one report. It reports multiple metrics including number of contigs, N50, lengths etc in form of an html report. It further creates an HTML file with integrated contig viewer (Icarus).
Output files
QUAST
report.tsv
: QUAST’s report in text format
QUAST/other_files
icarus.html
: QUAST’s contig browser as HTMLreport.html
: QUAST assembly QC as HTML reportreport.pdf
: QUAST assembly QC as pdf
Annotation
By default, the assembly is annotated with Prokka which acts as frontend for several annotation tools and includes rRNA and ORF predictions. Alternatively, on request, the assembly is annotated with DFAST.
Output files
{sample_id}/Prokka/{sample_id}
{sample_id}.gff
: Annotation in gff format{sample_id}.txt
: Annotation in text format{sample_id}.faa
: Protein sequences in fasta format
See Prokka’s documentation for a full description of all output files.
{sample_id}/DFAST/RESULT_{dfast_profile_name}
genome.gff
: Annotation in gff formatstatistics.txt
: Annotation statistics in text formatprotein.faa
: Protein sequences in fasta format
Report
Some pipeline results are visualised by MultiQC, which is a visualisation tool that generates a single HTML report summarising all samples in your project. Further statistics are available in within the report data directory.
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.
The pipeline has special steps which also allow the software versions to be reported in the MultiQC output for future traceability.
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.
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.
Pipeline information
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.
Output files
pipeline_info/
- Reports generated by Nextflow:
execution_report.html
,execution_timeline.html
,execution_trace.txt
andpipeline_dag.dot
/pipeline_dag.svg
. - Reports generated by the pipeline:
pipeline_report.html
,pipeline_report.txt
andsoftware_versions.tsv
. - Reformatted samplesheet files used as input to the pipeline:
samplesheet.valid.csv
.
- Reports generated by Nextflow: