Skip to content

Create mtx2h5ad module - #13427

Merged
delfiterradas merged 26 commits into
nf-core:masterfrom
delfiterradas:master
Nov 18, 2026
Merged

delfiterradas merged 26 commits into
nf-core:masterfrom
delfiterradas:master

Conversation

@delfiterradas

@delfiterradas delfiterradas commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

PR checklist

Closes nf-core/scrnaseq#601 - Migrate local mtx_to_h5ad module

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@atrigila

Copy link
Copy Markdown
Contributor

Linking a related issue that we should have a test case for in the module: nf-core/scrnaseq#448 (comment)

@github-actions github-actions Bot added size/xl and removed size/l labels Oct 21, 2026
@github-actions

Copy link
Copy Markdown

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@atrigila

Copy link
Copy Markdown
Contributor

We also have this one which is related to this module and a test case could be added: nf-core/scrnaseq#383

@github-actions github-actions Bot added size/l and removed size/xl labels Nov 12, 2026

@famosab famosab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments to get this finished :)

Comment thread modules/nf-core/custom/mtx2h5ad/main.nf Resolved
Comment thread modules/nf-core/custom/mtx2h5ad/main.nf Resolved
Comment thread modules/nf-core/custom/mtx2h5ad/main.nf Resolved
@atrigila

Copy link
Copy Markdown
Contributor

Please take into account, for this nf-core module, the modifications applied here as well: nf-core/scrnaseq#610

brovolia and others added 6 commits November 16, 2026 14:28
* new submodule for bullseye

* fixing linter

* introducing changes according to comments
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.
…cognised 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.
* 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>
…d 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
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 16, 2026
@github-actions

Copy link
Copy Markdown

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions github-actions Bot added size/l and removed size/xl labels Nov 16, 2026
@delfiterradas
delfiterradas marked this pull request as ready for review November 16, 2026 16:35
@delfiterradas
delfiterradas requested review from a team as code owners November 16, 2026 16:35

@fmalmeida fmalmeida 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.

LGTM

@delfiterradas
delfiterradas added this pull request to the merge queue Nov 18, 2026
Merged via the queue into nf-core:master with commit 7df7b96 Nov 18, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create CUSTOM_MTX2H5AD module in nf-core/modules

8 participants