Skip to content

fix(estimators): accept an AnnData without X - #1383

Merged
Marius1311 merged 1 commit into
mainfrom
fix/estimator-without-x
Oct 14, 2026
Merged

Marius1311 merged 1 commit into
mainfrom
fix/estimator-without-x

Conversation

@Marius1311

Copy link
Copy Markdown
Collaborator

Summary

Estimators build their shadow AnnData with adata.X.dtype, so GPCCA(kernel) raised AttributeError: 'NoneType' object has no attribute 'dtype' when adata.X is None, as in an AnnData that holds only obs, obsm and graphs (e.g. a precomputed transition matrix on a large dataset). The shadow AnnData now has no X either.

Testing

  • New TestGPCCASerialization::test_adata_without_x: fits GPCCA through fate probabilities on an AnnData without X and checks to_adata(); it fails on main with the error above.
  • tests/test_gpcca.py -k "Serialization or test_compute_macrostates or fate": 38 passed, 1 xfailed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CEkHnYavwEf7n32j7rNkPv

The shadow AnnData copied adata.X.dtype, so GPCCA and CFLARE raised AttributeError when X is None (e.g. an AnnData holding only obs, obsm and graphs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_01CEkHnYavwEf7n32j7rNkPv
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T19:18:56.562743Z 98e4c76 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.

@Marius1311
Marius1311 merged commit d7821af into main Oct 14, 2026
11 of 13 checks passed
@Marius1311
Marius1311 deleted the fix/estimator-without-x branch October 14, 2026 08:50
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