Skip to content

Remove duplicate lines in sentieon/coveragemetrics - #12833

Merged
SPPearce merged 6 commits into
masterfrom
sentieon-coveragemetrics-remove-duplicate-line
Aug 28, 2026
Merged

Remove duplicate lines in sentieon/coveragemetrics#12833
SPPearce merged 6 commits into
masterfrom
sentieon-coveragemetrics-remove-duplicate-line

Conversation

@bagnacan

Copy link
Copy Markdown
Contributor

This PR removes duplicated lines from the stub block, and updates the test in order to remove empty lines in the produced test snapshot.

  • This comment contains a description of changes (with reason).
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda

@SPPearce SPPearce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you use sanitizeOutput instead please. That will removed the numbered lines and simplify the output somewhat.

Comment on lines +96 to +101
{ assert snapshot(process.out.per_locus).match() },
{ assert process.out.sample_summary == [] },
{ assert process.out.statistics == [] },
{ assert process.out.coverage_counts == [] },
{ assert process.out.coverage_proportions == [] },
{ assert process.out.interval_summary == [] }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
{ assert snapshot(process.out.per_locus).match() },
{ assert process.out.sample_summary == [] },
{ assert process.out.statistics == [] },
{ assert process.out.coverage_counts == [] },
{ assert process.out.coverage_proportions == [] },
{ assert process.out.interval_summary == [] }
{ assert snapshot(sanitizeOutput(process.out)).match() }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't know about the sanitizeOutput function. Thanks @SPPearce

@bagnacan
bagnacan requested a review from SPPearce August 27, 2026 17:44
@SPPearce
SPPearce added this pull request to the merge queue Aug 28, 2026
Merged via the queue into master with commit a19d1c0 Aug 28, 2026
65 checks passed
@SPPearce
SPPearce deleted the sentieon-coveragemetrics-remove-duplicate-line branch August 28, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants