Skip to content

Add max_pango_lineages retro group filter. - #622

Merged
jeromekelleher merged 1 commit into
mainfrom
add-max-lineages
Jul 21, 2026
Merged

Add max_pango_lineages retro group filter.#622
jeromekelleher merged 1 commit into
mainfrom
add-max-lineages

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Reject retrospective groups spanning more than max_pango_lineages distinct pango lineages, defaulting to 10. A group is a set of samples sharing an HMM path, so one spanning many lineages suggests the grouping is spurious rather than a real cluster.

The check uses the existing SampleGroup.pango_count and runs before tree inference, so rejected groups skip that work. It defaults to np.inf in add_matching_results, which keeps it retro-only since the close phase passes no quality thresholds.

Also document min_different_dates in the example config, which was missing.

Reject retrospective groups spanning more than max_pango_lineages
distinct pango lineages, defaulting to 10. A group is a set of samples
sharing an HMM path, so one spanning many lineages suggests the grouping
is spurious rather than a real cluster.

The check uses the existing SampleGroup.pango_count and runs before tree
inference, so rejected groups skip that work. It defaults to np.inf in
add_matching_results, which keeps it retro-only since the close phase
passes no quality thresholds.

Also document min_different_dates in the example config, which was
missing.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.13%. Comparing base (e73e25d) to head (6b04662).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #622      +/-   ##
==========================================
+ Coverage   88.11%   88.13%   +0.01%     
==========================================
  Files          12       12              
  Lines        4149     4155       +6     
  Branches      592      594       +2     
==========================================
+ Hits         3656     3662       +6     
  Misses        363      363              
  Partials      130      130              
Flag Coverage Δ
python-tests 88.13% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeromekelleher
jeromekelleher merged commit 5254b99 into main Jul 21, 2026
9 checks passed
@jeromekelleher
jeromekelleher deleted the add-max-lineages branch July 21, 2026 10:06
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