Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
616fb2a
add methurator
edogiuili Jun 13, 2026
35ccdd4
add methurator config
edogiuili Jun 13, 2026
32b72af
add methurator to main workflow
edogiuili Jun 13, 2026
0f3ea64
add parameters for methurator
edogiuili Jun 13, 2026
d31fb60
add tests for methurator
edogiuili Jun 13, 2026
32d46ea
update docs
edogiuili Jun 13, 2026
676ec76
add t-max param
edogiuili Jun 13, 2026
8f47e90
pass a tuple and remove version channel
edogiuili Jun 13, 2026
8c49ca7
add methurator param to fasta_index_methylseq to create an index if m…
edogiuili Jun 13, 2026
cae0ab7
add ext args to the module
edogiuili Jun 13, 2026
cd8efc4
fix module name
edogiuili Jun 13, 2026
5ec42b8
change error strategy for methurator
edogiuili Jun 13, 2026
cd1f6bf
add methurator as boolean to trigger fasta index generation
edogiuili Jun 13, 2026
859cfaf
add minimum coverage default
edogiuili Jun 13, 2026
99462c8
add minimum coverage default
edogiuili Jun 13, 2026
010f960
change ch_methurator_input into a tuple
edogiuili Jun 13, 2026
0fd5f5d
add configs into main config file
edogiuili Jun 13, 2026
9f42afb
add methurator tests and snaps
edogiuili Jun 13, 2026
276b7fc
add methurator param instead of input boolean to trigger fasta index
edogiuili Jun 14, 2026
cfa4edc
readme update
edogiuili Jun 14, 2026
908ad41
nf-test version to 0.9.3
edogiuili Jun 14, 2026
f4682d1
use methurator as boolean to trigger fasta index
edogiuili Jun 14, 2026
471e334
linting
edogiuili Jun 14, 2026
bbb3a80
update methurator tests to account for unstable yml files
edogiuili Jun 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,21 @@ Choose between workflows by using `--aligner bismark` (default, uses bowtie2 for

Note: For faster CPU runs with BWA-Meth, enable the BWA-MEM2 algorithm using `--use_mem2`. The GPU pathway (Parabricks) requires `-profile gpu` and a container runtime (Docker, Singularity, or Podman); Conda/Mamba are not supported for the GPU module.

| Step | Bismark workflow | bwa-meth workflow | bwa-mem + TAPS workflow |
| -------------------------------------------- | ------------------------ | --------------------- | -------------------------- |
| Generate Reference Genome Index _(optional)_ | Bismark | bwa-meth | bwa index |
| Merge re-sequenced FastQ files | cat | cat | cat |
| Raw data QC | FastQC | FastQC | FastQC |
| Adapter sequence trimming | Trim Galore! | Trim Galore! | Trim Galore! |
| Align Reads | Bismark (bowtie2/hisat2) | bwa-meth | bwa mem |
| Deduplicate Alignments | Bismark | Picard MarkDuplicates | Picard MarkDuplicates |
| Extract methylation calls | Bismark | MethylDackel | TAPS subworkflow (rastair) |
| Sample report | Bismark | - | - |
| Summary Report | Bismark | - | - |
| Alignment QC | Qualimap _(optional)_ | Qualimap _(optional)_ | Qualimap _(optional)_ |
| Sample complexity | Preseq _(optional)_ | Preseq _(optional)_ | Preseq _(optional)_ |
| Project Report | MultiQC | MultiQC | MultiQC |
| Step | Bismark workflow | bwa-meth workflow | bwa-mem + TAPS workflow |
| -------------------------------------------- | ------------------------ | ----------------------- | -------------------------- |
| Generate Reference Genome Index _(optional)_ | Bismark | bwa-meth | bwa index |
| Merge re-sequenced FastQ files | cat | cat | cat |
| Raw data QC | FastQC | FastQC | FastQC |
| Adapter sequence trimming | Trim Galore! | Trim Galore! | Trim Galore! |
| Align Reads | Bismark (bowtie2/hisat2) | bwa-meth | bwa mem |
| Deduplicate Alignments | Bismark | Picard MarkDuplicates | Picard MarkDuplicates |
| Extract methylation calls | Bismark | MethylDackel | TAPS subworkflow (rastair) |
| Sample report | Bismark | - | - |
| Summary Report | Bismark | - | - |
| Alignment QC | Qualimap _(optional)_ | Qualimap _(optional)_ | Qualimap _(optional)_ |
| Sample complexity | Preseq _(optional)_ | Preseq _(optional)_ | Preseq _(optional)_ |
| CpGs-level sequencing saturation | methurator _(optional)_ | methurator _(optional)_ | methurator _(optional)_ |
| Project Report | MultiQC | MultiQC | MultiQC |

Optional targeted sequencing analysis is available via `--run_targeted_sequencing` and `--target_regions_file`; see the [usage documentation](https://nf-co.re/methylseq/usage) for details.

Expand Down
3 changes: 3 additions & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ process {
withName: PRESEQ_LCEXTRAP {
errorStrategy = 'ignore'
}
withName: METHURATOR_GTESTIMATOR {
errorStrategy = 'ignore'
}
withName: BISMARK_ALIGN {
time = { 8.d * task.attempt }
}
Expand Down
17 changes: 17 additions & 0 deletions conf/modules/methurator_gtestimator.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
process {
withName: METHURATOR_GTESTIMATOR {
ext.args = [
params.compute_ci ? ' --compute_ci' : '',
params.rrbs ? ' --rrbs' : '',
params.minimum_coverage ? " --minimum-coverage ${params.minimum_coverage}" : "",
params.t_max ? " --t-max ${params.t_max}" : ""
].join(" ").trim()
publishDir = [
[
path: { "${params.outdir}/methurator/summaries/" },
mode: params.publish_dir_mode,
pattern: "*.yml"
]
]
}
}
11 changes: 11 additions & 0 deletions conf/modules/methurator_plot.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
process {
withName: METHURATOR_PLOT {
publishDir = [
[
path: { "${params.outdir}/methurator" },
mode: params.publish_dir_mode,
pattern: "**/*.html"
]
]
}
}
11 changes: 11 additions & 0 deletions docs/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,17 @@ Note that these are predictive numbers only, not absolute. The MultiQC plot can
- `sample_ccurve.txt`
- This file contains plot values for the complexity curve, plotted in the MultiQC report.

## methurator

[methurator](https://vibtobilab.github.io/methurator/latest/) methurator is a Python package to estimate CpG sequencing saturation for DNA methylation sequencing data.

**Output directory: `results/methurator`**

- `summaries/sample.yml`
- This file contains metadata, model parameters, and extrapolation results for each
- `plots/sample.html`
- This folder contains one interactive, HTML file per sample analysed.

### MultiQC

![MultiQC - FastQC sequence counts plot](images/mqc_fastqc_counts.png)
Expand Down
6 changes: 4 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ flowchart TD
D1 --> J1["preseq (optional)"]
D2 --> J1
D3 --> J1
D1 --> J2["Qualimap (optional)"]
D1 --> J2["methurator (optional)"]
D2 --> J2
D3 --> J2
D1 --> J3["Qualimap (optional)"]
D2 --> J3
D3 --> J3
end

subgraph Stage4[Final QC]
Expand Down
1 change: 1 addition & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ workflow NFCORE_METHYLSEQ {
ch_or_val_bwamem_index,
params.aligner,
params.collecthsmetrics,
params.run_methurator,
params.use_mem2
)
ch_versions = ch_versions.mix(FASTA_INDEX_METHYLSEQ.out.versions)
Expand Down
10 changes: 10 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@
"git_sha": "41dfa3f7c0ffabb96a6a813fe321c6d1cc5b6e46",
"installed_by": ["fasta_index_bismark_bwameth", "fasta_index_methylseq"]
},
"methurator/gtestimator": {
"branch": "master",
"git_sha": "85a3650c949d1146cdb576f986640e84775b7743",
"installed_by": ["modules"]
},
"methurator/plot": {
"branch": "master",
"git_sha": "85a3650c949d1146cdb576f986640e84775b7743",
"installed_by": ["modules"]
},
"methyldackel/extract": {
"branch": "master",
"git_sha": "c8df5757c72362907a43de49a6b20bd4998907a0",
Expand Down
7 changes: 7 additions & 0 deletions modules/nf-core/methurator/gtestimator/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions modules/nf-core/methurator/gtestimator/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions modules/nf-core/methurator/gtestimator/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions modules/nf-core/methurator/gtestimator/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions modules/nf-core/methurator/gtestimator/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading