Skip to content

Fix grouped sample values in get_general_stats_data - #3738

Merged
ewels merged 2 commits into
MultiQC:mainfrom
rpinho:fix-grouped-general-stats
Nov 26, 2026
Merged

ewels merged 2 commits into
MultiQC:mainfrom
rpinho:fix-grouped-general-stats

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

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

With table_sample_merge, get_general_stats_data() overwrites the group aggregate with its last member, and queries for member samples return no data. Two FastQC reports containing 266736 reads each return 266736 for the group instead of 533472. Index and filter statistics by each row's sample name so the aggregate and members retain their values. The test parses FastQC fixtures, checks read totals and GC percentages for the group and both members, and checks a sample outside the group and a missing sample.

🤖 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 added this to the v1.36 milestone 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.

Thanks!

@ewels
ewels enabled auto-merge (squash) November 26, 2026 19:30
@ewels
ewels merged commit 2bef8d2 into MultiQC:main Nov 26, 2026
6 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