Repository navigation
docs: prefer layers for single-cell count preservation - #116
Merged
Ishaan Gangwani (ishaan1124) merged 2 commits intoSep 29, 2026
Merged
Ishaan Gangwani (ishaan1124) merged 2 commits into
Ishaan Gangwani (ishaan1124) merged 2 commits into
Conversation
|
Cmf (@Cmfffff) is attempting to deploy a commit to the InkVell Team on Vercel. A member of the Team first needs to authorize it. |
Aayam Bansal (aayambansal)
force-pushed
the
main
branch
2 times, most recently
from
July 8, 2026 07:58
01f4df1 to
2c0487f
Compare
Aayam Bansal (aayambansal)
requested review from
Aayam Bansal (aayambansal) and
Ishaan Gangwani (ishaan1124)
as code owners
September 4, 2026 20:12
Ishaan Gangwani (ishaan1124)
force-pushed
the
docs/layers-count-preservation
branch
from
September 29, 2026 01:27
0bd9cfd to
8a80ef5
Compare
Clarify AnnData outer joins for preserving variables and update biology skill workflows to preserve counts in layers instead of relying on adata.raw. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…integration Raw counts go to layers['counts'] as this PR intends, but the workflows subset to highly variable genes before plotting markers, so marker plots read from a layer lost every gene outside that set. adata.raw keeps log-normalized values for all genes again. Batch integration examples go back to join='inner'; an outer join fills unmeasured genes with zeros that read as non-expression. Co-authored-by: Cursor <[email protected]>
Ishaan Gangwani (ishaan1124)
force-pushed
the
docs/layers-count-preservation
branch
from
September 29, 2026 01:35
8a80ef5 to
a4cc0e7
Compare
Ishaan Gangwani (ishaan1124)
merged commit Sep 29, 2026
a71d3b8
into
synthetic-sciences:main
1 check failed
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.
Summary
join='outer'for preserving the union of variables/features..rawpreservation recommendations with explicitadata.layers['counts'] = adata.X.copy()workflows.Test Plan
git diff --check HEAD~1 HEADgrep -R "adata\\.raw = adata\\|adata\\.raw = adata.copy()\\|use_raw=True\\|Always save raw counts\\|Raw data backup\\|Store raw" backend/cli/skills/biology/anndata backend/cli/skills/biology/scanpy || truegrep -R "layers\\['counts'\\] = adata.X.copy()" backend/cli/skills/biology/anndata backend/cli/skills/biology/scanpy🤖 Generated with Claude Code