Skip to content

MethylSeq

Methylation sequencing analysis, from FastQ files to methylation calls and QC reports, using Bismark or bwa-meth + MethylDackel.

Nextflow nf-core template version run with conda run with docker run with singularity nf-test

MethylSeq is the TOBI lab version of the nf-core/methylseq pipeline (version 2.6.0). It trims and aligns bisulfite sequencing reads, extracts the methylation calls and summarises the quality control of all samples in a MultiQC report. It can also remove optical duplicates, filter reads with an incomplete bisulfite conversion and estimate the CpG-level sequencing saturation with methurator.

MethylSeq metro map

Click the map to open the interactive version, which you can pan, zoom and filter by line.

The pipeline runs one of two workflows, chosen with --aligner: Bismark (bismark, the default, with Bowtie2, or bismark_hisat with HISAT2) or bwa-meth with MethylDackel (bwameth).

Step Bismark workflow bwa-meth workflow
Generate the reference genome index (optional) Bismark bwa-meth
Merge re-sequenced FastQ files cat cat
Raw data QC FastQC FastQC
Adapter trimming Trim Galore! Trim Galore!
Align reads Bismark bwa-meth
Filter reads with an incomplete conversion (optional) Bismark -
Remove optical duplicates Picard MarkDuplicates -
Deduplicate alignments Bismark Picard MarkDuplicates
Extract methylation calls Bismark MethylDackel
Sample and summary reports Bismark -
Alignment QC Qualimap Qualimap
Library complexity (optional) Preseq Preseq
CpG-level sequencing saturation (optional) methurator methurator
Project report MultiQC MultiQC
  1. Prepare a samplesheet with one row per FastQ file (single-end) or pair of FastQ files (paired-end):

    samplesheet.csv
    sample,fastq_1,fastq_2
    SAMPLE1_S1,SAMPLE1_S1_R1.fastq.gz,SAMPLE1_S1_R2.fastq.gz
    SAMPLE2_S2,SAMPLE2_S2_R1.fastq.gz,
  2. Write the parameters in params.yaml, with a reference genome given by its iGenomes name (genome) or as a FASTA file (fasta):

    params.yaml
    input: ./samplesheet.csv
    outdir: ./results
    fasta: ./reference/genome.fa
    aligner: bismark
    rrbs: true
  3. Run the pipeline:

    Terminal window
    nextflow run VIBTOBIlab/MethylSeq -params-file params.yaml -profile docker

The results are described on the output page.

The original nf-core/methylseq pipeline was written by Phil Ewels (@ewels) for use at the National Genomics Infrastructure at SciLifeLab in Stockholm, Sweden, and is maintained by Felix Krueger (@FelixKrueger), Sateesh Peri (@sateeshperi) and Edmund Miller (@emiller88), with contributions from Rickard Hammarén (@Hammarn), Alexander Peltzer (@apeltzer) and Patrick Hüther (@phue).

This version was modified by Edoardo Giuili (@edogiuili), who maintains it together with Sofie Van de Velde (@sofvdvel).

If you use this pipeline for your analysis, please cite the nf-core publication:

The nf-core framework for community-curated bioinformatics pipelines.

Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.

Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x

The tools used by the pipeline are listed on the citations page.