Add metacell construction + responder-metacell prediction pipeline#17
Open
WWXkenmo wants to merge 1 commit into
Open
Add metacell construction + responder-metacell prediction pipeline#17WWXkenmo wants to merge 1 commit into
WWXkenmo wants to merge 1 commit into
Conversation
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>
xiaotong743
reviewed
Jun 30, 2026
|
|
||
| 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) |
Collaborator
There was a problem hiding this comment.
Has to be PCA? Maybe either flag that or just write a function with predefined embeddings, wdyt?
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.
scripts/metacell_responder/: