Repository navigation
SimPlex: expression_sigma knob (H2: high-expressing cells spread heavies across barcodes) - #23
Merged
bnemoz merged 1 commit intoNov 19, 2026
Conversation
…fault off) Each cell's molecule means (both chains) are scaled by a mean-1 lognormal factor exp(sigma*Z - sigma^2/2) from its own "expression" RNG stream, so a few plasmablast-like cells own most molecules and hence most ambient copies. sigma=0 is bit-identical to before. Motivation (H2, diagnosis/simplex_v2d): in real princeps memory data a barcode's top heavy often comes from a heavy source spread over many barcodes (16-35% vs 0.5% in sim). sigma=2.5 reproduces this and the pooled < per-well precision reversal; jackpots (H1) and extra ambient light (H3) do not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Stacked on #21; the base is
simplex-v2d-recalibration.Summary
Adds
expression_sigma, which defaults to 0. Each cell's molecule means for both chains are scaled by a mean-1 lognormal factorexp(σZ − σ²/2). The factor comes from the cell's own"expression"RNG stream. With this, a few plasmablast-like cells own most of the molecules, and so most of the ambient copies. At σ = 0 the output is bit-identical to before.Why: of three candidate mechanisms, this is the only one supported
Real princeps memory data (donor02 and donor07 benchmark subsets) shows a signature that SimPlex lacked: a barcode's top heavy often comes from a heavy source carried by many barcodes. Each intervention ran on the full memory P50 profile at 8k cells. Sims are subsampled to 1 in 8 barcodes, like the real subsets.
Not calibrated yet
No profile ships with this PR. With molecule means lowered so that Ig UMIs per barcode stay near real (σ 2.0, 8.5/24 molecules), two statistics still drift:
The spreader signatures stay close to real (0.14 / 0.19 / 0.38 / 0.17).
The report and scripts are in
diagnosis/simplex_v2d/(SIMPLEX_V2D.md, "Update 2026-11-18 (2)"), outside this repo.Tests
test_expression_sigma_zero_identical_and_heavy_tail_same_mean: the default is identical, the mean is preserved, the tail is heavy, and both chains of a cell share its factor.🤖 Generated with Claude Code