Skip to content

cellbender: keep uns as CellBender's loader gives it - #52

Merged
Claptar merged 2 commits into
mainfrom
fix/cellbender-uns-as-loader
Oct 16, 2026
Merged

Claptar merged 2 commits into
mainfrom
fix/cellbender-uns-as-loader

Conversation

@Claptar

@Claptar Claptar commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #51 (#29), from checking against real CellBender 0.3.2 output: two samples from a cellgeni ticket, cellbender.h5 and cellbender_filtered.h5 each with --raw, compared with CellBender 0.3.2's own load_anndata_from_input_and_output and anndata_from_h5.

X, both layers, every latent at its barcode, the embedding, var, and --min-cell-probability 0.5 (same cells as CellBender's filtered file) all matched. Two differences, both in uns:

  • One-element settings (target_false_positive_rate, estimator, ...) were unwrapped to scalars. The loader keeps them as stored, so uns[...][0] in a notebook broke. They now stay as CellBender wrote them (0.2 stores true scalars and keeps those).
  • A filtered file's barcode_indices_for_latents, which places no rows there, was dropped. The loader keeps it in uns; so do we now.

After this, all four real 0.3.2 files and the earlier 0.2.2 run match on every check.

🤖 Generated with Claude Code

Checked against real CellBender 0.3.2 output (two samples, full and
filtered) and load_anndata_from_input_and_output. Everything matched but
uns:
- one-element settings (target_false_positive_rate, estimator, ...) were
  unwrapped to scalars; the loader keeps them as stored;
- a filtered file's barcode_indices_for_latents, which places no rows
  there, was dropped; the loader keeps it in uns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 10:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T10:18:01.770104Z 552c5cb PR opened
ℹ️ 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: 552c5cbab1

ℹ️ 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 tests/test_cellbender.py Outdated
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Test Results (py3.12)

1 445 tests  +4   1 445 ✅ +4   3m 46s ⏱️ +22s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit d82441a. ± Comparison against base commit 13f12a0.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Test Results (py3.13)

1 445 tests  +4   1 445 ✅ +4   3m 41s ⏱️ + 1m 32s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit d82441a. ± Comparison against base commit 13f12a0.

♻️ This comment has been updated with latest results.

From review on #52.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Claptar
Claptar merged commit b3a0f8f into main Oct 16, 2026
6 checks passed
@Claptar
Claptar deleted the fix/cellbender-uns-as-loader branch October 16, 2026 11:13
@Claptar Claptar mentioned this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants