Skip to content

Keep zero-read taxa out of the shared glmGamPoi fit; restore the Wald wording in the separation note - #298

Merged
hyperpolymath merged 1 commit into
review-base/upstream-a325589from
work/glmgampoi-empty-taxa
Oct 27, 2026
Merged

hyperpolymath merged 1 commit into
review-base/upstream-a325589from
work/glmgampoi-empty-taxa

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Pre-review of a fix headed for JoshuaJewell/MetaManifold-WebUI. The base branch review-base/upstream-a325589 is upstream main at a325589, so this diff is exactly the upstream change. Fork CI only runs on PRs to main, so this PR is for review comments only; CI runs on the upstream PR.

Change

Two fixes to the glmGamPoi dispersion path (analysis.differential.dispersion: glmGamPoi):

  1. Zero-read taxa no longer enter the shared fit. glmGamPoi fits all taxa together. A taxon with no reads in any sample gets overdispersion 0 and quasi-likelihood dispersion 1 exactly, and both feed the dispersion trend and the QL prior every other taxon is tested against, so they changed every other taxon's F and p (the default min_prevalence of 0.0 kept them). They are now excluded before the fit and reported as filtered with a note, as clr_welch already does. glm_nb is unchanged: it still reports a zero-read taxon as failed ("the counts are constant across samples").
  2. Separation note wording. The default glm_nb path again says "the Wald test is undefined"; the glmGamPoi path says "its test".

Tests

  • Appending all-zero columns leaves every other taxon's glmGamPoi estimate, SE, statistic, p and padj unchanged; the zero-read rows are filtered with no p-value (guarded like the other glmGamPoi tests, so it fails in CI if glmGamPoi is missing).
  • The glm_nb zero-read taxon is still failed with the "constant" note.
  • The default separation note contains "the Wald test is undefined"; the glmGamPoi one does not mention Wald.

Run: julia --project -e 'using Pkg; Pkg.test()' with R, MASS and glmGamPoi installed. Not run locally (no R or Julia where this was written).

Left out

Theta boundary vs the glm_nb bounds, README se wording, pipeline.yml:346, types.ts:409, a weak theta test, MASS being required even for glmGamPoi.


Generated by Claude Code

…ald separation note

With analysis.differential.dispersion: glmGamPoi, an all-zero taxon has
overdispersion 0 and quasi-likelihood dispersion 1 exactly, and both feed
the dispersion trend and the QL prior, so it changed every other taxon's
F and p. Such taxa are now left out of the shared fit and reported as
filtered, as clr_welch already does.

The shared complete-separation note had been reworded for all paths; the
default glm_nb path again says 'the Wald test is undefined'.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GqBtj4KbxVrGMBVZ4gNFUi
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6216ff64-b39f-4243-9dd0-73fdcf5fc313

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

@coderabbitai review

The base branch is upstream main at a325589 on purpose: this PR pre-reviews a change headed for JoshuaJewell/MetaManifold-WebUI.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@hyperpolymath
hyperpolymath marked this pull request as ready for review October 27, 2026 14:07
@hyperpolymath
hyperpolymath merged commit 9c6ed87 into review-base/upstream-a325589 Oct 27, 2026
3 checks passed
@hyperpolymath
hyperpolymath deleted the work/glmgampoi-empty-taxa branch October 27, 2026 14:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T14:09:10.331056Z 1e6be05 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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