Skip to content

Add metacell construction + responder-metacell prediction pipeline#17

Open
WWXkenmo wants to merge 1 commit into
mainfrom
feat/metacell-responder-prediction
Open

Add metacell construction + responder-metacell prediction pipeline#17
WWXkenmo wants to merge 1 commit into
mainfrom
feat/metacell-responder-prediction

Conversation

@WWXkenmo

Copy link
Copy Markdown
Member

scripts/metacell_responder/:

  • build_perturbation_metacells.py single-cell h5ad -> SEACells metacell h5ad
  • process_metacell_dose_to_zarr.py metacell h5ad -> GroupedDistribution zarr
  • construct_metacells_from_zarr.py single-cell zarr -> metacell zarr (zarr-native)
  • define_responder_metacells.py metacell zarr -> responder labels (option-3 kNN)
  • README.md pipeline, usage, env notes

scripts/metacell_responder/:
  - build_perturbation_metacells.py   single-cell h5ad -> SEACells metacell h5ad
  - process_metacell_dose_to_zarr.py  metacell h5ad -> GroupedDistribution zarr
  - construct_metacells_from_zarr.py  single-cell zarr -> metacell zarr (zarr-native)
  - define_responder_metacells.py     metacell zarr -> responder labels (option-3 kNN)
  - README.md                         pipeline, usage, env notes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

n_meta = max(2, n // cells_per_metacell)
n_comp = min(n_pca, n - 1, emb.shape[1])
emb_pca = PCA(n_components=n_comp, random_state=seed).fit_transform(emb)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Has to be PCA? Maybe either flag that or just write a function with predefined embeddings, wdyt?

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