Skip to content

Update mygene: topic versions, stub block, sanitizeOutput#11441

Open
HReed1 wants to merge 7 commits intonf-core:masterfrom
HReed1:stub-topics-mygene
Open

Update mygene: topic versions, stub block, sanitizeOutput#11441
HReed1 wants to merge 7 commits intonf-core:masterfrom
HReed1:stub-topics-mygene

Conversation

@HReed1
Copy link
Copy Markdown
Contributor

@HReed1 HReed1 commented Apr 30, 2026

PR checklist

  • 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, add --profile docker,wave tests.
  • Make sure your code lints (nf-core modules lint).
  • Ensure the test suite passes (nf-test test).

Description of changes

Migrates the mygene module to the nf-core v4.0.1 architecture:

  • topic: versions: Migrated to path "versions.yml", topic: versions emission. Note: mygene uses a Python template script, which prevents using the eval() tuple pattern (Nextflow blocks eval() for non-Bash interpreters). The Python template generates versions.yml natively, consistent with cellranger/count.
  • stub block: Added a deterministic stub: block that creates dummy output files and generates versions.yml via bash.
  • sanitizeOutput: Refactored all test assertions to use sanitizeOutput(process.out) per nf-test best practices.
  • meta.yml: Updated to include both output: versions_mygene and topics: versions sections.

Part of the v4.0.1 standardization effort tracked in #11323.

Part of #4570

tuple val(meta), path("*.gmt"), emit: gmt
tuple val(meta), path("*.tsv"), emit: tsv , optional: true
path "versions.yml" , emit: versions
path "versions.yml" , emit: versions_mygene, topic: versions
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.

You forgot this part

Comment thread modules/nf-core/mygene/meta.yml Outdated
Copy link
Copy Markdown
Member

@mribeirodantas mribeirodantas left a comment

Choose a reason for hiding this comment

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

mygene version is missing in teh snapshot file

HReed1 and others added 6 commits May 1, 2026 07:01
…te snapshots

- main.nf: rename emit: versions to emit: versions_mygene per nf-core convention
- meta.yml: rename output key versions: to versions_mygene: to match emit name
- tests/main.nf.test: update all assertions to process.out.versions_mygene[0]
- tests/main.nf.test.snap: regenerate all 5 snapshots with versions_mygene channel

Addresses review feedback from mribeirodantas on PR nf-core#11441.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants