Skip to content

Conversation

@happykhan
Copy link
Contributor

No description provided.

… docstring

- Add  to verify FastP threshold logic (Q30, read length),
  duplication, N-content, adapter detection, and species coverage handling.
- Add  to verify coverage estimation, expected genome-size
  parsing, GC content PASS/WARNING/OUTSIDE behavior, and multi-species warning text.
- Update  docstring in  to match implementation
  (explicit GC tolerance semantics and fields written).
- Minor lint fixes in tests (remove unused imports).
Add bactscout preflight command to run preflight checks and download/validate databases/tools.
Add --write-json option to collect CLI; emit {sample_id}_summary.json alongside CSV.
Implement optional JSON summary writing in thread.py (write_summary_file).
Add scripts/build_paper.sh wrapper and build-paper-safe Pixi task to validate paper.md before invoking JOSS Docker image.
Replace problematic Unicode ≥ in JOSS paper sources (math/entity forms) to avoid LaTeX font glyph errors.
Update docs:
index.md: Docker quickstart and expanded Key Features.
configuration.md: sync with bactscout_config.yml and add guidance on alternative Sylph DBs.
Make QC threshold logic consistent: use warn/fail keys (e.g. coverage_warn_threshold/coverage_fail_threshold, contamination_warn_threshold/contamination_fail_threshold) with legacy fallbacks; fix related logic/indentation.
Add tests for resource monitor (test_resource_monitor.py) covering psutil present/missing cases.
Minor wording and compatibility fixes to preserve test expectations.
…tibility shim, round resource memory metrics

- Apply breaking rename of coverage-related output fields:
  - coverage_estimate -> coverage_estimate_sylph
  - coverage_message -> coverage_estimate_sylph_message
  - coverage_alt_* -> coverage_estimate_qualibact_* (estimate/message/status)
- Remove one-release backwards-compatibility shim; outputs now contain canonical keys only.
- Round resource memory metrics before writing output: resource_memory_avg_mb and resource_memory_peak_mb are rounded to integers.
- Update header ordering and blank defaults to include new canonical keys.
- Update tests/docs referencing the renamed fields.

Migration notes: This is a breaking change; downstream consumers must update legacy field names to the new ones.
@happykhan happykhan linked an issue Nov 5, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 42.85714% with 84 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
bactscout/resource_monitor.py 1.81% 54 Missing ⚠️
bactscout/thread.py 68.29% 26 Missing ⚠️
bactscout/genome_download.py 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@happykhan happykhan merged commit 9f5f91b into main Nov 5, 2025
6 of 8 checks passed
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.

Test coverage threshold logic for output table PASS/FAIL

1 participant