Skip to content

docs: prefer layers for single-cell count preservation - #116

Merged
Ishaan Gangwani (ishaan1124) merged 2 commits into
synthetic-sciences:mainfrom
Cmfffff:docs/layers-count-preservation
Sep 29, 2026
Merged

Ishaan Gangwani (ishaan1124) merged 2 commits into
synthetic-sciences:mainfrom
Cmfffff:docs/layers-count-preservation

Conversation

@Cmfffff

Copy link
Copy Markdown
Contributor

Summary

  • Clarify AnnData concatenation guidance around join='outer' for preserving the union of variables/features.
  • Replace default .raw preservation recommendations with explicit adata.layers['counts'] = adata.X.copy() workflows.
  • Align Scanpy workflow docs and analysis template with layers-first count preservation guidance.

Test Plan

  • git diff --check HEAD~1 HEAD
  • grep -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 || true
  • grep -R "layers\\['counts'\\] = adata.X.copy()" backend/cli/skills/biology/anndata backend/cli/skills/biology/scanpy
  • Bun validation/tests not run per maintainer instruction; changes are skill docs/template only.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

Cmf (@Cmfffff) is attempting to deploy a commit to the InkVell Team on Vercel.

A member of the Team first needs to authorize it.

Cmf (Cmfffff) and others added 2 commits September 29, 2026 09:35
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]>
@ishaan1124
Ishaan Gangwani (ishaan1124) merged commit a71d3b8 into synthetic-sciences:main Sep 29, 2026
1 check failed
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.

2 participants