Skip to content

Use validation v1.0.5 to filter ASR annotations (1.7.10) - #286

Merged
lwaldron merged 3 commits into
develfrom
validation-v1.0.5
Nov 6, 2026
Merged

lwaldron merged 3 commits into
develfrom
validation-v1.0.5

Conversation

@lwaldron

@lwaldron lwaldron commented Nov 6, 2026

Copy link
Copy Markdown
Member

Replaces inst/extdata/validation_summary.tsv with v1.0.5 from waldronlab/taxPProValidation#5. That is the re-run with folds assigned per species on the 2026-11 sources, with G+C content added. The export reads this file from the installed package, so the next bugphyzzExports run after this merges applies the new thresholds.

Effect on the export (MCC 0.7, R2 0.5, rank all):

  • G+C content ASR predictions are kept for the first time (R2 0.92).
  • "aerobic" (0.71 to 0.66), "spirillum" (0.70 to 0.47) and COGEM rating 3 (0.72 to 0.69) predictions are dropped. Whether aerobic should keep a lower threshold is waldronlab/bugphyzz-manuscript#15; this PR leaves the thresholds alone.
  • Shape "tail" has no row any more (too few species for 10 folds), so its predictions are dropped too.
  • Genome size, coding genes and growth temperature pass with more margin than before.

inst/scripts/README.md points to the PR branch commit (e1b0831). The file is byte-identical to what will merge, but I'll update the hash to the merge commit once #5 merges.

Tests: the three network tests in test-importBugphyzz.R fail, on devel too, because the exports name an attribute "butyrate-producing bacteria" while attributes.tsv has called that group "butyrate producing" since 2024 (b3b4b39). Separate issue.

Drafted with Claude Code.

Copy validation_summary.tsv v1.0.5 from waldronlab/taxPProValidation#5
(species folds, 2026-11 sources, gc content added). Document the source
commit in inst/scripts/README.md and add a NEWS entry.

Co-authored-by: Claude Code <noreply@anthropic.com>
Comment thread NEWS.md
dropped: their MCC fell below 0.7 once strains were no longer predicted
from their own species. Genome size, coding genes and growth temperature
validate better than before.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The NEWS entry leaves out a user-visible consequence that the PR description mentions. shape = tail has no row in v1.0.5, so .filterAsr() joins it to NA and drops every ASR tail prediction. Please list it next to aerobic, spirillum and COGEM 3. Also note that this removal is not a failed validation but a missing row, so the dropped predictions will stay dropped under any mccThreshold, including 0.

Comment thread inst/scripts/README.md Outdated

```bash
wget https://raw.githubusercontent.com/waldronlab/taxPProValidation/cc45761/validation_summary.tsv
wget https://raw.githubusercontent.com/waldronlab/taxPProValidation/e1b0831/validation_summary.tsv

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This provenance points at commit e1b0831 of an unmerged PR branch in taxPProValidation. If that PR is squash-merged or the branch is deleted, the hash may stop resolving, and the documented wget command would no longer work. Hold this PR until taxPProValidation#5 merges and then pin the merge commit, or tag the release (v1.0.5) and reference the tag.

@claude

claude Bot commented Nov 6, 2026

Copy link
Copy Markdown

Two items, neither blocking:

  1. NEWS omits the dropped tail shape. shape = tail has no row in v1.0.5, so .filterAsr() drops all its ASR predictions via the NA join. This is a missing row, not a failed threshold, so it holds even at mccThreshold = 0. The PR description says so, but NEWS.md doesn't.
  2. The README provenance pins an unmerged PR branch commit (e1b0831). The wget command could break if the branch is deleted or squash-merged. Pin the merge commit or a tag before or right after merging, as the description already plans.

There are no tests covering the new behaviour (gc content kept, tail dropped). The existing filter tests use mocked validation values, so a small test against the shipped file would catch future regressions in the exports.

Co-authored-by: Claude Code <noreply@anthropic.com>
@lwaldron

lwaldron commented Nov 6, 2026

Copy link
Copy Markdown
Member Author
  1. Added the tail line to NEWS.
  2. Will repin to the merge commit once taxPProValidation#5 merges.
  3. Added a test against the shipped file: one row per key, gc content present and passing, aerobic present, no tail row. It doesn't pin aerobic's value, so a later re-run that moves it won't break the test.

Drafted with Claude Code.

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.32%. Comparing base (512948f) to head (512b854).
⚠️ Report is 4 commits behind head on devel.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel     #286   +/-   ##
=======================================
  Coverage   42.32%   42.32%           
=======================================
  Files           5        5           
  Lines         893      893           
=======================================
  Hits          378      378           
  Misses        515      515           

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

Co-authored-by: Claude Code <noreply@anthropic.com>
@lwaldron
lwaldron merged commit cc8823a into devel Nov 6, 2026
2 checks passed
@lwaldron
lwaldron deleted the validation-v1.0.5 branch November 6, 2026 12:16
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.

1 participant