Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/fold3/README.md +73 -0
- paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/fold4/README.md +60 -0
- paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/pooled/README.md +73 -0
- paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/scsemi_cv_20261002/pooled/arms/scsemi__raw/deg_top50_lists.csv +110 -0
paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/fold3/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# score_ft.py output: giroux2022, 6 scored donors
|
| 2 |
+
|
| 3 |
+
Arms: scsemi__raw. Every arm is scored on the same donors against the same observed reference.
|
| 4 |
+
|
| 5 |
+
## Inputs and fixed contracts
|
| 6 |
+
- Observed reference: `/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/reference.npz` (sha dd0152f7bde4), built from datadir:/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022;
|
| 7 |
+
observed cells sum exactly to the features pseudobulk of every donor. Observed labels: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/observed_labels/labels/labels.parquet.
|
| 8 |
+
- Generated cells: `generated_counts` read out once with Poisson(seed 20260916) over the **whole NPZ in row order**
|
| 9 |
+
(`poisson_readout.poisson_integerise`), then the scored donors' rows. These integer counts are used for labels, embedding,
|
| 10 |
+
depth and the contrast. Pseudobulk uses the summed `generated_counts` (rates), as `score_generated.py`.
|
| 11 |
+
- Labels: frozen f01common scANVI (`predict_scanvi.py`, CPU, zero query epochs), six-type gate ['T cell', 'B cell', 'Monocyte', 'NK cell', 'DC', 'Other']; query genes =
|
| 12 |
+
the 1,006-gene annotation list minus genes the dataset's sc assay did not measure in every sample (1006 genes).
|
| 13 |
+
- Scoring genes: 6k panel genes measured by both assays in every sample of the dataset (5563 genes).
|
| 14 |
+
|
| 15 |
+
## Definitions
|
| 16 |
+
1. **Composition**: fraction of each donor's cells per six-type label (all generated cells; all observed QC cells).
|
| 17 |
+
`comp_l1` = sum over the six labels of |generated - observed| (immicro_common.l1). `comp_l1_obs_loo_null` = L1 of the
|
| 18 |
+
donor's observed composition to the mean of the *other scored donors'* observed compositions. `composition_top1` =
|
| 19 |
+
fraction of donors whose generated composition is closest (L1) to their own observed composition.
|
| 20 |
+
2. **Pseudobulk**: `pb_r` = Pearson r of CPM-log1p(summed generated_counts) vs CPM-log1p(observed pseudobulk) on the scoring
|
| 21 |
+
genes (evaluate_realbulk.cpm_log1p / paired_r). `pb_top1` = the donor's generated pseudobulk is closest (Pearson) to its own
|
| 22 |
+
observed pseudobulk among the 6 scored donors (immicro_common.retrieval = evaluate_realbulk.top1 arithmetic).
|
| 23 |
+
3. **Precision / coverage / density** (stage_b_embed.py functions): per-cell CP10K over the scoring genes + log1p; PCA-50
|
| 24 |
+
(randomized, random_state 20260925) and k = 10 real-real k-NN balls fitted on **R1 of the scored donors only**.
|
| 25 |
+
Reference rule (independent of fold and arm): per donor, cells in canonical order (library_id+barcode), one
|
| 26 |
+
permutation from `default_rng([20260925, uint64(sha256(donor)[:8])])`; R1 = first n, R2 = next n,
|
| 27 |
+
n = min(150, n_cells // 2) (900 R1 cells here). Generated query: per donor n cells (the donor's R1 size),
|
| 28 |
+
without replacement, `default_rng([20260926, same key])`. Precision = fraction of generated cells inside any R1 ball
|
| 29 |
+
(Kynkaanniemi 2019); coverage = fraction of R1 cells whose ball holds a generated cell; density = Naeem 2020.
|
| 30 |
+
Per-donor precision = that donor's generated cells; per-donor coverage = that donor's R1 cells (the pooled values are
|
| 31 |
+
their n-weighted means; plain means when every donor has 150 reference cells). R2 (held-out real cells of the same donors) is the
|
| 32 |
+
perfect-generator control: precision 1.0000, coverage 1.0000.
|
| 33 |
+
**Depth matched**: stage_b_embed depth matching run pairwise (R1 vs this arm): per donor and within-donor rank of detected
|
| 34 |
+
genes, both cells are thinned by UMI sampling without replacement to the smaller detected-gene count; PCA kept from
|
| 35 |
+
un-thinned R1, radii recomputed on thinned R1; fresh rng(20260929) per arm. R2 control: precision
|
| 36 |
+
1.0000, coverage 1.0000.
|
| 37 |
+
4. **Monocyte %** = 100 x Monocyte fraction (all cells) per donor; **median UMI per cell** = median over cells of the
|
| 38 |
+
Poisson-read (generated) / observed counts summed over the scoring genes (per donor, and pooled).
|
| 39 |
+
5. **Group contrast** (T, B, Monocyte, NK): case groups ['severe'] (n = 3) vs control groups ['mild'] (n = 3); rule: explicit --case-groups / --control-groups; groups from features groups.
|
| 40 |
+
Genes per type = scoring genes detected (count > 0) in >= 1 % of the scored donors' observed
|
| 41 |
+
cells of that type. Primary statistic `mean_cp10k`: per-cell CP10K over the scoring genes; per donor the mean over its
|
| 42 |
+
cells of the type (donors with >= 1 such cell); group mean = mean over the group's donors (donor-balanced);
|
| 43 |
+
logFC = log2(case mean + 1) - log2(control mean + 1). Secondary `pseudobulk_log1p_cpm`: the SLE benchmark evaluator's
|
| 44 |
+
statistic (donor x type summed counts, log1p CPM over the scoring genes, mean case - mean control;
|
| 45 |
+
evaluate_generated_vs_truth.group_log_fold_change). Both are computed on the generated cells (their frozen labels) and on
|
| 46 |
+
the observed cells; `r_generated` = Pearson r of the two logFC vectors. Broadcast baseline `r_broadcast`: the same
|
| 47 |
+
observed vector against the logFC of the input bulk (condition NPZ `bulk_counts` of the arm, scoring genes, per-donor
|
| 48 |
+
CP10K resp. log1p CPM, group means). `partial_r_generated_given_broadcast`: r of the OLS residuals of observed and
|
| 49 |
+
generated logFC on the bulk logFC (residual_specificity.py).
|
| 50 |
+
6. **Top-50 DEG overlap** (contrast.csv rows `statistic = welch_top50_deg`; summary `deg_top50`): the SLE benchmark's score (`total_top50_overlap` of
|
| 51 |
+
`bulk2sc-paper/scripts/evaluate_generated_vs_truth.py`, Welch backend: the "top-50 DEG 81 / 84" of the final model), run
|
| 52 |
+
with the evaluator's own functions on the same donor x type pseudobulks as the contrast. Per cell type, observed and
|
| 53 |
+
generated separately: donor x type summed counts on all 5563 scoring genes (donors of the two groups with
|
| 54 |
+
>= 1 cell of the type) -> `welch_bh_deg` (log1p CPM, two-sided Welch t-test case vs control, Benjamini-Hochberg over the
|
| 55 |
+
genes with a defined p-value; needs >= 2 donors per group) -> `top_deg_genes` (FDR < 0.05, descending |logFC|,
|
| 56 |
+
first 50; shorter when fewer genes pass). `top50_overlap` = |observed list & generated list|; `top50_jaccard`
|
| 57 |
+
the evaluator's Jaccard. Summary `sum` = total over the scored types (the quantity reported as 81), `max` = the sum of
|
| 58 |
+
the observed list lengths (the "of 262"), `sum_4type` = T + B + Monocyte + NK. A type is scored when its observed test
|
| 59 |
+
is defined; an arm whose generated test is undefined for a scored type gets overlap 0. Types: T cell, B cell, Monocyte, NK cell, DC
|
| 60 |
+
(aggregates: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/deg_reference.npz).
|
| 61 |
+
**Broadcast analogue** (`top50_overlap_broadcast`, as `sle_broadcast.py` `broadcast_input_bulk`; not part of the
|
| 62 |
+
published benchmark): the same test on the arm's condition bulk_counts (scoring genes, the 3 + 3
|
| 63 |
+
donors), one whole-PBMC top-50 list, compared with every type's observed list.
|
| 64 |
+
|
| 65 |
+
## Files
|
| 66 |
+
- `per_donor.csv`: one row per arm x donor (all per-donor quantities above).
|
| 67 |
+
- `summary.json`: per arm the donor means / pooled values, provenance (NPZ sha, receipt check, generation metadata,
|
| 68 |
+
Poisson nnz of the whole NPZ, annotation contract), and the reference block (PCA, R2 control).
|
| 69 |
+
- `contrast.csv`: per arm x cell type x statistic (`mean_cp10k`, `pseudobulk_log1p_cpm`: logFC r; `welch_top50_deg`:
|
| 70 |
+
top-50 DEG overlap, T / B / Monocyte / NK / DC; columns of the other kind are empty).
|
| 71 |
+
- `arms/<arm>/labels/` (predict_scanvi.py labels + manifest), `arms/<arm>/generated_cells.parquet` (NPZ row, donor, label,
|
| 72 |
+
UMI on the scoring genes, P/C subsample flag), `arms/<arm>/deg_top50_lists.csv` (observed, generated and broadcast
|
| 73 |
+
top-50 gene lists, Ensembl ids, rank order).
|
paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/fold4/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# score_ft.py output: giroux2022, 3 scored donors
|
| 2 |
+
|
| 3 |
+
Arms: scsemi__raw. Every arm is scored on the same donors against the same observed reference.
|
| 4 |
+
|
| 5 |
+
## Inputs and fixed contracts
|
| 6 |
+
- Observed reference: `/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/reference.npz` (sha dd0152f7bde4), built from datadir:/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022;
|
| 7 |
+
observed cells sum exactly to the features pseudobulk of every donor. Observed labels: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/observed_labels/labels/labels.parquet.
|
| 8 |
+
- Generated cells: `generated_counts` read out once with Poisson(seed 20260916) over the **whole NPZ in row order**
|
| 9 |
+
(`poisson_readout.poisson_integerise`), then the scored donors' rows. These integer counts are used for labels, embedding,
|
| 10 |
+
depth and the contrast. Pseudobulk uses the summed `generated_counts` (rates), as `score_generated.py`.
|
| 11 |
+
- Labels: frozen f01common scANVI (`predict_scanvi.py`, CPU, zero query epochs), six-type gate ['T cell', 'B cell', 'Monocyte', 'NK cell', 'DC', 'Other']; query genes =
|
| 12 |
+
the 1,006-gene annotation list minus genes the dataset's sc assay did not measure in every sample (1006 genes).
|
| 13 |
+
- Scoring genes: 6k panel genes measured by both assays in every sample of the dataset (5563 genes).
|
| 14 |
+
|
| 15 |
+
## Definitions
|
| 16 |
+
1. **Composition**: fraction of each donor's cells per six-type label (all generated cells; all observed QC cells).
|
| 17 |
+
`comp_l1` = sum over the six labels of |generated - observed| (immicro_common.l1). `comp_l1_obs_loo_null` = L1 of the
|
| 18 |
+
donor's observed composition to the mean of the *other scored donors'* observed compositions. `composition_top1` =
|
| 19 |
+
fraction of donors whose generated composition is closest (L1) to their own observed composition.
|
| 20 |
+
2. **Pseudobulk**: `pb_r` = Pearson r of CPM-log1p(summed generated_counts) vs CPM-log1p(observed pseudobulk) on the scoring
|
| 21 |
+
genes (evaluate_realbulk.cpm_log1p / paired_r). `pb_top1` = the donor's generated pseudobulk is closest (Pearson) to its own
|
| 22 |
+
observed pseudobulk among the 3 scored donors (immicro_common.retrieval = evaluate_realbulk.top1 arithmetic).
|
| 23 |
+
3. **Precision / coverage / density** (stage_b_embed.py functions): per-cell CP10K over the scoring genes + log1p; PCA-50
|
| 24 |
+
(randomized, random_state 20260925) and k = 10 real-real k-NN balls fitted on **R1 of the scored donors only**.
|
| 25 |
+
Reference rule (independent of fold and arm): per donor, cells in canonical order (library_id+barcode), one
|
| 26 |
+
permutation from `default_rng([20260925, uint64(sha256(donor)[:8])])`; R1 = first n, R2 = next n,
|
| 27 |
+
n = min(150, n_cells // 2) (450 R1 cells here). Generated query: per donor n cells (the donor's R1 size),
|
| 28 |
+
without replacement, `default_rng([20260926, same key])`. Precision = fraction of generated cells inside any R1 ball
|
| 29 |
+
(Kynkaanniemi 2019); coverage = fraction of R1 cells whose ball holds a generated cell; density = Naeem 2020.
|
| 30 |
+
Per-donor precision = that donor's generated cells; per-donor coverage = that donor's R1 cells (the pooled values are
|
| 31 |
+
their n-weighted means; plain means when every donor has 150 reference cells). R2 (held-out real cells of the same donors) is the
|
| 32 |
+
perfect-generator control: precision 1.0000, coverage 1.0000.
|
| 33 |
+
**Depth matched**: stage_b_embed depth matching run pairwise (R1 vs this arm): per donor and within-donor rank of detected
|
| 34 |
+
genes, both cells are thinned by UMI sampling without replacement to the smaller detected-gene count; PCA kept from
|
| 35 |
+
un-thinned R1, radii recomputed on thinned R1; fresh rng(20260929) per arm. R2 control: precision
|
| 36 |
+
1.0000, coverage 1.0000.
|
| 37 |
+
4. **Monocyte %** = 100 x Monocyte fraction (all cells) per donor; **median UMI per cell** = median over cells of the
|
| 38 |
+
Poisson-read (generated) / observed counts summed over the scoring genes (per donor, and pooled).
|
| 39 |
+
5. **Group contrast** (T, B, Monocyte, NK): not computed (scored donors do not include both groups).
|
| 40 |
+
Genes per type = scoring genes detected (count > 0) in >= 1 % of the scored donors' observed
|
| 41 |
+
cells of that type. Primary statistic `mean_cp10k`: per-cell CP10K over the scoring genes; per donor the mean over its
|
| 42 |
+
cells of the type (donors with >= 1 such cell); group mean = mean over the group's donors (donor-balanced);
|
| 43 |
+
logFC = log2(case mean + 1) - log2(control mean + 1). Secondary `pseudobulk_log1p_cpm`: the SLE benchmark evaluator's
|
| 44 |
+
statistic (donor x type summed counts, log1p CPM over the scoring genes, mean case - mean control;
|
| 45 |
+
evaluate_generated_vs_truth.group_log_fold_change). Both are computed on the generated cells (their frozen labels) and on
|
| 46 |
+
the observed cells; `r_generated` = Pearson r of the two logFC vectors. Broadcast baseline `r_broadcast`: the same
|
| 47 |
+
observed vector against the logFC of the input bulk (condition NPZ `bulk_counts` of the arm, scoring genes, per-donor
|
| 48 |
+
CP10K resp. log1p CPM, group means). `partial_r_generated_given_broadcast`: r of the OLS residuals of observed and
|
| 49 |
+
generated logFC on the bulk logFC (residual_specificity.py).
|
| 50 |
+
6. **Top-50 DEG overlap** (contrast.csv rows `statistic = welch_top50_deg`; summary `deg_top50`): not computed (contrast off).
|
| 51 |
+
|
| 52 |
+
## Files
|
| 53 |
+
- `per_donor.csv`: one row per arm x donor (all per-donor quantities above).
|
| 54 |
+
- `summary.json`: per arm the donor means / pooled values, provenance (NPZ sha, receipt check, generation metadata,
|
| 55 |
+
Poisson nnz of the whole NPZ, annotation contract), and the reference block (PCA, R2 control).
|
| 56 |
+
- `contrast.csv`: per arm x cell type x statistic (`mean_cp10k`, `pseudobulk_log1p_cpm`: logFC r; `welch_top50_deg`:
|
| 57 |
+
top-50 DEG overlap, T / B / Monocyte / NK / DC; columns of the other kind are empty).
|
| 58 |
+
- `arms/<arm>/labels/` (predict_scanvi.py labels + manifest), `arms/<arm>/generated_cells.parquet` (NPZ row, donor, label,
|
| 59 |
+
UMI on the scoring genes, P/C subsample flag), `arms/<arm>/deg_top50_lists.csv` (observed, generated and broadcast
|
| 60 |
+
top-50 gene lists, Ensembl ids, rank order).
|
paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores/giroux2022/scsemi_cv_20261002/pooled/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# score_ft.py output: giroux2022, 24 scored donors
|
| 2 |
+
|
| 3 |
+
Arms: scsemi__raw. Every arm is scored on the same donors against the same observed reference.
|
| 4 |
+
|
| 5 |
+
## Inputs and fixed contracts
|
| 6 |
+
- Observed reference: `/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/reference.npz` (sha dd0152f7bde4), built from datadir:/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022;
|
| 7 |
+
observed cells sum exactly to the features pseudobulk of every donor. Observed labels: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/observed_labels/labels/labels.parquet.
|
| 8 |
+
- Generated cells: `generated_counts` read out once with Poisson(seed 20260916) over the **whole NPZ in row order**
|
| 9 |
+
(`poisson_readout.poisson_integerise`), then the scored donors' rows. These integer counts are used for labels, embedding,
|
| 10 |
+
depth and the contrast. Pseudobulk uses the summed `generated_counts` (rates), as `score_generated.py`.
|
| 11 |
+
- Labels: frozen f01common scANVI (`predict_scanvi.py`, CPU, zero query epochs), six-type gate ['T cell', 'B cell', 'Monocyte', 'NK cell', 'DC', 'Other']; query genes =
|
| 12 |
+
the 1,006-gene annotation list minus genes the dataset's sc assay did not measure in every sample (1006 genes).
|
| 13 |
+
- Scoring genes: 6k panel genes measured by both assays in every sample of the dataset (5563 genes).
|
| 14 |
+
|
| 15 |
+
## Definitions
|
| 16 |
+
1. **Composition**: fraction of each donor's cells per six-type label (all generated cells; all observed QC cells).
|
| 17 |
+
`comp_l1` = sum over the six labels of |generated - observed| (immicro_common.l1). `comp_l1_obs_loo_null` = L1 of the
|
| 18 |
+
donor's observed composition to the mean of the *other scored donors'* observed compositions. `composition_top1` =
|
| 19 |
+
fraction of donors whose generated composition is closest (L1) to their own observed composition.
|
| 20 |
+
2. **Pseudobulk**: `pb_r` = Pearson r of CPM-log1p(summed generated_counts) vs CPM-log1p(observed pseudobulk) on the scoring
|
| 21 |
+
genes (evaluate_realbulk.cpm_log1p / paired_r). `pb_top1` = the donor's generated pseudobulk is closest (Pearson) to its own
|
| 22 |
+
observed pseudobulk among the 24 scored donors (immicro_common.retrieval = evaluate_realbulk.top1 arithmetic).
|
| 23 |
+
3. **Precision / coverage / density** (stage_b_embed.py functions): per-cell CP10K over the scoring genes + log1p; PCA-50
|
| 24 |
+
(randomized, random_state 20260925) and k = 10 real-real k-NN balls fitted on **R1 of the scored donors only**.
|
| 25 |
+
Reference rule (independent of fold and arm): per donor, cells in canonical order (library_id+barcode), one
|
| 26 |
+
permutation from `default_rng([20260925, uint64(sha256(donor)[:8])])`; R1 = first n, R2 = next n,
|
| 27 |
+
n = min(150, n_cells // 2) (3600 R1 cells here). Generated query: per donor n cells (the donor's R1 size),
|
| 28 |
+
without replacement, `default_rng([20260926, same key])`. Precision = fraction of generated cells inside any R1 ball
|
| 29 |
+
(Kynkaanniemi 2019); coverage = fraction of R1 cells whose ball holds a generated cell; density = Naeem 2020.
|
| 30 |
+
Per-donor precision = that donor's generated cells; per-donor coverage = that donor's R1 cells (the pooled values are
|
| 31 |
+
their n-weighted means; plain means when every donor has 150 reference cells). R2 (held-out real cells of the same donors) is the
|
| 32 |
+
perfect-generator control: precision 0.9981, coverage 1.0000.
|
| 33 |
+
**Depth matched**: stage_b_embed depth matching run pairwise (R1 vs this arm): per donor and within-donor rank of detected
|
| 34 |
+
genes, both cells are thinned by UMI sampling without replacement to the smaller detected-gene count; PCA kept from
|
| 35 |
+
un-thinned R1, radii recomputed on thinned R1; fresh rng(20260929) per arm. R2 control: precision
|
| 36 |
+
0.9981, coverage 1.0000.
|
| 37 |
+
4. **Monocyte %** = 100 x Monocyte fraction (all cells) per donor; **median UMI per cell** = median over cells of the
|
| 38 |
+
Poisson-read (generated) / observed counts summed over the scoring genes (per donor, and pooled).
|
| 39 |
+
5. **Group contrast** (T, B, Monocyte, NK): case groups ['severe'] (n = 11) vs control groups ['mild'] (n = 13); rule: explicit --case-groups / --control-groups; groups from features groups.
|
| 40 |
+
Genes per type = scoring genes detected (count > 0) in >= 1 % of the scored donors' observed
|
| 41 |
+
cells of that type. Primary statistic `mean_cp10k`: per-cell CP10K over the scoring genes; per donor the mean over its
|
| 42 |
+
cells of the type (donors with >= 1 such cell); group mean = mean over the group's donors (donor-balanced);
|
| 43 |
+
logFC = log2(case mean + 1) - log2(control mean + 1). Secondary `pseudobulk_log1p_cpm`: the SLE benchmark evaluator's
|
| 44 |
+
statistic (donor x type summed counts, log1p CPM over the scoring genes, mean case - mean control;
|
| 45 |
+
evaluate_generated_vs_truth.group_log_fold_change). Both are computed on the generated cells (their frozen labels) and on
|
| 46 |
+
the observed cells; `r_generated` = Pearson r of the two logFC vectors. Broadcast baseline `r_broadcast`: the same
|
| 47 |
+
observed vector against the logFC of the input bulk (condition NPZ `bulk_counts` of the arm, scoring genes, per-donor
|
| 48 |
+
CP10K resp. log1p CPM, group means). `partial_r_generated_given_broadcast`: r of the OLS residuals of observed and
|
| 49 |
+
generated logFC on the bulk logFC (residual_specificity.py).
|
| 50 |
+
6. **Top-50 DEG overlap** (contrast.csv rows `statistic = welch_top50_deg`; summary `deg_top50`): the SLE benchmark's score (`total_top50_overlap` of
|
| 51 |
+
`bulk2sc-paper/scripts/evaluate_generated_vs_truth.py`, Welch backend: the "top-50 DEG 81 / 84" of the final model), run
|
| 52 |
+
with the evaluator's own functions on the same donor x type pseudobulks as the contrast. Per cell type, observed and
|
| 53 |
+
generated separately: donor x type summed counts on all 5563 scoring genes (donors of the two groups with
|
| 54 |
+
>= 1 cell of the type) -> `welch_bh_deg` (log1p CPM, two-sided Welch t-test case vs control, Benjamini-Hochberg over the
|
| 55 |
+
genes with a defined p-value; needs >= 2 donors per group) -> `top_deg_genes` (FDR < 0.05, descending |logFC|,
|
| 56 |
+
first 50; shorter when fewer genes pass). `top50_overlap` = |observed list & generated list|; `top50_jaccard`
|
| 57 |
+
the evaluator's Jaccard. Summary `sum` = total over the scored types (the quantity reported as 81), `max` = the sum of
|
| 58 |
+
the observed list lengths (the "of 262"), `sum_4type` = T + B + Monocyte + NK. A type is scored when its observed test
|
| 59 |
+
is defined; an arm whose generated test is undefined for a scored type gets overlap 0. Types: T cell, B cell, Monocyte, NK cell, DC
|
| 60 |
+
(aggregates: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scoring_cache/giroux2022/deg_reference.npz).
|
| 61 |
+
**Broadcast analogue** (`top50_overlap_broadcast`, as `sle_broadcast.py` `broadcast_input_bulk`; not part of the
|
| 62 |
+
published benchmark): the same test on the arm's condition bulk_counts (scoring genes, the 11 + 13
|
| 63 |
+
donors), one whole-PBMC top-50 list, compared with every type's observed list.
|
| 64 |
+
|
| 65 |
+
## Files
|
| 66 |
+
- `per_donor.csv`: one row per arm x donor (all per-donor quantities above).
|
| 67 |
+
- `summary.json`: per arm the donor means / pooled values, provenance (NPZ sha, receipt check, generation metadata,
|
| 68 |
+
Poisson nnz of the whole NPZ, annotation contract), and the reference block (PCA, R2 control).
|
| 69 |
+
- `contrast.csv`: per arm x cell type x statistic (`mean_cp10k`, `pseudobulk_log1p_cpm`: logFC r; `welch_top50_deg`:
|
| 70 |
+
top-50 DEG overlap, T / B / Monocyte / NK / DC; columns of the other kind are empty).
|
| 71 |
+
- `arms/<arm>/labels/` (predict_scanvi.py labels + manifest), `arms/<arm>/generated_cells.parquet` (NPZ row, donor, label,
|
| 72 |
+
UMI on the scoring genes, P/C subsample flag), `arms/<arm>/deg_top50_lists.csv` (observed, generated and broadcast
|
| 73 |
+
top-50 gene lists, Ensembl ids, rank order).
|
paper-releases/pbisc-diffusion/updates/20261008T022410Z-deconv-scsemi-deck/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/scsemi_cv_20261002/pooled/arms/scsemi__raw/deg_top50_lists.csv
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
celltype,source,rank,gene_id
|
| 2 |
+
T cell,observed,1,ENSG00000185304
|
| 3 |
+
T cell,observed,2,ENSG00000142089
|
| 4 |
+
T cell,observed,3,ENSG00000050165
|
| 5 |
+
T cell,observed,4,ENSG00000173262
|
| 6 |
+
T cell,observed,5,ENSG00000179909
|
| 7 |
+
T cell,observed,6,ENSG00000186049
|
| 8 |
+
T cell,observed,7,ENSG00000130413
|
| 9 |
+
T cell,observed,8,ENSG00000177570
|
| 10 |
+
T cell,observed,9,ENSG00000170486
|
| 11 |
+
T cell,observed,10,ENSG00000169855
|
| 12 |
+
T cell,observed,11,ENSG00000258484
|
| 13 |
+
T cell,observed,12,ENSG00000161835
|
| 14 |
+
T cell,observed,13,ENSG00000166435
|
| 15 |
+
T cell,observed,14,ENSG00000166387
|
| 16 |
+
T cell,observed,15,ENSG00000118503
|
| 17 |
+
T cell,observed,16,ENSG00000164512
|
| 18 |
+
T cell,observed,17,ENSG00000162366
|
| 19 |
+
T cell,observed,18,ENSG00000142178
|
| 20 |
+
T cell,observed,19,ENSG00000158966
|
| 21 |
+
T cell,observed,20,ENSG00000015568
|
| 22 |
+
T cell,observed,21,ENSG00000151150
|
| 23 |
+
T cell,observed,22,ENSG00000165646
|
| 24 |
+
T cell,observed,23,ENSG00000124406
|
| 25 |
+
T cell,observed,24,ENSG00000042062
|
| 26 |
+
T cell,observed,25,ENSG00000109458
|
| 27 |
+
T cell,observed,26,ENSG00000173040
|
| 28 |
+
T cell,observed,27,ENSG00000163492
|
| 29 |
+
T cell,observed,28,ENSG00000140470
|
| 30 |
+
T cell,observed,29,ENSG00000184368
|
| 31 |
+
T cell,observed,30,ENSG00000177425
|
| 32 |
+
T cell,observed,31,ENSG00000155749
|
| 33 |
+
T cell,observed,32,ENSG00000047634
|
| 34 |
+
T cell,observed,33,ENSG00000112182
|
| 35 |
+
T cell,observed,34,ENSG00000162458
|
| 36 |
+
T cell,observed,35,ENSG00000162946
|
| 37 |
+
T cell,observed,36,ENSG00000118985
|
| 38 |
+
T cell,observed,37,ENSG00000150764
|
| 39 |
+
T cell,observed,38,ENSG00000176105
|
| 40 |
+
T cell,observed,39,ENSG00000176293
|
| 41 |
+
T cell,observed,40,ENSG00000196126
|
| 42 |
+
T cell,observed,41,ENSG00000111341
|
| 43 |
+
T cell,observed,42,ENSG00000120784
|
| 44 |
+
T cell,observed,43,ENSG00000240891
|
| 45 |
+
T cell,observed,44,ENSG00000197329
|
| 46 |
+
T cell,observed,45,ENSG00000155657
|
| 47 |
+
T cell,observed,46,ENSG00000254996
|
| 48 |
+
T cell,observed,47,ENSG00000175161
|
| 49 |
+
T cell,observed,48,ENSG00000106686
|
| 50 |
+
T cell,observed,49,ENSG00000185950
|
| 51 |
+
T cell,observed,50,ENSG00000164930
|
| 52 |
+
Monocyte,observed,1,ENSG00000166435
|
| 53 |
+
NK cell,observed,1,ENSG00000162490
|
| 54 |
+
NK cell,observed,2,ENSG00000174255
|
| 55 |
+
NK cell,observed,3,ENSG00000185304
|
| 56 |
+
NK cell,observed,4,ENSG00000171160
|
| 57 |
+
NK cell,observed,5,ENSG00000184709
|
| 58 |
+
NK cell,observed,6,ENSG00000204248
|
| 59 |
+
NK cell,observed,7,ENSG00000022556
|
| 60 |
+
NK cell,observed,8,ENSG00000155657
|
| 61 |
+
NK cell,observed,9,ENSG00000118503
|
| 62 |
+
NK cell,observed,10,ENSG00000184588
|
| 63 |
+
NK cell,observed,11,ENSG00000166435
|
| 64 |
+
NK cell,observed,12,ENSG00000145107
|
| 65 |
+
NK cell,observed,13,ENSG00000269955
|
| 66 |
+
NK cell,observed,14,ENSG00000109684
|
| 67 |
+
NK cell,observed,15,ENSG00000109458
|
| 68 |
+
NK cell,observed,16,ENSG00000112182
|
| 69 |
+
NK cell,observed,17,ENSG00000169744
|
| 70 |
+
NK cell,observed,18,ENSG00000113448
|
| 71 |
+
NK cell,observed,19,ENSG00000135605
|
| 72 |
+
NK cell,observed,20,ENSG00000154814
|
| 73 |
+
NK cell,observed,21,ENSG00000213782
|
| 74 |
+
NK cell,observed,22,ENSG00000124406
|
| 75 |
+
NK cell,observed,23,ENSG00000143324
|
| 76 |
+
NK cell,observed,24,ENSG00000139714
|
| 77 |
+
NK cell,observed,25,ENSG00000082805
|
| 78 |
+
NK cell,observed,26,ENSG00000184384
|
| 79 |
+
NK cell,observed,27,ENSG00000136068
|
| 80 |
+
NK cell,observed,28,ENSG00000103319
|
| 81 |
+
NK cell,observed,29,ENSG00000196782
|
| 82 |
+
NK cell,observed,30,ENSG00000117000
|
| 83 |
+
NK cell,observed,31,ENSG00000198879
|
| 84 |
+
NK cell,observed,32,ENSG00000115339
|
| 85 |
+
NK cell,observed,33,ENSG00000080546
|
| 86 |
+
NK cell,observed,34,ENSG00000165355
|
| 87 |
+
NK cell,observed,35,ENSG00000134352
|
| 88 |
+
NK cell,observed,36,ENSG00000059758
|
| 89 |
+
NK cell,observed,37,ENSG00000152256
|
| 90 |
+
NK cell,observed,38,ENSG00000138468
|
| 91 |
+
NK cell,observed,39,ENSG00000114423
|
| 92 |
+
NK cell,observed,40,ENSG00000168421
|
| 93 |
+
NK cell,observed,41,ENSG00000131591
|
| 94 |
+
NK cell,observed,42,ENSG00000135999
|
| 95 |
+
NK cell,observed,43,ENSG00000164327
|
| 96 |
+
NK cell,observed,44,ENSG00000099204
|
| 97 |
+
NK cell,observed,45,ENSG00000243646
|
| 98 |
+
NK cell,observed,46,ENSG00000174485
|
| 99 |
+
NK cell,observed,47,ENSG00000070961
|
| 100 |
+
NK cell,observed,48,ENSG00000159921
|
| 101 |
+
NK cell,observed,49,ENSG00000008405
|
| 102 |
+
NK cell,observed,50,ENSG00000102984
|
| 103 |
+
all (input bulk),broadcast,1,ENSG00000184368
|
| 104 |
+
all (input bulk),broadcast,2,ENSG00000175161
|
| 105 |
+
all (input bulk),broadcast,3,ENSG00000150625
|
| 106 |
+
all (input bulk),broadcast,4,ENSG00000186871
|
| 107 |
+
all (input bulk),broadcast,5,ENSG00000113721
|
| 108 |
+
all (input bulk),broadcast,6,ENSG00000166435
|
| 109 |
+
all (input bulk),broadcast,7,ENSG00000168329
|
| 110 |
+
all (input bulk),broadcast,8,ENSG00000169554
|