Skip to content

Changelog

  • Updated the pipeline to the nf-core/tools template v4.2.2 (non-nf-core, VIBTOBIlab organisation) through a new TEMPLATE branch, so later template updates can be applied with nf-core pipelines sync.
  • Nextflow >=26.04.0 is now required, the pipeline passes nextflow lint (strict syntax) with Nextflow 26.10.
  • Pipeline parameters are declared as typed parameters in main.nf, so values given on the command line (e.g. --clip_r1 3, --rrbs) keep their type with recent Nextflow versions.
  • Replaced the lib/ Groovy helpers with the PIPELINE_INITIALISATION / PIPELINE_COMPLETION subworkflows, and nf-validation with nf-schema (v3.0.0). nextflow_schema.json now uses JSON schema draft 2020-12.
  • Software versions are collected with the versions topic channel and saved to pipeline_info/methylseq_software_mqc_versions.yml, replacing CUSTOM_DUMPSOFTWAREVERSIONS.
  • Updated all nf-core modules to their latest versions. This includes major tool updates (see Results compared to v2.6.5 for their effect on the outputs): Bismark 0.24.0 → 3.4.0 (the Rust rewrite of Bismark; the bismark/align container now also includes bwa-mem3 0.18.0), Trim Galore 0.6.7 → 2.6.0, Picard 3.0.0 → 3.5.0, samtools 1.17 → 1.24, Qualimap 2.2.2d → 2.3, bwa-meth 0.2.2 → 0.2.9, MethylDackel 0.6.0 → 0.6.1, FastQC 0.12.1 → 0.13.0 and Preseq 3.1.2 → 3.2.0. The Picard MarkDuplicates metrics file of the bwa-meth workflow is now named <sample>.markdup.sorted.metrics.txt, and the bwa-meth index is saved to bwameth/reference_genome/BwamethIndex/.
  • Replaced the local methurator modules with the nf-core methurator/gtestimator and methurator/plot modules (methurator 2.1.1 → 2.2.0).
  • Moved the in-house modules bismark/filter_non_conversion, picard/markopticalduplicates and samtools/queryname_sort to modules/local/, and the local subworkflows to subworkflows/local/<name>/main.nf. Removed the deprecated when: sections from the local modules. The local modules bismark/filter_non_conversion and samtools/queryname_sort now use the same containers as the updated nf-core modules (Bismark 3.4.0, samtools 1.24), picard/markopticalduplicates stays on Picard 3.0.0. All local modules report their versions through the versions topic channel. The samtools/sort output names (<input>.sorted.bam) are now set with ext.prefix instead of a local change to the module.
  • Fixed METHURATOR_GTESTIMATOR receiving the BAM and BAI files of a sample from two separate channels, which could pair a BAM with the index of another sample.
  • Fixed --known_splices referencing an undefined variable for --aligner bismark_hisat.
  • Fixed --bwa_meth_index being passed to the Bismark index channel, so a provided bwa-meth index was never used.
  • Fixed pipeline_info/methylseq_software_mqc_versions.yml only listing some of the processes.
  • --ignore_r2 and --ignore_3prime_r2 now default to 0 for an R2 end that Trim Galore already handles (trimming presets, --clip_r2 / --three_prime_clip_r2, --rrbs) instead of ignoring 2 more bp, and --rrbs --non_directional now passes --non_directional to Trim Galore (as in nf-core/methylseq#654). Set explicitly, either value still wins. Runs without R2 clipping, and single-end runs, are unchanged.
  • Removed the --hook_url parameter (dropped from the nf-core template), the unused test_ci, test_full and gitpod profiles, and the old validation parameters (validationShowHiddenParams, validationFailUnrecognisedParams, validationLenientMode). --test_data_base is replaced by --pipelines_testdata_base_path.
  • Added the --help_full and --show_hidden parameters, and the arm64, emulate_amd64 and wave profiles (the arm profile is kept as an alias of emulate_amd64).
  • Moved the pipeline tests to tests/<aligner>.nf.test and use the nft-utils plugin instead of tests/lib/UTILS.groovy. Added a test for --filter_non_conversion.

Checked by comparing the nf-test snapshots of v2.6.5 and v3.0.0 (test profile; Bismark, Bismark HISAT2 and bwa-meth, with the default, RRBS, NOMe-seq and --clip_r1 settings).

Unchanged, identical to v2.6.5:

  • Bismark and Bismark HISAT2: methylation bedGraphs (*.bedGraph.gz), coverage files (*.bismark.cov.gz), M-bias reports (*.M-bias.txt), NOMe-seq coverage files from coverage2cytosine (*.NOMe.{CpG,GpC}.cov.gz) and the Bismark genome index.
  • bwa-meth: MethylDackel methylation calls (*_CpG.bedGraph) and M-bias files, samtools flagstat reports and the bwa-meth index files.
  • All aligners: merged FASTQ files (cat) and the Qualimap BamQC results (genome_results.txt).
  • The alignments themselves: the read records of the deduplicated BAM files are identical, only the BAM headers (and, for bwa-meth, some optional SAM tags) differ.

Changed, with the same results:

  • Bismark per-read methylation calls (methylation_calls/{CpG,CHG,CHH}_{OT,OB}_*.txt.gz) and splitting reports (*_splitting_report.txt): only the line with the Bismark extractor version differs (v0.24.0 → v3.4.0), all methylation calls are identical.
  • Software versions (pipeline_info/methylseq_software_mqc_versions.yml): new tool versions, and every process is now listed.

Changed:

  • Bismark methylation calls of paired-end samples whose R2 ends are trimmed by Trim Galore (library presets such as --em_seq, --clip_r2 / --three_prime_clip_r2, or --rrbs with trimming): the 2 bp R2 ignores are no longer applied on top of the trimming, so more methylation calls are kept. Per-read calls, splitting reports and M-bias reports change for these samples; runs without R2 trimming, and single-end samples, are unchanged.
  • samtools stats reports (bwameth/alignments/samtools_stats/*.stats): samtools 1.24 reports some summary statistics differently from samtools 1.17 for the same alignments (e.g. average length, the inward/outward oriented pair counts and an extra note on the is sorted line).
  • Methurator summaries (methurator/summaries/<sample>/methurator_summary.yml): the summaries now record methurator 2.2.0 (was 2.1.1), the command, input files and options are unchanged. The saturation estimates vary between runs by design (random downsampling), also with the same version and inputs, so they cannot be compared exactly between v2.6.5 and v3.0.0.
  • QC reports (FastQC, Trim Galore, Qualimap HTML, Bismark alignment, deduplication and summary reports, MultiQC): new tool versions, different layout and version or date information.
  • Renamed outputs: bwameth/deduplicated/picard_metrics/<sample>.markdup.sorted.metrics.txt (was <sample>.markdup.sorted.MarkDuplicates.metrics.txt) and bwameth/reference_genome/BwamethIndex/ (was bwameth/reference_genome/bwameth/, without the copy of genome.fa).
  • Thanks to @Lucmeister55, fixed aligned BAM files not being published by the Bismark subworkflow when --rrbs was combined with --remove_optical_duplicates false (see issue here).
  • Add documentation site.
  • Add nf-metro map.
  • Added the .bai and .fai files to the methurator process. These index files are required because, without them, methurator could fail to complete properly or produce errors due to the missing indexes.
  • Updated MultiQC to version v1.33
  • Added a second Picard Markduplicates for BwaMeth subworkflow and changed the name of the previous one with PicardMarkOpticalDuplicates for the Bismark subworkflow.
  • Updated tests of the pipeline
  • Update the container of Bismark in the module BISMARK_FILTER_NON_CONVERSION with the official BioContainer (see CHANGELOG version v2.6.1)
  • Substitute the sequencing saturation analysis on RRBS samples previously run using custom scripts with methurator package.
  • Fixed a bug for the PREPARE_GENOME() workflow to automatically fetch the FASTA file if not provided by the user.

In-house modifications applied to nf-core/methylseq pipeline version v2.6.0

Section titled “In-house modifications applied to nf-core/methylseq pipeline version v2.6.0”
  • Added parameter to deactivate PicardMarkduplicates module
  • Added parameter to specify which sequencer has been used for PicardMarkduplicates module.
  • Reordered the main Bismark Workflow.
  • Added the optional Sequencing Saturation plots.

In-house modifications applied to nf-core/methylseq pipeline version v2.6.0

Section titled “In-house modifications applied to nf-core/methylseq pipeline version v2.6.0”
  • Picard Markduplicates module has been added to Bismark subworflow(look at the module for more information).
  • Bismark filter_non_conversion function has been added to the Bismark subworkflow. It can be activated specifing the flga --filter_non_conversion together with the minimum_count and percentage_cutoff parameters (see nextflow.conf and filter_non_conversion module for more information). When activated, it creates an output folder where it saves 3 files. The fitlered bam file is then used for the subsequent modules. It needs to be updated with a new version of Bismark (and the corresponding biocontainer) when it is released (there is a bug in the current version, see the issue #688) since now it’s using an unofficial Bismark container.
  • 🛠 Copy methylKit-compatible files to publishDir #357
  • 🐛 fix ignore_r1 and ignore_3prime_r1 variable expansion #359
  • 🔄 Updated template to nf-core/tools v2.9
  • 🔄 Updated template to nf-core/tools v2.10
  • 🔧 Updated nf-core modules for FastQC, samtools sort, samtools flagstat
    • ❌ Removes problematic -m memory assignment for samtools sort #81
  • 🧾 Use fromSamplesheet from nf-validation #341
  • 🚀 Update Maintainers and add CODEOWNERS #345
  • ⚙️ Update schema to utilize exists and add more patterns #342
  • 📁 Support pipeline-specific configs #343
  • 🛠️ Added publishing of coverage (*cov.gz) files for NOMe-seq filtered reads for coverage2cytosine
  • 🛠️ Wrong display values for “zymo” and “em_seq” presets on help page #335
  • 📚 Use new Citation tools functions #336
  • Updated template to nf-core/tools v2.8
  • Add --bamqc_regions_file parameter for targeted methylation sequencing data #302
  • ✨ Add NF-TEST tests and snapshots for the pipeline test profile #310
  • 🛠️ update index file channels to explicit value channels #310
  • 🐛 fix params.test_data_base in test and test_full configs #310
  • 🤖 GitHub Actions CI - pull_request to dev tests with NXF_VER latest-everything #310
  • 🤖 GitHub Actions CI - pull_request to master tests with NXF_VER 22.10.1 & latest-everything #310
  • 🤖 GitHub Actions CI - fail-fast set to false #310
  • 🐛 get to the bottom of index tests #278
  • ✨ Support for Bismark methylation extraction ignore and ignore_3prime parameters when ignore_r1 or ignore_3prime_r1 are greater than 0. #322
  • 🛠️ rename ignore -> ignore_r1 and ignore_3prime -> ignore_3prime_r1 params #322
  • 🐛 fix ignore_3prime_r2 param #299
  • 🐛 removed unused directory #297
  • ⚙️ Dramatically increase the default process time config requests for Bismark and bwa meth alignment
  • ✨ Add a tower.yml file to enable Reports in Nextflow Tower
  • 🤖 GitHub Actions CI - download the test data prior to running tests
  • 🧹 Refactor genome indices preparation into a separate workflow
  • 🧹 Refactor subworkflow logic out of alignment subworkflows, for later sharing
  • 🐛 Fix a bug with using a local genome reference FASTA file
  • 🐛 Fix a bunch of problems in the CI tests using nf-test (#279)
  • ✨ Updated the bismark2summary step so that it no longer stages the aligned BAM files into the working directory (#268)
    • Should be much faster / cheaper for running on the cloud.
  • ✨ Added ability to merge FastQ files based on shared IDs in sample sheet (#272)
  • 🐛 Fixed typo in parameter handling for input reference indices (#263)
  • 🧹 Removed orphaned --bismark_align_cpu_per_multicore and --bismark_align_cpu_per_multicore parameters.
    • Multi-core usage for Bismark alignment is now automatically set. If you would like to overwrite this, you can do so by setting ext.args for the process in a custom config.
  • 🧹 Removed duplicate option --coverage2cytosine (#273)
    • Use the existing option --cytosine_report to launch the new COVERAGE2CYTOSINE process.
    • Removed option --cytosine_report genome_index from the Bismark methylation extractor.
  • ✨ Added option to run the Bismark coverage2cytosine script using the --coverage2cytosine and --nomeseq parameters.
  • 🐛 Fixed bad bug where trimming presets were not being applied (#261)
  • Update Bismark v0.23.0 to v0.24.0

Major pipeline rewrite to use DSL2 with shared nf-core/modules.

Warning: Breaking change! ⚠️

The pipeline now requires a sample sheet to be passed to the pipeline with --input:

sample fastq_1 fastq_2 genome

See an example here

Note: The genome column is not yet used but will give the ability to map to multiple genomes in a single run in a future release. See #181.

Supplying the reference geneome with --genome as before works as usual.

Major updates in commands and software versions for nearly every tool.

Please treat this new version with a little more care than usual and let us know if you find any problems!

  • Added new config profile to run minimal test paired-end dataset, with -profile test_paired. Added to the CI tests.
  • Fixed silent bug in Bismark alignment command that had no effect on the output (#210)
  • Picard 2.25.1 > 2.25.4
  • MultiQC 1.10 > 1.10.1

:warning: Breaking change!

In line with a standardisation change across all of nf-core, we have changed the main parameter name for supplying files to the pipeline. In this release, please use --input instead of --reads. The parameter still works in the same way as before.

  • Increased resources for fastqc process (#143)
  • Raised Nextflow version requirement to 20.07.1
  • Updated template to nf-core/tools 1.13.3
  • Renamed --reads to --input
  • Added new --maxins and --minins parameters to pass on to Bismark
  • New --em_seq preset
    • Sets bismark_maxins = 1000, clip_r1 = 8, clip_r2 = 8, three_prime_clip_r1 = 8, three_prime_clip_r2 = 8
  • New --publish_dir_mode parameter to customise results folder behaviour
  • Fix bug on AWS for bismark_hisat known splice file (#177)
  • Moved parameter documentation into new nextflow_schema.json file
  • Added a -profile test_full config for running the pipeline with a full-size test dataset
    • See the config file for details
    • This will be used for automated release tests on AWS, results browsable on the website
  • Python base 3.7.3 > 3.8.8
  • markdown 3.1.1 > 3.3.4
  • pymdown-extensions 6.0 > 8.1.1
  • pygments 2.6.1 > 2.8.1
  • pigz 2.3.4 > 2.6
  • samtools 1.9 > 1.11
  • TrimGalore! 0.6.5 > 0.6.6
  • Bowtie2 2.3.5 > 2.4.2
  • Hisat2 2.2.0 > 2.2.1
  • Bismark 0.22.3 > 0.23.0
  • Picard 2.22.2 > 2.25.1
  • MethylDackel 0.5.0 > 0.5.2
  • MultiQC 1.8 > 1.10
  • Added multicore support for TrimGalore!
  • Improved the multicore support for Bismark methXtract for more parallelisation (#121)
  • Added --cytosine_report option to tell Bismark to give reports for all cytosines in the genome.
  • Added options --bismark_align_cpu_per_multicore and --bismark_align_cpu_per_multicore to customise how Bismark align --multicore is decided (#124) The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
  • New: pigz 2.3.4
  • Python base 2.7 > 3.7.3
  • FastQC 0.11.8 > 0.11.9
  • TrimGalore! 0.6.4 > 0.6.5
  • HiSAT2 2.1.0 > 2.2.0
  • Bismark 0.22.2 > 0.22.3
  • Qualimap 2.2.2c > 2.2.2d
  • Picard 2.21.3 > 2.22.2
  • MethylDackel 0.4.0 > 0.5.0
  • MultiQC 1.7 > 1.8
  • Fixed bug where the iGenomes config was loaded after the references were set (#121)
  • Removed awsbatch config profile because it is now served by nf-core/configs
  • Tidied up the summary log messages when starting the pipeline
    • Fewer messages saying what you’re not doing, sanitised the order of some logs and removed a few things
  • Slightly refactored the code for trimming parameters
  • Updated template to tools 1.9
  • Fixed error where MethylDackel would consume the Nextflow channels and not work with more than one sample #140
  • Changed all parameter names to snake_case
  • Added --local_alignment option to run Bismark with the --local flag to allow soft-clipping of reads.
  • Added support for bismark’s SLAM-seq mode
  • Added support for running bismark with HISAT2 as an aligner option #85
  • Added support for centralized configuration profiles nf-core/configs
  • Add --meth_cutoff parameter to change default for bismark_methylation_extractor
    • eg. use --meth_cutoff 5 on the command line or params.meth_cutoff = 5 to require 5 overlapping reads to call a methylation site.
  • Added --methyl_kit option to run MethylDackel with the --methylKit flag, producing output suitable for the methylKit R package.
  • new dependency: hisat2 2.1.0
  • new dependency: r-markdown 1.1
  • TrimGalore! 0.5.0 > 0.6.4
  • Bismark 0.20.0 > 0.22.2
  • Bowtie2 2.3.4.3 > 2.3.5
  • Picard 2.18.21 > 2.21.3
  • Qualimap 2.2.2b > 2.2.2c
  • MethylDackel 0.3.0 > 0.4.0
  • Keep memory in GB for samtools, to avoid problems with unit conversion (#99)
  • Changed params.container for process.container
  • Synchronised with version 1.7 of the nf-core/tools template
  • Fixed a bug that caused conda dependencies to be resolved very slowly
  • Allowed some spare memory in the samtools sort steps, avoiding crashes for some users (#81)
  • Added preseq analysis to calculate sample complexity.
    • This new step can help decide sufficient sequencing depth has been reached.
  • Fixed new bug that meant pipeline only worked with one sample at a time #66
    • Introduced in previous release. TrimGalore onwards would only process one sample.
  • Trim 9bp from both ends of both reads for PBAT mode.
  • Save where_are_my_files.txt to results directory to inform the user about missing intermediate files #42
  • Fastqc 0.11.7 > 0.11.8
  • Bowtie2 2.3.4.2 > 2.3.4.3
  • Bismark 0.19.1 > 0.20.0
  • Qualimap 2.2.2a > 2.2.2b
  • Picard 2.18.11 > 2.18.21
  • MultiQC 1.6 > 1.7
  • Fixed error when running the pipeline with --unmapped
    • Previously, could result in error Error ~ No such variable: bismark_unmapped
  • Fixed error where single-sample reports could mix up log files #48
  • Fixed bug in MultiQC process that skipped results from some tools
  • Supply available memory as argument to Picard MarkDuplicates
  • Tests simplified - now work by simply using the test config profile
    • eg: nextflow run nf-core/methylseq -profile test,docker
    • Removed previous run_test.sh script and data
  • New Singularity build script for direct compatibility with singularity-hub
  • Minor improvements to the docs
  • A number of boilerplate nf-core code updates
  • Updated process$name nextflow syntax to avoid warnings in new versions of nextflow
  • Updated software tools
    • trim-galore v0.4.5 update to 0.5.0
    • samtools v1.8 update to 1.9
    • bowtie2 v2.3.4.1 update to 2.3.4.2
    • multiqc v1.5 update to 1.6
    • picard v2.18.2 update to 2.18.11
    • bwameth v0.2.0 update to 0.2.2

Version 1.0 marks the first release of this pipeline under the nf-core flag. It also marks a significant step up in the maturity of the workflow, with everything now in a single script and both aligner workflows fully supported.

  • Renamed and moved SciLifeLab/NGI-MethylSeq to nf-core/methylseq
  • Merged bwa-meth and bismark pipeline scripts, now chosen with --aligner flag
  • Refactored multi-core parameters for Bismark alignment and methylation extraction
  • Rewrote most of the documentation
  • Changed the Docker container to use Bioconda installations

Previous to these releases, this pipeline was called SciLifeLab/NGI-MethylSeq:

  • Fixed MultiQC channel bug
  • Integrated config for QBiC Tuebingen
  • Numerous small container bugfixes
  • Refactored how the config is loaded
  • Fix for resource limit function, improved resource request defaults
  • Fix for iGenomes base path in configs
  • Include base profile name and documentation about Singularity.
  • Testing automated docker hub image tagging for releases.
  • Fix --rrbs mode (#24)
  • Fixed fairly major bug where only a single sample would run past alignment
  • Merged test scripts and rewrote to use command line flags / new travis script.
  • Refactored software version collection code to be more resilient and cleaner / easier to maintain.
  • Dropped support for environment modules and added support for use of Singularity on UPPMAX

First (semi-) stable release of the new NGI-MethylSeq pipeline, as we head towards deployment in production.