Repository navigation
Implement QC-only report generation and filtering in reporter - #277
Merged
Merged
Conversation
karlnyr
reviewed
Nov 13, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
QC-only runs with the default report type still generate and email a typing report despite typing being skipped, so the default branch needs a QC-only guard and test coverage.
1 open issue
What changed in this PR
Extends the QC-only workflow from #271 and #274 into reporting, filtering outputs for analyses that were skipped.
Changes:
- Passes the QC-only flag from
finishtoReporter. - Adds JSON and deliverables generation for QC-only QC reports, excluding typing and assembly outputs while retaining alignment metrics.
- Adds regression tests and documents QC-only finish outputs.
| File | Description |
|---|---|
| tests/utils/test_reporter.py | Tests output filtering and QC-only report generation. |
| tests/test_cli.py | Tests propagation of the QC-only flag to Reporter. |
| README.md | Documents QC-only finish outputs. |
| microSALT/utils/reporter.py | Adds QC-only output filtering and report generation. |
| microSALT/cli.py | Passes --track qc through as the reporter’s QC-only flag. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR needs #271 and #274 to be in place.
If a QC only analysis runs, microsalt will produce only QC, deliverables and JSON files.
Changed
cli.py: finish now tells the Reporter it's a QC-only run when--track qcis passed.reporter.py:--report qcwithout--track qcstill produces only the QC HTML.blast_pubmlst,quast_assemblyandblast_resfinder_resistence; keeps thePicardandsamtoolsmetrics.Primary function of PR
Testing
bash /home/proj/production/servers/resources/hasta.scilifelab.se/install-microsalt-stage.sh BRANCHNAMEusconda activate S_microSALTmicroSALT analyse --input /path/to/fastq/ SAMPLEINFO_FILETest results
These are the results of the tests, and necessary conclusions, that prove the stability of the PR.
Sign-offs