Skip to content

Don't run a top_modules-only module a second time unfiltered - #3736

Merged
ewels merged 1 commit into
MultiQC:mainfrom
rpinho:fix-top-modules-rerun
Nov 26, 2026
Merged

ewels merged 1 commit into
MultiQC:mainfrom
rpinho:fix-top-modules-rerun

Conversation

@rpinho

@rpinho rpinho commented Nov 16, 2026

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

There's a bug in _module_list_to_search: when it adds the modules that aren't in module_order, it compares each module ID with the top_modules entries, but those entries are dicts. The check never matches, so a module configured only in top_modules is also scheduled again with no overrides.

With module_order: [cutadapt] and one filtered Trimmomatic entry in top_modules, MultiQC runs trimmomatic_raw on the one selected log and then an unconfigured Trimmomatic run on all three logs, so the report includes the logs the filter was meant to leave out. Two filtered entries give a third run.

This compares against the module IDs of the top_modules entries.

Test: test_top_modules_do_not_add_unfiltered_run in tests/test_modules_run.py fails on main and passes here. Full suite: 901 passed, 4 skipped; prek run --all-files, mypy and code_checks.py pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@rpinho

rpinho commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Let me know if you have any thoughts on this one.

@ewels ewels added this to the v1.36 milestone Nov 25, 2026
@ewels ewels added the bug: core Bug in the main MultiQC code label Nov 25, 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.

Great spot, thank you!

@ewels
ewels merged commit b74da5a into MultiQC:main Nov 26, 2026
8 checks passed
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