Repository navigation
New module: modkit/extractcalls - #11286
Conversation
5035e89 to
fafc527
Compare
SPPearce
left a comment
There was a problem hiding this comment.
This is named incorrectly, it is too nested in the subfolder.
So modkit/foo, but not modkit/foo/bar
|
So modkit/extractcalls here |
|
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. |
|
@SPPearce thanks — renamed to
Sibling PR #11285 ( |
SPPearce
left a comment
There was a problem hiding this comment.
Generally fine now, please just tidy up the snapshot generation.
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
743f31b to
559d50c
Compare
|
@SPPearce all four addressed, thanks. First a note that explains why the diff is bigger than the four comments: the
Both nf-tests pass locally under the singularity profile. One thing to flag: lint now warns |
|
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. |
|
Ok, can merge 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
…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
….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
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
….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
….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
|
Thanks @SPPearce. Both done:
The two review threads above are addressed and resolved. This one is green and mergeable whenever you are ready. |
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
PR checklist
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