nf-core/methylong
Extract methylation calls from long reads (ONT/ PacBio)
Introduction
This document describes the output produced by the pipeline.
Sample-level outputs are under <platform>/<sample>/, where <platform> is ont or pacbio. Population-scale comparisons have a separate directory under <platform>/dmr_population_scale/. The multiqc/ and pipeline_info/ directories are at the top level of the 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
- BedGraphs - methylation tracks derived from pileups
- 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
Modification calling (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
The pipeline uses Modkit for ONT pileup. For PacBio, --pileup_method selects pb-CpG-tools (default) or Modkit. The PacBio ccsmeth branch also writes its own call_freqb pileup.
Output files
modkit output:
pileup/*.bed.gz: pileup of methylation calls in compressed bed format*.bed.gz.tbiindexes the compressed Modkit pileup.*_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
ccsmeth output
pileup/contains the compressed*_ccsmeth_freqb*.bed.gzpileup and its.tbiindex when the ccsmeth branch runs.
Bedgraphs
Use --bedgraph to request compressed bedGraph tracks.
Output files
bedgraphs/*.bedgraph.gzcontains tracks derived from the Modkit or pb-CpG-tools pileup.pacbio/<sample>/bedgraphs/ccsmeth/*_CG.bedgraph.gzis the four-column track from the aggregate ccsmeth pileup when--pacbio_modcaller ccsmethis selected. Its fourth column is the methylation percentage.
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.gzand*_phased.vcf.gz.tbicontain the phased variants and their index.*_haplotagged.bamand*_haplotagged.bam.baicontain the haplotagged alignments and their index.*_haplotagged.readlistlists haplotype assignments for reads.
DMR analysis
DMR output paths depend on the analysis level and caller.
Output files
Haplotype-level DMRs
dmr_haplotype_level/phased_pileup/contains compressed Modkit pileups, including*_hp1.bed.gz,*_hp2.bed.gzand*_combined.bed.gzfor 5mC.dmr_haplotype_level/dmr_dss/contains*_DSS_DMLtest.txt,*_DSS_callDML.txt,*_DSS_callDMR.txtand*_DSS.logwhen DSS produces results.dmr_haplotype_level/dmr_modkit/contains*_modkit_dmr_haplotype_level.bed.gzand the Modkit log when Modkit produces results.
Population-scale DMRs
<platform>/dmr_population_scale/group_pileup/contains the compressed per-sample pileups for the selected groups.<platform>/dmr_population_scale/<group_a>_<group_b>/containsdss_population_scale_DMLtest.txt,dss_population_scale_callDML.txt,dss_population_scale_callDMR.txtanddss_population_scale.logfor DSS, or*_modkit_dmr_population_scale.bed.gzand the Modkit log for Modkit.
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/- Nextflow reports use a run-specific suffix, as in
execution_report_*.html,execution_timeline_*.html,execution_trace_*.txtandpipeline_dag_*.html. nf_core_methylong_software_versions.ymlrecords the software versions collected during the run.pipeline_report.htmlandpipeline_report.txtare generated when--emailor--email_on_failis set.
- Nextflow reports use a run-specific suffix, as in
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.