Skip to content

Clamp n_pcs so default H5 pipeline does not panic - #7

Merged
jwg054000 merged 1 commit into
mainfrom
fix/clamp-n-pcs
Sep 2, 2026
Merged

jwg054000 merged 1 commit into
mainfrom
fix/clamp-n-pcs

Conversation

@jwg054000

Copy link
Copy Markdown
Owner

H5 smoke on pin `sha256:0f7164c5…` with default flags panicked in `pca.rs` (21 cells after `max_pct_mt=5`, 50 PCs). PACKET.md outputs exist if you pass `--max-pct-mt 20`.

This clamps PCs to `min(n_pcs, n_cells-1, n_genes-1)` and fail-closes if fewer than 2 cells remain.

Does not change default 5% MT. Does not add Cell Ranger. Does not touch prairie-rna-stream. 115 tests green locally.

After merge, GHCR will mint a new digest (src/ change). Pin that; do not float `0.3.0`. Until then the old pin still needs `--max-pct-mt 20` for this H5.

pbmc_1k_v3 at --max-pct-mt 5 kept 21 cells; PCA asked for 50 PCs and indexed OOB.
@jwg054000
jwg054000 merged commit 94f94d1 into main Sep 2, 2026
1 check passed
@jwg054000
jwg054000 deleted the fix/clamp-n-pcs branch September 2, 2026 17:13
jwg054000 added a commit that referenced this pull request Sep 2, 2026
src/#7 published sha256:c1d9cc75…. Do not float 0.3.0. Docs-only; does not rebuild.
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.

1 participant