Skip to content

Conversation

edmundmiller
Copy link
Contributor

Fixes flagstat stub to generate realistic output instead of empty files.

This resolves parsing failures in stub workflows when processes extract mapped read counts from flagstat output for scale factor calculations.

Related to nf-core/chipseq#470 where this issue was first encountered during bedtools genomecov refactoring.

@edmundmiller edmundmiller self-assigned this Sep 15, 2025
- Replace empty touch command with proper flagstat format in stub
- Include realistic read counts and mapping statistics
- Ensure stub output matches expected flagstat format for parsing
- Critical for pipelines that parse flagstat files for scale factors
- Enables proper testing of downstream processes in stub workflows

The previous stub created empty files that caused parsing failures
when processes attempted to extract mapped read counts from flagstat
output. This change provides realistic flagstat content that matches
the format of actual samtools flagstat output.
@edmundmiller edmundmiller force-pushed the fix/samtools-flagstat-stub-output branch from 34785f4 to e396813 Compare September 15, 2025 17:02
Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

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

Thanks! I'll give it the green tick so you can merge once the tests pass

- Regenerate snapshots to match current samtools version (1.22.1)
- Fix versions.yml checksum mismatch
- Ensure tests pass with updated container versions
- Update subworkflow snapshots to match realistic flagstat content
- Fix stub test failures caused by empty file → realistic content change
- All flagstat checksums updated from d41d8cd98f00b204e9800998ecf8427e to 67394650dbae96d1a4fcc70484822159
- Ensures consistency between module and subworkflow test expectations
- Update versions.yml checksums to match CI Docker environment
- Use bdc0bfb2b0542580e7cd65e80d8570bc instead of 108a155f2d4a99f50bf3176904208d27
- Keep realistic flagstat content checksums (67394650dbae96d1a4fcc70484822159 for stub)
- Ensures tests pass in both local and CI environments
- Regenerate snapshots using Docker containers to match CI environment
- All 6 subworkflow tests pass with updated version checksums
- Ensures consistency between local and CI test environments
@edmundmiller edmundmiller added this pull request to the merge queue Sep 15, 2025
Merged via the queue into master with commit e334e12 Sep 15, 2025
59 checks passed
@edmundmiller edmundmiller deleted the fix/samtools-flagstat-stub-output branch September 15, 2025 20:43
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