Repository navigation
fix: derive PCA defaults from the selected representation - #4533
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4533 +/- ##
=======================================
Coverage 85.11% 85.11%
=======================================
Files 140 140
Lines 12523 12523
=======================================
Hits 10659 10659
Misses 1864 1864
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Member
|
@rpinho we have a PR template for a reason. Please fill it out. Otherwise, I'll close all of your PRs. |
Contributor
Author
|
Sorry about that. The template is filled in now. |
Contributor
Author
|
Hey, I understand this is not helpful. What would be helpful? We would be glad to help in any way we can. What's a hard problem? |
Member
|
thanks! |
flying-sheep
pushed a commit
that referenced
this pull request
Nov 26, 2026
… selected representation) (#4555) Co-authored-by: Ricardo Pinho <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PCA on an obsm matrix can raise for n_components or return fewer components because its defaults use the dimensions and highly_variable mask of X. Call pp.pca with use='obsm.features' where features has a column count that differs from X to reproduce it. The patch derives n_comps from the selected matrix and skips the default variable mask for obsm input. The test compares embeddings, loadings and variance to PCA on that same matrix in X, with both input spellings and with or without a highly_variable annotation.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N