Introduction
This document describes the output produced by 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:
- FastQC - Raw read QC
- Modcalling - basecall and modcall
- Preprocessing reads - Adapters and Barcodes removal
- Alignment - alignment to reference genome
- Methylation calling - pile up of methylation calls
- Bed to bedgraph conversion - convert bed to bedgraph
- SNV calling - germline small variant calls
- Phasing - phase genomic variant
- DMR analysis - DMR results
- Fiberseq - fiberseq results
- MultiQC - Aggregate report describing triming and alignment 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. For further reading and documentation see the FastQC help pages.
Modcalling
Modcalling includes basecall for ONT pod5 reads and modcall.
Output files
- basecall/- *_calls.bam: reads after basecalling.
 
- modcall/- *_modbam.bam: reads after modcalling with MM/ML tags, if pacbio_modcaller is jasmine.
- *_ccsmeth_modbam.bam: reads after modcalling with MM/ML tags, if pacbio_modcaller is ccsmeth.
 
Preprocessing reads
Preprocessing of reads are only available for ONT reads. Reads are trimmed, then MM/ML tags are repaired.
Output files
- trim/- *_fastq.gz: reads after trimming.
- *.log: trimming log
 
- repair/- *_repaired.bam: reads after repairing MM/ML tags.
- *_repaired.log: repair log
 
Alignment
Output files
- alignment/- *.bam: aligned modBAM.
- *.bam.bai: alignment index
- *.flagstat: alignment summary
 
Pileup
Methylation pile up for PacBio data can be preformed by either modkit or pb-CpG-tools.
Output files
modkit output:
- pileup/- *.bed.gz: pileup of methylation calls in compressed bed format
- *_pileup.log: pileup log
 
pb-CpG-tools output:
- pileup/- *.bed.gz: pileup of methylation calls in compressed bed format
- *_pileup.log: pileup log
- *.bw: bigwig format
 
Bedgraphs
Output files
- bedgraphs/- *.bedgraph: context specific bedgraph output
 
SNV calling
Output files
- snvcall/- *.vcf.gz: snv calls
- *.vcf.gz.tbi: snv-call index
- *_SNV_PASS.vcf: pass-filtered snv calls
 
Phasing
Output files
- phase/- *phased.vcf: phased vcf
- *.bam: haplotagged bam
- *.readlist: haplotagged readlist
 
DMR analysis
DMR analysis includes haplotype level and population scale, and can be preformed by either DSS or modkit.
Output files
DSS output:
- dmr_haplotype_level/dss/- *_preprocessed_<1|2|etc>.bed: partitioned reads based on HP tag
- *_DSS_DMLtest.txt: DML test results
- *_DSS_callDML.txt: DML
- *_DSS_callDMR.txt: DMR
- *_DSS.log: DSS log
 
modkit dmr output:
- 
dmr_haplotype_level/modkit/- *_<1|2|etc>.bed: partitioned reads based on HP tag
- *_modkit_dmr_haplotype_level.bed: differential methylation output
 
- 
dmr_population_scale/- *_DSS_DMLtest.txt: DML test results
- *_DSS_callDML.txt: DML
- *_DSS_callDMR.txt: DMR
- *_DSS.log: DSS log
 
Fiberseq
Output files
- fiberseq/- *_m6a_predicted.bam: PacBio reads after m6a calling.
- *_m6acall.bam: ONT reads after m6a calling.
- *_m6a.bed: pileup of m6a calls.
 
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 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.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.
- Parameters used by the pipeline run: params.json.
 
- 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.