Skip to content

New module: modkit/extractcalls - #11286

Merged
SPPearce merged 5 commits into
nf-core:masterfrom
sahuno:add-modkit-extract-calls
Sep 11, 2026
Merged

SPPearce merged 5 commits into
nf-core:masterfrom
sahuno:add-modkit-extract-calls

Conversation

@sahuno

@sahuno sahuno commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • Stub + real tests added.
  • New tool follows module conventions.
  • Versions broadcast via `topic: versions`.
  • Naming/parameter/I-O conventions followed.
  • Resource label set (`process_high`).
  • BioConda + BioContainers used.
  • `nf-core modules lint modkit/extract/calls` — 49/0/0.
  • `nf-test test --profile conda` — 2/2 passed.

Summary

Adds a new nf-core module wrapping `modkit extract calls`, which produces a per-read per-position table of base-modification calls (pass / fail / filtered, with the called base) using the same thresholding algorithm as `modkit pileup`.

Complementary to `modkit/extract/full`: `extract calls` emits the thresholded categorical decision per site per read, while `extract full` emits the underlying probabilities.

The module auto-detects `--bgzf` in `ext.args` and adjusts the output filename suffix accordingly.

Why

`modkit extract calls` is the go-to tool for per-read allele-specific methylation, methylation-aware phasing validation, and read-level QC where you want the same thresholded labels as the pileup output but at read level rather than site level.

Test data

Uses the existing `test.sorted.phased.bam` from nf-core/test-datasets (modules branch). No new test data required.

🤖 Generated with Claude Code

@sahuno
sahuno force-pushed the add-modkit-extract-calls branch from 5035e89 to fafc527 Compare April 24, 2026 02:44
@SPPearce
SPPearce added this pull request to the merge queue Jun 6, 2026
@SPPearce
SPPearce removed this pull request from the merge queue due to a manual request Jun 6, 2026

@SPPearce SPPearce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is named incorrectly, it is too nested in the subfolder.
So modkit/foo, but not modkit/foo/bar

@SPPearce

SPPearce commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

So modkit/extractcalls here

@atrigila atrigila added the awaiting-changes will be closed after 30 days label Jul 2, 2026
@github-actions

Copy link
Copy Markdown

This PR has been tagged as awaiting-changes or awaiting-feedback by an @nf-core/modules contributor. Remove stale label or add a comment if it is still useful.

@github-actions github-actions Bot added the stale Stale label Aug 16, 2026
@sahuno sahuno changed the title New module: modkit/extract/calls New module: modkit/extractcalls Sep 6, 2026
@sahuno sahuno mentioned this pull request Sep 6, 2026
9 tasks done
@sahuno

sahuno commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

@SPPearce thanks — renamed to modkit/extractcalls.

modkit/extract/calls was three levels deep, which fails the
main_nf_module_granularity lint check (<tool> or <tool>/<subtool> only).
Renamed the directory, the process name (MODKIT_EXTRACTCALLS), the meta.yml
name: field and the nf-test tags to match.

Sibling PR #11285 (modkit/extractfull) has had the same rename applied.

@sahuno sahuno removed the stale Stale label Sep 6, 2026

@SPPearce SPPearce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally fine now, please just tidy up the snapshot generation.

sahuno and others added 3 commits September 7, 2026 05:55
Add new nf-core module wrapping `modkit extract calls`, which emits a
per-read per-position table of base modification calls using the same
pass/fail thresholding as `modkit pileup`. Complementary to
`modkit/extract/full` (raw probabilities): this module emits the
thresholded categorical decisions. Useful for per-read downstream
analysis such as allele-specific methylation and methylation-aware
phasing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nf-core module names must be <tool> or <tool>/<subtool> (two levels max);
`modkit/extract/calls` failed the `main_nf_module_granularity` lint check.

Renamed directory, process name (MODKIT_EXTRACTCALLS), meta.yml name and
nf-test tags accordingly, as requested by @SPPearce.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP
… empty config

- Snapshot via sanitizeOutput(process.out) with `assert process.success`
  outside assertAll, so a tool failure fails fast instead of reporting
  snapshot mismatches against empty output.
- Drop the redundant exists/size asserts in the non-stub test; the snapshot
  already covers the tsv, and an empty file is caught by the md5 lint check.
- meta.yml: the index may be a .crai — modkit extract calls reads CRAM
  (verified against modkit 0.6.1 on a CRAM built from the test modBAM).
- Remove tests/nextflow.config (it only set an empty ext.args) and its
  config directive. Non-stub tsv md5 is unchanged: 0ce2e5a6...

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHRC2SxQjmF3X1z82LopQb
@sahuno
sahuno force-pushed the add-modkit-extract-calls branch from 743f31b to 559d50c Compare September 7, 2026 10:03
@sahuno

sahuno commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

@SPPearce all four addressed, thanks.

First a note that explains why the diff is bigger than the four comments: the
branch was ~980 commits behind master, so sanitizeOutput was not available on
it at all — it comes from nft-utils 1.x and the branch's nf-test.config
still pinned nft-utils@0.0.9. Rebased onto current master before making the
changes.

  • Snapshot generation. Both tests now use your form: assert process.success
    outside assertAll, then a single snapshot(sanitizeOutput(process.out)).match().
    Snapshot regenerated — it drops the duplicated numbered keys and is about half
    the size.
  • Redundant asserts. Removed from the non-stub test.
  • .crai. You were right, and I checked rather than assumed: modkit extract calls reads CRAM. I built one from test.sorted.phased.bam against
    genome.fasta, indexed it, and got the same 27,813 rows and exit 0 as the BAM
    input. The index input is now pattern: "*.{bai,csi,crai}", and the bam
    description mentions that a CRAM input also needs fasta supplied.
  • tests/nextflow.config. Deleted, along with the config "./nextflow.config"
    directive that loaded it — it only set ext.args = ''. The non-stub tsv md5 is
    unchanged (0ce2e5a6…), which confirms it was a no-op rather than something the
    test quietly depended on.

Both nf-tests pass locally under the singularity profile.

One thing to flag: lint now warns bioconda_latest: ont-modkit 0.6.1 -> 0.6.4.
I have left it at 0.6.1 to stay consistent with the merged modkit/pileup and my
three sibling modkit PRs (#11283, #11284, #11285). Happy to bump all of them
together in a follow-up if you would rather they move to 0.6.4.

@SPPearce

SPPearce commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

At some point a bump to the newer version would be good, but they are better to be all on the same version as you say. Happy for a bump to occur within one of these new module PRs.

@SPPearce

SPPearce commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Ok, can merge this.
If you want, you can incorporate the version bump here.
Please update the other two modules with the same sanitizeOutput changes too (if you haven't already done this)

Clears the `bioconda_latest` lint warning. Container tag
`0.6.4--h7f49ad2_0` verified on both the Galaxy depot and quay.io.

Snapshot regenerated: only the reported version string changes. The
non-stub tsv md5 is identical to 0.6.1 (0ce2e5a6bf0889aaf8cbd682e2b17acb),
so `modkit extract calls` output is byte-stable across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
sahuno added a commit to sahuno/modules that referenced this pull request Sep 9, 2026
…o 0.6.4

Ports the review changes from nf-core#11286 to this module.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output. Requires nft-utils 1.x, which is
  why master is merged in first.
- Drop the redundant exists/size asserts on the non-stub test; the snapshot
  already covers the tsv and an empty file is caught by the md5 lint check.
- Remove tests/nextflow.config (it only set an empty ext.args) and the
  `config` directive that loaded it.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

Non-stub tsv md5 is unchanged at 8300986c98d1b67973439ced4e7f233c across both
the config removal and the version bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
sahuno added a commit to sahuno/modules that referenced this pull request Sep 9, 2026
….6.4

Ports the review changes from nf-core#11286 to this module.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output. Requires nft-utils 1.x, which is
  why master is merged in first.
- tests/nextflow.config is kept here: unlike extractcalls/extractfull it sets
  a real `ext.args = '-c C'`, not an empty string.
- The raw_accuracy / filtered_accuracy / filter_threshold asserts are kept —
  they check report content the snapshot's md5 does not describe.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

Report md5 is unchanged at 8503eee0403386ba18c24b0d584c7ee6 across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
sahuno added a commit to sahuno/modules that referenced this pull request Sep 9, 2026
Ports the review changes from nf-core#11286 to this module.

- `assert process.success` moved out of `assertAll` and to the top of each
  `then` block — ahead of the `path(...).readLines()` calls, which would
  otherwise throw on a failed run before any assertion reported.
- The two stub tests snapshot `sanitizeOutput(process.out)`, which drops the
  duplicated numbered output keys. Requires nft-utils 1.x, which is why
  master is merged in first.
- The two non-stub tests still snapshot only the versions topic: entropy's
  floating-point columns are not byte-deterministic across CPU counts, so
  those outputs stay asserted on structure rather than md5.
- tests/nextflow.config is kept: it sets a real `ext.args = '--cpg --header'`.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

The header and column-count assertions pass unchanged at 0.6.4, so the
entropy BED/bedgraph layout is stable across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
sahuno added a commit to sahuno/modules that referenced this pull request Sep 9, 2026
….6.4

Ports the review changes from nf-core#11286 to this module, keeping all four open
modkit module PRs on one modkit version.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output.
- tests/nextflow.config is kept: it carries a real `ext.args2 = '-p bed'` for
  HTSLIB_BGZIPTABIX, not an empty ext.args.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

All three output md5s are unchanged across the bump
(bc5b3b2e…, fdabfb3e…, and the empty-file stub hash).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
sahuno added a commit to sahuno/modules that referenced this pull request Sep 9, 2026
….6.4

Ports the review changes from nf-core#11286 to this module, keeping all four open
modkit module PRs on one modkit version.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output.
- tests/nextflow.config is kept: it carries a real `ext.args2 = '-p bed'` for
  HTSLIB_BGZIPTABIX, not an empty ext.args.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

All three output md5s are unchanged across the bump
(bc5b3b2e…, fdabfb3e…, and the empty-file stub hash).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr
@sahuno

sahuno commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @SPPearce. Both done:

  • Version bump is in this PR — ff5d631 bumps ont-modkit 0.6.1 → 0.6.4 in environment.yml, and the snapshots were regenerated against it.
  • The sibling modules already carry the same sanitizeOutput change — New module: modkit/extractfull #11285 (modkit/extractfull), New module: modkit/validate #11284 (modkit/validate), New module: modkit/entropy #11283 (modkit/entropy) and Add module: modkit/localize #11120 (modkit/localize) were each rebased onto master, switched to assert process.success + snapshot(sanitizeOutput(process.out)), had their snapshots regenerated and their containers bumped to 0.6.4. (modkit/entropy keeps its structural assertions on the non-stub tests — its float columns are not byte-deterministic across CPU counts — but the stubs use sanitizeOutput.)

The two review threads above are addressed and resolved. This one is green and mergeable whenever you are ready.

@sahuno sahuno mentioned this pull request Sep 11, 2026
3 tasks done
@SPPearce
SPPearce added this pull request to the merge queue Sep 11, 2026
Merged via the queue into nf-core:master with commit 6cd5243 Sep 11, 2026
25 checks passed
ramprasadn pushed a commit to ramprasadn/modules that referenced this pull request Sep 11, 2026
* feat: add modkit/extract/full module

Add new nf-core module wrapping `modkit extract full`, which transforms
the MM/ML tags in a modBAM into a tab-separated per-read-per-position
probability table. Output can be BGZF-compressed via `--bgzf` in
`ext.args`. Useful for downstream custom filtering, plotting, and ML
training on read-level methylation probabilities.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(modkit/extractfull): rename from modkit/extract/full

nf-core module names must be <tool> or <tool>/<subtool> (two levels max);
`modkit/extract/full` failed the `main_nf_module_granularity` lint check.

Renamed directory, process name (MODKIT_EXTRACTFULL), meta.yml name and
nf-test tags accordingly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/extractfull): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output. Requires nft-utils 1.x, which is
  why master is merged in first.
- Drop the redundant exists/size asserts on the non-stub test; the snapshot
  already covers the tsv and an empty file is caught by the md5 lint check.
- Remove tests/nextflow.config (it only set an empty ext.args) and the
  `config` directive that loaded it.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

Non-stub tsv md5 is unchanged at 8300986c98d1b67973439ced4e7f233c across both
the config removal and the version bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
Schmytzi pushed a commit to Schmytzi/nf-core-modules that referenced this pull request Sep 22, 2026
* feat: add modkit/extract/calls module

Add new nf-core module wrapping `modkit extract calls`, which emits a
per-read per-position table of base modification calls using the same
pass/fail thresholding as `modkit pileup`. Complementary to
`modkit/extract/full` (raw probabilities): this module emits the
thresholded categorical decisions. Useful for per-read downstream
analysis such as allele-specific methylation and methylation-aware
phasing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(modkit/extractcalls): rename from modkit/extract/calls

nf-core module names must be <tool> or <tool>/<subtool> (two levels max);
`modkit/extract/calls` failed the `main_nf_module_granularity` lint check.

Renamed directory, process name (MODKIT_EXTRACTCALLS), meta.yml name and
nf-test tags accordingly, as requested by @SPPearce.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/extractcalls): address review — sanitizeOutput, crai, drop empty config

- Snapshot via sanitizeOutput(process.out) with `assert process.success`
  outside assertAll, so a tool failure fails fast instead of reporting
  snapshot mismatches against empty output.
- Drop the redundant exists/size asserts in the non-stub test; the snapshot
  already covers the tsv, and an empty file is caught by the md5 lint check.
- meta.yml: the index may be a .crai — modkit extract calls reads CRAM
  (verified against modkit 0.6.1 on a CRAM built from the test modBAM).
- Remove tests/nextflow.config (it only set an empty ext.args) and its
  config directive. Non-stub tsv md5 is unchanged: 0ce2e5a6...

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHRC2SxQjmF3X1z82LopQb

* feat(modkit/extractcalls): bump ont-modkit 0.6.1 -> 0.6.4

Clears the `bioconda_latest` lint warning. Container tag
`0.6.4--h7f49ad2_0` verified on both the Galaxy depot and quay.io.

Snapshot regenerated: only the reported version string changes. The
non-stub tsv md5 is identical to 0.6.1 (0ce2e5a6bf0889aaf8cbd682e2b17acb),
so `modkit extract calls` output is byte-stable across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Simon Pearce <24893913+SPPearce@users.noreply.github.com>
Schmytzi pushed a commit to Schmytzi/nf-core-modules that referenced this pull request Sep 22, 2026
* feat: add modkit/extract/full module

Add new nf-core module wrapping `modkit extract full`, which transforms
the MM/ML tags in a modBAM into a tab-separated per-read-per-position
probability table. Output can be BGZF-compressed via `--bgzf` in
`ext.args`. Useful for downstream custom filtering, plotting, and ML
training on read-level methylation probabilities.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(modkit/extractfull): rename from modkit/extract/full

nf-core module names must be <tool> or <tool>/<subtool> (two levels max);
`modkit/extract/full` failed the `main_nf_module_granularity` lint check.

Renamed directory, process name (MODKIT_EXTRACTFULL), meta.yml name and
nf-test tags accordingly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/extractfull): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output. Requires nft-utils 1.x, which is
  why master is merged in first.
- Drop the redundant exists/size asserts on the non-stub test; the snapshot
  already covers the tsv and an empty file is caught by the md5 lint check.
- Remove tests/nextflow.config (it only set an empty ext.args) and the
  `config` directive that loaded it.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

Non-stub tsv md5 is unchanged at 8300986c98d1b67973439ced4e7f233c across both
the config removal and the version bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
awgymer pushed a commit to awgymer/nf-core-modules that referenced this pull request Oct 20, 2026
* feat: add modkit/validate module

Add new nf-core module wrapping `modkit validate`, which benchmarks
modified-base calls in one or more mod-BAMs against paired ground-truth
BED files and emits a tab-separated summary of correct / incorrect /
filtered calls per class.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(modkit/validate): actually validate against the MODKIT_PILEUP output

The `setup` block ran MODKIT_PILEUP but its output was never consumed — the
only test was a stub fed a placeholder BED, so nothing exercised the real
CLI path (@SPPearce).

Added a non-stub test that chains MODKIT_PILEUP -> GUNZIP -> MODKIT_VALIDATE
and feeds the resulting bedMethyl in as the ground-truth BED:

- `modkit validate` reads only the first six columns of the truth BED and
  ignores the remaining bedMethyl columns, so no `cut` step is needed.
- `MODKIT_PILEUP` emits bgzipped output and `modkit validate` cannot read a
  compressed BED ("zero valid positions parsed from BED file"), hence GUNZIP.

The setup block now lives inside the real test so the stub test no longer
pays for a pileup run. Output is byte-deterministic (verified over repeated
runs), so the report TSV is snapshotted, with additional assertions on the
metric keys.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/validate): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output. Requires nft-utils 1.x, which is
  why master is merged in first.
- tests/nextflow.config is kept here: unlike extractcalls/extractfull it sets
  a real `ext.args = '-c C'`, not an empty string.
- The raw_accuracy / filtered_accuracy / filter_threshold asserts are kept —
  they check report content the snapshot's md5 does not describe.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

Report md5 is unchanged at 8503eee0403386ba18c24b0d584c7ee6 across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
famosab pushed a commit to adamjohnwright/modules that referenced this pull request Nov 5, 2026
* feat: add modkit/entropy module

Add new nf-core module wrapping `modkit entropy`, which computes
methylation entropy over genomic windows from one or more mod-BAMs.
Supports an optional BED of regions for per-region descriptive
statistics; emits a genome-wide BED otherwise.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(modkit/entropy): regions-aware stub, regions test, content assertions

Addresses @itrujnara's review:

- Stub now simulates the `--regions` layout. `modkit entropy --regions` writes
  a directory containing `<prefix>_regions.bed` and `<prefix>_windows.bedgraph`
  instead of the single genome-wide BED, so the stub branches on `regions`.
- Added a real and a stub test that exercise the `regions` input, asserting the
  exact output filenames and that `bed` is not emitted when `regions` is set.
- Tests now check file contents. `--header` is passed via `ext.args` so the
  header line and row structure can be asserted for all three output flavours.

Also removed the `tsv` output channel: `modkit entropy --regions` emits only
`_regions.bed` and `_windows.bedgraph` (verified against modkit 0.6.1), so the
emit never fired. The `meta.yml` description claiming a `.tsv` output was
corrected to match.

The entropy column is not byte-deterministic across thread counts, so the
non-stub tests continue to snapshot only the versions topic.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* test(modkit/entropy): snapshot versions under a named key

`nf-core lint` (tools@dev) checks that the string "versions" appears in each
snapshot entry via `test_snap_versions`. The two non-stub tests snapshotted
`process.out.versions_modkit` as a bare list, so the serialised content held
only the values ("MODKIT_ENTROPY", "modkit", "0.6.1") and the check failed.

Snapshotting `[versions: process.out.versions_modkit]` keeps the same content
and satisfies the check. Verified with nf-core/tools 4.1.0: 64 passed, 0 failed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/entropy): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module.

- `assert process.success` moved out of `assertAll` and to the top of each
  `then` block — ahead of the `path(...).readLines()` calls, which would
  otherwise throw on a failed run before any assertion reported.
- The two stub tests snapshot `sanitizeOutput(process.out)`, which drops the
  duplicated numbered output keys. Requires nft-utils 1.x, which is why
  master is merged in first.
- The two non-stub tests still snapshot only the versions topic: entropy's
  floating-point columns are not byte-deterministic across CPU counts, so
  those outputs stay asserted on structure rather than md5.
- tests/nextflow.config is kept: it sets a real `ext.args = '--cpg --header'`.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

The header and column-count assertions pass unchanged at 0.6.4, so the
entropy BED/bedgraph layout is stable across the bump.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
maxulysse pushed a commit to maxulysse/nf-core_modules that referenced this pull request Nov 12, 2026
* feat: add modkit/localize module

Adds `modkit localize`, which summarises methylation around a set of regions.

This PR previously carried three modules — `modkit/localize`,
`modkit/localize/plot` and the whole of `dorado/basecaller` — which is why
@famosab asked for it to be split. It now contains `modkit/localize` only:

- `dorado/basecaller` is dropped entirely; it is already in nf-core#11122, and the
  copy here was the older revision that still committed pod5 files into the
  repo.
- `modkit/localize/plot` moves to its own PR, renamed `modkit/localizeplot`
  since nf-core module paths are at most two levels deep.

Rebased onto current master, which required two fixes:

- `TABIX_TABIX` is now deprecated (its script is `assert false`, pointing at
  `HTSLIB/BGZIPTABIX`), and its input signature had grown from two elements to
  four. The test setup now uses `HTSLIB_BGZIPTABIX` to build the tabix index
  from the `MODKIT_PILEUP` output.
- `main.nf.test` never loaded `tests/nextflow.config`, so `params.module_args`
  never reached `ext.args` and the `--min-coverage 1 --window 1000` settings the
  test relies on were silently ignored. Added the `config` directive.

Also aligned the container declaration with the merged modkit modules
(`workflow.containerEngine in ['singularity', 'apptainer']` and the `quay.io/`
prefix required by lint).

nf-core/tools 4.1.0 lint: 59 passed, 0 warnings, 0 failed.
Both nf-tests pass under the singularity profile.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/localize): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module, keeping all four open
modkit module PRs on one modkit version.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output.
- tests/nextflow.config is kept: it carries a real `ext.args2 = '-p bed'` for
  HTSLIB_BGZIPTABIX, not an empty ext.args.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

All three output md5s are unchanged across the bump
(bc5b3b2e…, fdabfb3e…, and the empty-file stub hash).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

* fix(modkit/localize): address review - format, ontologies, wire log output [skip ci]

WIP: snapshot not yet regenerated.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(modkit/localize): regenerate snapshot for the log output

Both tests pass twice with --profile=+singularity; nf-core modules lint
(4.2.2) and nextflow lint are clean.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* modkit/localize: switch to Seqera Containers and add conda lock files

Containers and lock files generated with 'nf-core modules containers create'
(same ont-modkit 0.6.4 build as the other modkit modules). Adds the bioconda
channel prefix in environment.yml and the licence header. Refs nf-core#13143.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
delfiterradas pushed a commit to delfiterradas/modules that referenced this pull request Nov 16, 2026
* feat: add modkit/localize module

Adds `modkit localize`, which summarises methylation around a set of regions.

This PR previously carried three modules — `modkit/localize`,
`modkit/localize/plot` and the whole of `dorado/basecaller` — which is why
@famosab asked for it to be split. It now contains `modkit/localize` only:

- `dorado/basecaller` is dropped entirely; it is already in nf-core#11122, and the
  copy here was the older revision that still committed pod5 files into the
  repo.
- `modkit/localize/plot` moves to its own PR, renamed `modkit/localizeplot`
  since nf-core module paths are at most two levels deep.

Rebased onto current master, which required two fixes:

- `TABIX_TABIX` is now deprecated (its script is `assert false`, pointing at
  `HTSLIB/BGZIPTABIX`), and its input signature had grown from two elements to
  four. The test setup now uses `HTSLIB_BGZIPTABIX` to build the tabix index
  from the `MODKIT_PILEUP` output.
- `main.nf.test` never loaded `tests/nextflow.config`, so `params.module_args`
  never reached `ext.args` and the `--min-coverage 1 --window 1000` settings the
  test relies on were silently ignored. Added the `config` directive.

Also aligned the container declaration with the merged modkit modules
(`workflow.containerEngine in ['singularity', 'apptainer']` and the `quay.io/`
prefix required by lint).

nf-core/tools 4.1.0 lint: 59 passed, 0 warnings, 0 failed.
Both nf-tests pass under the singularity profile.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/localize): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module, keeping all four open
modkit module PRs on one modkit version.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output.
- tests/nextflow.config is kept: it carries a real `ext.args2 = '-p bed'` for
  HTSLIB_BGZIPTABIX, not an empty ext.args.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

All three output md5s are unchanged across the bump
(bc5b3b2e…, fdabfb3e…, and the empty-file stub hash).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

* fix(modkit/localize): address review - format, ontologies, wire log output [skip ci]

WIP: snapshot not yet regenerated.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(modkit/localize): regenerate snapshot for the log output

Both tests pass twice with --profile=+singularity; nf-core modules lint
(4.2.2) and nextflow lint are clean.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* modkit/localize: switch to Seqera Containers and add conda lock files

Containers and lock files generated with 'nf-core modules containers create'
(same ont-modkit 0.6.4 build as the other modkit modules). Adds the bioconda
channel prefix in environment.yml and the licence header. Refs nf-core#13143.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
maxulysse pushed a commit to maxulysse/nf-core_modules that referenced this pull request Nov 18, 2026
* Create mtx2h5ad module

* Fix linting errors

* Update snapshots

* Pin python version and add cellranger test

* Create conda-lock file

* Add missing tags

* Minor format change

* Update conda-lock

* new submodule for bullseye (nf-core#13647)

* new submodule for bullseye

* fixing linter

* introducing changes according to comments

* parabricks/dbsnp: output bgzipped VCF and tabix index (nf-core#13706)

Write --out-vcf as ${prefix}.vcf.gz so pbrun emits a BGZF VCF plus its
.tbi index. The vcf emit is now *.vcf.gz (breaking) and a new tbi emit
is added. Update meta.yml, stub, tests and snapshots.

* BUG FIX: removed --ref_index flag in savana/cna. This flag is an unrecognised command and results in the module failing. (nf-core#13704)

* Removed --ref_index flag for savana/cna to prevent unknown flag error. Added bai index edam term to meta.

* fixed meta because prek complained.

* Add module: modkit/localize (nf-core#11120)

* feat: add modkit/localize module

Adds `modkit localize`, which summarises methylation around a set of regions.

This PR previously carried three modules — `modkit/localize`,
`modkit/localize/plot` and the whole of `dorado/basecaller` — which is why
@famosab asked for it to be split. It now contains `modkit/localize` only:

- `dorado/basecaller` is dropped entirely; it is already in nf-core#11122, and the
  copy here was the older revision that still committed pod5 files into the
  repo.
- `modkit/localize/plot` moves to its own PR, renamed `modkit/localizeplot`
  since nf-core module paths are at most two levels deep.

Rebased onto current master, which required two fixes:

- `TABIX_TABIX` is now deprecated (its script is `assert false`, pointing at
  `HTSLIB/BGZIPTABIX`), and its input signature had grown from two elements to
  four. The test setup now uses `HTSLIB_BGZIPTABIX` to build the tabix index
  from the `MODKIT_PILEUP` output.
- `main.nf.test` never loaded `tests/nextflow.config`, so `params.module_args`
  never reached `ext.args` and the `--min-coverage 1 --window 1000` settings the
  test relies on were silently ignored. Added the `config` directive.

Also aligned the container declaration with the merged modkit modules
(`workflow.containerEngine in ['singularity', 'apptainer']` and the `quay.io/`
prefix required by lint).

nf-core/tools 4.1.0 lint: 59 passed, 0 warnings, 0 failed.
Both nf-tests pass under the singularity profile.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E7RSvpouxbMBdimYSwJ5ZP

* fix(modkit/localize): sanitizeOutput snapshots + bump ont-modkit to 0.6.4

Ports the review changes from nf-core#11286 to this module, keeping all four open
modkit module PRs on one modkit version.

- Snapshot via `sanitizeOutput(process.out)` with `assert process.success`
  outside `assertAll`, so a tool failure fails fast rather than reporting a
  snapshot mismatch against empty output.
- tests/nextflow.config is kept: it carries a real `ext.args2 = '-p bed'` for
  HTSLIB_BGZIPTABIX, not an empty ext.args.
- Bump ont-modkit 0.6.1 -> 0.6.4 (clears the `bioconda_latest` lint warning);
  container tag `0.6.4--h7f49ad2_0` verified on the Galaxy depot and quay.io.

All three output md5s are unchanged across the bump
(bc5b3b2e…, fdabfb3e…, and the empty-file stub hash).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JAsT7dzCcLSicJxFRWJozr

* fix(modkit/localize): address review - format, ontologies, wire log output [skip ci]

WIP: snapshot not yet regenerated.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(modkit/localize): regenerate snapshot for the log output

Both tests pass twice with --profile=+singularity; nf-core modules lint
(4.2.2) and nextflow lint are clean.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* modkit/localize: switch to Seqera Containers and add conda lock files

Containers and lock files generated with 'nf-core modules containers create'
(same ont-modkit 0.6.4 build as the other modkit modules). Adds the bioconda
channel prefix in environment.yml and the licence header. Refs nf-core#13143.

Generated by Claude Fable 5.2

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

* parabricks/haplotypecaller: add out_ext input to emit bgzipped VCF and tbi (nf-core#13707)

* parabricks/haplotypecaller: add out_ext input to emit bgzipped VCF and tbi

With out_ext 'vcf.gz', pbrun writes a bgzipped VCF and its tabix index directly
(new vcf_gz and vcf_tbi outputs). With --gvcf the new gvcf_tbi output exposes the
index pbrun already writes. out_ext 'vcf' keeps the plain VCF output.

* parabricks/haplotypecaller: use ${prefix} in all output patterns

* parabricks/haplotypecaller: drop redundant comment

* parabricks/haplotypecaller: select gVCF output with out_ext 'g.vcf.gz'

out_ext now decides the output file alone; the module adds --gvcf itself and
rejects --gvcf in ext.args, so the two can no longer disagree.

* parabricks/haplotypecaller: only reject a literal --gvcf in ext.args, test it

args.contains('--gvcf') also matched valid options such as --gvcf-gq-bands.

* parabricks/haplotypecaller: validate out_ext and --gvcf in stub too, list out_ext values in meta.yml

* parabricks/haplotypecaller: snapshot tests with sanitizeOutput

* Implement reviewer's suggestions and add test with starsolo input

* Fix linting and update container

* Fix linting and update snpashots

* Skip conda test for mtx2h5ad module

* Add hdf5plugin import to mtx2h5ad.py

* Skip linting for hdf5plugin import

* Fix linting

---------

Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
Co-authored-by: Olga Brovkina <40294728+brovolia@users.noreply.github.com>
Co-authored-by: Friederike Hanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
Co-authored-by: Dylan House <d.housexyz@proton.me>
Co-authored-by: Samuel Terkper Ahuno <ekwame001@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-changes will be closed after 30 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants