Skip to content

Scope CHOIR setup and run the mouse pancreas example - #583

Merged
mengxu98 merged 11 commits into
mainfrom
choir-setup
Dec 1, 2026
Merged

mengxu98 merged 11 commits into
mainfrom
choir-setup

Conversation

@mengxu98

@mengxu98 mengxu98 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Changes

  • Make standalone PrepareEnv(modules = "choir") prepare only the CHOIR R dependencies; keep the existing behavior for mixed modules and explicit Python requests.
  • Check for the CHOIR backend inside RunCHOIR(). Reuse a loadable installation, and use the existing installer for missing dependencies.
  • Execute the full bundled mouse pancreas example from the reference page without installation code or skip guards. Reuse the shared dependency list in pkgdown's dependency discovery.

Validation

  • All 328 targeted CHOIR and environment assertions passed on Linux.
  • Built the RunCHOIR reference page with examples enabled, using CHOIR 0.3.0. The example ran on all 1,000 cells and generated a plot with 13 clusters.
  • The bundled data and analysis defaults are unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T14:01:14.358057Z 4979787 New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64a44c1511

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread R/RunCHOIR.R
#' pancreas_sub <- Seurat::NormalizeData(pancreas_sub, verbose = FALSE)
#' pancreas_sub <- RunCHOIR(
#' pancreas_sub,
#' object = pancreas_sub,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exclude Windows from the runnable CHOIR example

On Windows, example("RunCHOIR") and checks that execute examples now fail because this example runs unconditionally, while RunCHOIR() explicitly rejects Windows before loading the backend. Previously, \dontrun{} prevented that failure. Preserve the executable example on supported platforms while excluding Windows. The repository's R-CMD-check.yaml uses --no-examples, so its Windows job will not catch this regression.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11aa7a75e2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread R/RunCHOIR.R Outdated
verbose = FALSE
)
}
check_r(choir_r_packages, verbose = FALSE)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the CHOIR test mock for the simplified dependency call

The with_mock_choir() helper in tests/testthat/test-choir.R still replaces check_r() with a function whose dependencies argument has no default and evaluates it with expect_identical(dependencies, NA). This simplified call omits that argument, so every test that reaches the backend through this helper now fails with a missing-argument error instead of exercising CHOIR behavior. Give the mock the real function's default or retain the explicit argument.

Useful? React with 👍 / 👎.

@mengxu98
mengxu98 merged commit ad88d39 into main Dec 1, 2026
5 of 6 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.

1 participant