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.
The pipeline is built using Nextflow and processes data using the following steps:
FastQCFastq summary statisticsReference indexingRead trimmingAssign taxonomy to readsRe-estimate taxonomyRead subsamplingDetect drug resistance and lineageDetect spoligotypeRead mappingSort bam filesCall and filter variantsConvert filtered vcf to pseudogenomeCalculate percentage of reference mappedCreate alignment from pseudogenomesMask alignmentRemove non-informative positionsSummarise sample metadataMultiQCPipeline information
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.
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
fastqscan/*.json: JSON formatted file of summary statistics.
fastq-scan is a tool for generating FASTQ summary statistics in JSON format.
In order to map the reads to the reference sequence it is indexed.
Output files
bwa/index.*.amb*.ann*.bwt*.pac*.sa
These files are generally not required except for in the mapping step
Output files
fastp is a tool used to perform adapter/quality trimming on sequencing reads.
Output files
kraken2/*.kraken2.report.txt: Kraken 2 taxonomic report. See here for a detailed description of the format.
Kraken 2 is a sequence classifier that assigns taxonomic labels to DNA sequences. Kraken 2 examines the k-mers within a query sequence and uses the information within those k-mers to query a database. That database maps k-mers to the lowest common ancestor (LCA) of all genomes known to contain a given k-mer.
Output files
bracken/*_S.tsv: Bracken TSV output report of the re-estimated abundances. See here for a detailed description of the format.
Bracken (Bayesian Reestimation of Abundance with KrakEN) is a highly accurate statistical method that computes the abundance of species in DNA sequences from a metagenomics sample.
Output files
rasusa/*.fastq.gzsubsampled fastq files
rasusa is used to subsample reads to a depth cutoff of a default of 100.
Output files
tbprofiler/results/*.csvCSV formated result file of resistance and strain type*.txtJSON formated result file of resistance and strain type*.jsonText file of resistance and strain type
TB-profiler is a profiling tool for Mycobacterium tuberculosis to detect drug resistance and lineage from WGS data
Output files
spotyping/*.txtText file containing binary and octal
SpoTyping is a tool for extracting the spoligotype binary and binary from sequence reads.
By default the the bam files created are not saved since sorted bam files are produced in the next step.
After mapping the bam files are sorted and statistics calculated.
Output files
samtools/*.bamsorted bam files*.bam.baibam file index*.bam.flagstatbam file metrics*.bam.idxstatsbam file metrics*.bam.statsbam file metrics
The bcftools software is used to call and filter variants found within the bam files.
Output files
variants/*.vcf.gzfiltered vcf files containing variants
The filtered vcf files are converted to a pseudogenome.
Output files
pseudogenomes/*.faspseudogenome with a base at each position of the reference sequence
The seqtk tool is used to identify the number of mapped bases within the pseudogenome fasta files.
Output files
seqtk/*.tsvtsv with base count and distribution for each pseudogenome
Only those pseudogenome fasta files that have a non-ACGT fraction less than the threshold specified will be included in the aligned_pseudogenomes.fas file. Those failing this will be reported in the low_quality_pseudogenomes.tsv file.
Output files
pseudogenomes/masked_alignment.fasalignment of all sample pseudogenomes and the reference sequencelow_quality_pseudogenomes.tsva tab separated file of the samples that failed the non-ACGT base threshold
Output files
pseudogenomes/masked_alignment.fasmasked alignment of all sample pseudogenomes and the reference sequence
remove_blocks_from_aln is a tool for masking sites in an alignment using coordinates contained in the AF2122_region_exclude file in the assets directory.
Before building trees, non-informative constant sites are removed from the alignment using snp-sites
Output files
snpsites/constant.sites.txtA file with the number of constant sites for each basefiltered_alignment.fasAlignment with only informative positions (those positions that have at least one alternative variant base)
Summary files from fastqscan, bracken, spotyping, tbprofiler and seqtk are collected and a final metadata summary created
Output files
metadata/fastq-scan_summary.tsvSummary of fastq metrics for all samplesmapping_summary.tsvSummary of seqtk output for all samplesmetadata_summary.tsvSummary of important metadata for all samplesspecies_composition.tsvTaxonomic composition of reads for all samplesspoligotype_summary.tsvSummary of spoligotypes for all samplestbprofiler.variants.txtText file of variants for all samplestbprofiler.txtText file of lineage and variants for all samplestbprofiler.lineage.itol.txtText file in iTOL format of lineage for all samplestbprofiler.jsonJson file of lineage and variants for all samplestbprofiler.dr.itol.txtText file in iTOL format of drug resistance profile for all samplestbprofiler.dr.indiv.itol.txtText file in iTOL format of individual drug resistance profiles for all samples
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.
Output files
pipeline_info/- Reports generated by Nextflow:
execution_report.html,execution_timeline.html,execution_trace.txtandpipeline_dag.dot/pipeline_dag.svg. - Reports generated by the pipeline:
pipeline_report.html,pipeline_report.txtandsoftware_versions.yml. Thepipeline_report*files will only be present if the--email/--email_on_failparameter's are used when running the pipeline. - Reformatted samplesheet files used as input to the pipeline:
samplesheet.valid.csv.
- Reports generated by Nextflow:
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.







