Skip to content

Fix module and data-key selection in get_module_data - #3739

Merged
ewels merged 2 commits into
MultiQC:mainfrom
rpinho:fix-module-data-selectors
Nov 26, 2026
Merged

ewels merged 2 commits into
MultiQC:mainfrom
rpinho:fix-module-data-selectors

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
  • This comment contains a description of changes (with reason)

Calling get_module_data(module="Samtools") returns no data, and querying a module by a configured display name can raise KeyError. The key argument also returns datasets that were not requested when a module writes more than one data file. Resolve the module once, return its data by anchor, and apply the key filter while retaining the existing keyed result structure. The tests parse Samtools flagstat and stats fixtures and check module names, configured names and anchors, key selection, sample selection and missing selectors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@ewels ewels added the bug: core Bug in the main MultiQC code label Nov 26, 2026

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

Nice fix, thanks!

@ewels
ewels enabled auto-merge (squash) November 26, 2026 21:43
@ewels
ewels merged commit b031147 into MultiQC:main Nov 26, 2026
5 checks passed
@rpinho

rpinho commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I'd be glad to help in any way I can. What would be helpful for you? What's a hard problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: core Bug in the main MultiQC code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants