Metadata-Version: 2.4
Name: own-baseline
Version: 0.2.3
Summary: Tests whether a single-cell potency or stemness score, such as CytoTRACE, SCENT signalling entropy or CCAT, orders cells beyond its own low-order primitive, against a measured null floor.
License: MIT License
        
        Copyright (c) 2026 The own-baseline authors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://iskakov.dev/ownbaseline
Project-URL: Documentation, https://github.com/IskakovDamir/ownbaseline/blob/main/docs/interpreting.md
Project-URL: Paper, https://iskakov.dev/papers/ownbaseline.pdf
Project-URL: Repository, https://github.com/IskakovDamir/ownbaseline
Project-URL: Issues, https://github.com/IskakovDamir/ownbaseline/issues
Keywords: single-cell,scRNA-seq,potency,stemness,benchmarking,incremental-validity,null-calibration,CytoTRACE,SCENT,CCAT,signalling-entropy,random-gene-sets,negative-control
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Requires-Dist: scikit-learn>=1.2
Provides-Extra: full
Requires-Dist: pandas>=2.0; extra == "full"
Requires-Dist: anndata>=0.10; extra == "full"
Requires-Dist: matplotlib>=3.7; extra == "full"
Dynamic: license-file

<p align="center">
  <a href="https://iskakov.dev/ownbaseline"><picture><source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/splash-phone.svg"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/splash.svg" width="820" alt="own-baseline, the command-line splash: does your score beat its own baseline? Four verbs: check, floors, primitives, verify. Opens iskakov.dev/ownbaseline."></picture></a>
</p>

<p align="center"><a href="https://iskakov.dev/ownbaseline"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/link-site.svg" alt="iskakov.dev/ownbaseline"></a><a href="https://iskakov.dev/papers/ownbaseline.pdf"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/link-paper.svg" alt="the paper, pdf, 45 pages"></a><a href="https://pypi.org/project/own-baseline/"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/link-pypi.svg" alt="pip install own-baseline"></a></p>

<p align="center">
  <a href="https://github.com/IskakovDamir/ownbaseline/actions/workflows/ci.yml"><img src="https://github.com/IskakovDamir/ownbaseline/actions/workflows/ci.yml/badge.svg?branch=main" alt="tests"></a>
  <a href="https://pypi.org/project/own-baseline/"><img src="https://img.shields.io/pypi/v/own-baseline?label=pypi&logo=pypi&logoColor=white&color=A855F7" alt="PyPI"></a>
  <a href="https://pypi.org/project/own-baseline/"><img src="https://img.shields.io/pypi/pyversions/own-baseline?logo=python&logoColor=white" alt="Python versions"></a>
  <a href="https://github.com/IskakovDamir/ownbaseline/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<br>
  <a href="https://iskakov.dev/papers/ownbaseline.pdf"><img src="https://img.shields.io/badge/paper-PDF%2C%2045%20pages-A855F7?logo=adobeacrobatreader&logoColor=white" alt="the paper, PDF, 45 pages"></a>
  <a href="https://colab.research.google.com/github/IskakovDamir/ownbaseline/blob/main/notebooks/quickstart.ipynb"><img src="https://img.shields.io/badge/open%20in-Colab-F9AB00?logo=googlecolab&logoColor=F9AB00" alt="Open in Colab"></a>
  <a href="https://github.com/IskakovDamir/ownbaseline/blob/main/experiments/specificity/PREREG.md"><img src="https://img.shields.io/badge/preregistered-7%20plans-C7F23C" alt="preregistered: 7 plans"></a>
  <a href="#reproduction"><img src="https://img.shields.io/badge/reproduce.py-self--test%20in%20CI-C7F23C" alt="reproduce.py self-test runs in CI"></a>
  <a href="https://github.com/IskakovDamir/ownbaseline/blob/main/data/README.md"><img src="https://img.shields.io/badge/data-public%20GEO-blue" alt="data: public GEO accessions"></a>
  <a href="#known-defects"><img src="https://img.shields.io/badge/known%20defects-recorded%2C%20not%20patched-orange" alt="known defects: recorded, not patched"></a>
  <a href="https://github.com/IskakovDamir/ownbaseline/blob/main/CITATION.cff"><img src="https://img.shields.io/badge/cite-CITATION.cff-blue" alt="cite: CITATION.cff"></a>
</p>

# own-baseline

own-baseline is a Python package and command-line tool for single-cell RNA-seq
(`pip install own-baseline`, command `ownbaseline`). It tests whether a potency
or stemness score orders cells beyond its primitive, the low-order statistic the
score is built on. For CytoTRACE that is the number of genes detected, and for
SCENT signalling entropy and CCAT the correlation of a cell's expression with
interaction-network node degree. The score's ranks are residualized on the
primitive's ranks, and Kendall τ_b between the residual and an ordinal fixed
before sequencing is read against a measured null floor.

A single-cell potency or stemness score is usually validated by correlating it
against a pseudotime, a marker panel, or a known hierarchy. A score that
restates sequencing depth passes that test, and so does a score carrying real
ordering information: the criterion cannot separate them, because the thing
you are worried about correlates with the gold standard too. This repository
implements the check that can: residualize the score on the low-order statistic
its own authors say it approximates, and ask whether what is left still orders
cells. A score at rank correlation 0.93 with node degree can still order cells
well beyond it, and pairwise correlation does not tell you whether it does, or
in which direction. Also in here: the field audit that came out of applying
this to fourteen published unsupervised scores, and the finding that our own
strong hypothesis, that the whole family reduces to a fixed low-order
statistic, is false: four scores clear it whichever way a score's direction is
read.

## One run

<p align="center"><a href="https://iskakov.dev/ownbaseline"><picture><source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/check-phone.svg"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/check.svg" width="820" alt="A real run of ownbaseline check: a score built as 0.93 times its primitive plus noise. Conditional skill +0.0187 against its own floor +0.0479, DOES NOT CLEAR."></picture></a></p>

A score built as 0.93 times its primitive plus noise. It tracks the ordinal at
AUC 0.800 and still fails: the residual is +0.0187 against a floor of +0.0479.
The fixture is synthetic and seeded, so every number in the run reproduces;
the other verbs are on [iskakov.dev/ownbaseline](https://iskakov.dev/ownbaseline).

## The decision rule

The paper's rule: sign the score so that its Spearman correlation with the
ordinal is positive, remove from its ranks a least-squares fit on the ranks of
its primitive (the low-order statistic its own authors say it is built on), and
take Kendall τ_b between that residual and an ordinal fixed before sequencing.
The value counts only when it lies above the estimator's measured null floor:
the 97.5th percentile of the same statistic on simulated cells whose score
carries nothing beyond its primitive, at the value's own n, kernel,
score-primitive rank correlation and covariate count. The floors come from the
200-seed grid in `experiments/null_calibration/` and ship with the package.

```bash
ownbaseline check cells.h5ad \
    --score   obs:cytotrace \
    --ordinal obs:stage \
    --ordinal-source experimental \
    --json report.json
```

`check` prints each value beside its own floor and says `CLEARS` or
`DOES NOT CLEAR`, or `NO VERDICT` where no floor is available for that value.
`ownbaseline floors --n 39505 --rho 0.4844` prints a single
floor, +0.0247, the one CytoTRACE is read against on the zebrafish ordinal; from
Python, after `import own_baseline.floors`,
`own_baseline.floors.floor(39505, 0.4844)["floor"]` returns the same number.

**Retired: the interval rule.** `conditional_skill_report` and the run record
still print the labels of an earlier rule, which asked for a bootstrap interval
excluding zero under two kernels: `TAUTOLOG`, `ADDS-BEYOND`, `SIGN-FLIPPED` and
`INCONCLUSIVE-kernel-disagree`. Do not decide with them. On synthetic data whose
true conditional skill is zero, that rule fired in 40 of 40 replicates at the
cells where CytoTRACE, signalling entropy and ORIGINS sit. The interval's
half-width falls as one over the square root of n, and the floor falls more
slowly, from 0.0741 at n = 500 to 0.0228 at n = 127,607 for τ_b at rho = 0.5,
so at n = 39,505 the τ_b floors sit two to seven interval half-widths above
zero.

## Terms

**Primitive.** The low-order statistic a score is built on, as its own authors
declare it. The command computes four: gene count, `PCC(x, degree)` (the Pearson
correlation between a cell's expression and interaction-network node degree),
Shannon entropy of the expression vector, and log library size.

**Ordinal.** The ordering a score is judged against, fixed before sequencing,
such as the stage an embryo was collected at.

**Conditional skill.** Kendall τ_b between the ordinal and the residual left
after the score's ranks are fitted on the primitive's ranks.

**Null floor.** The 97.5th percentile of conditional skill on simulated cells
whose score carries nothing beyond its primitive. Each value has its own floor:
0.0247 for CytoTRACE on GSE106474 and 0.0311 for SR.

**joint-4.** Conditional skill with the four primitives removed at once.

What a verdict does not mean is in
[docs/interpreting.md](https://github.com/IskakovDamir/ownbaseline/blob/main/docs/interpreting.md).

## What the audit found

<p align="center"><a href="https://iskakov.dev/ownbaseline"><picture><source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/audit-phone.svg"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/audit.svg" width="820" alt="The field audit on GSE106474: nine scores, Kendall tau-b after removing each score's own primitive, against its own null floor, switching between the registered reading and the authors' direction. Six clear under each reading, four under both."></picture></a></p>

On a 12-stage visually staged zebrafish ordinal (GSE106474, 39,505
whole-embryo cells), nine scores could be placed on the ordinal. The value is
Kendall τ_b after rank residualization on the score's own primitive, against
its own measured null floor (✓ clears it). The registered estimator reads each
score in the direction of its own correlation with the stages; published
benchmarks fix the direction from the authors' definition instead, so the
second column reads every row that way, post hoc
(`experiments/w6_direction/DEVIATIONS.md`). Six clear under each reading, and
four under both: CytoTRACE, NCG, dpath and StemFinder.

| score | primitive | τ_b, registered | τ_b, authors' direction | joint-4, registered |
|---|---|---|---|---|
| CytoTRACE v1 | gene count | 0.653 vs 0.0247 ✓ | 0.653 vs 0.0249 ✓ | 0.288 |
| SCENT SR | `PCC(x, degree)` | 0.430 vs 0.0311 ✓ | −0.430 vs 0.0326 | 0.183 |
| ORIGINS | `PCC(x, degree)` | 0.402 vs 0.0247 ✓ | −0.402 vs 0.0249 | 0.156 |
| NCG † | `PCC(x, degree)` | 0.402 vs 0.0411 ✓ | 0.402 vs 0.0414 ✓ | - |
| dpath † | Shannon entropy | 0.120 vs 0.0411 ✓ | 0.120 vs 0.0414 ✓ | 0.134 |
| StemFinder | cell-cycle gene-set score | 0.098 vs 0.0247 ✓ | 0.098 vs 0.0249 ✓ | 0.167 |
| SLICE † | Shannon entropy | −0.113 vs 0.0479 | −0.113 vs 0.0453 | - |
| CCAT | `PCC(x, degree)` | −0.221 vs 0.0115 | 0.221 vs 0.0120 ✓ | - |
| MCE | `PCC(x, degree)` | −0.490 vs 0.0325 | 0.490 vs 0.0342 ✓ | −0.131 |

† on a fixed 3,000-cell subsample, not the full 39,505. NCG is residualized on
`PCC(x, degree)` like the others; its score itself is computed on its own
gene-ontology-weighted connectome. The four rows whose value changes sign
(SCENT SR, ORIGINS, CCAT, MCE) are the scores that rise with stage on these
embryos, against their authors' polarity, as their primitive `PCC(x, degree)`
does.

These counts rest on one experiment. The ground truth here is three staged
series, two of them zebrafish, plus two sorted atlases with four and three tiers:

| series | what it is | rows run |
|---|---|---|
| [GSE106474](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE106474) | zebrafish, Drop-seq, 12 stages, 39,505 cells | nine, the audit above |
| [GSE112294](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE112294) | zebrafish, inDrops, 7 times, 36,749 cells, another laboratory | four, pre-registered before any score met a stage |
| [GSE113074](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE113074) | *Xenopus*, inDrops, 10 stages, 127,607 cells | six |

The series are those of
[Farrell et al. 2018](https://doi.org/10.1126/science.aar3131) (GSE106474),
[Wagner et al. 2018](https://doi.org/10.1126/science.aar4362) (GSE112294) and
[Briggs et al. 2018](https://doi.org/10.1126/science.aar5780) (GSE113074).

**What held on real cells and on another series** (`experiments/conditional_null/PREREG.md`,
pushed as `f8808f6` before the run):

- All six rows that clear also clear a floor measured on the real cells, by
  permuting the score among cells of nearly equal primitive value, and they stay
  above it after any curve of the primitive is removed.
- StemFinder and dpath fall below their floors inside sequencing batch DS4, at
  −0.049 and −0.037. CytoTRACE, SR, ORIGINS and NCG stay above theirs in all four
  batches.
- On GSE112294 the verdicts of CytoTRACE (0.823), SR (0.214), CCAT (−0.190) and
  MCE (−0.219) replicate. Two direction predictions failed: gene count does not
  fall with stage there, and CytoTRACE runs at Spearman +0.939 with stage against
  −0.933 on GSE106474, the opposite of its authors' direction.
- On all three series SR clears `PCC(x, degree)` against its authors' direction
  and CCAT's residual is negative.

**The strong hypothesis is refuted.** This work set out to show that every
unsupervised potency score is a reparametrization of a fixed low-order
statistic, so that agreement between such scores across contexts is guaranteed
by construction rather than by biology. That holds for CCAT, its primitive by
definition, and for StemID and cmEntropy, which equal a transcriptome entropy
by construction; SLICE leaves a negative residual against its own under either
reading. It is false for CytoTRACE and NCG; dpath and StemFinder clear under both readings
and fail inside one batch, so the claim is withdrawn for them. CytoTRACE keeps τ_b
0.288 after four primitives are removed at once. The two
entropy-rate scores split: signalling entropy's residual beyond the degree
correlation runs toward the later stages and MCE's toward the earlier ones, so
the registered rule credits the first and the authors' direction the second.
MCE was registered in advance as a score that would keep skill, and under the
registered rule it does not (`experiments/w5_new_rows/REPORT.md`). What the surviving residual consists
of is open: a staged timecourse traces a developmental manifold, and a score
tracking that manifold keeps skill whether or not it measures potency in any
deeper sense.

### CytoTRACE keeps stage ordering beyond gene count, and depth sets its sign

On GSE106474 (zebrafish, 12 stages, 39,505 cells) CytoTRACE v1 keeps a Kendall
τ_b of 0.653 after rank residualization on gene count, against a floor of
0.0247, and 0.288 after four primitives are removed at once. The verdict
replicates on GSE112294, at 0.823. Most random gene sets pass the same test. Of
1,000 sets of 200 genes, 78.5 percent clear the registered floor once gene count
is removed. With four primitives removed the 97.5th percentile of those sets is
0.118, and CytoTRACE sits above it. Depth sets its sign. CytoTRACE runs at
Spearman −0.933 with stage on GSE106474 and +0.939 on GSE112294, and at −0.912
and −0.920 once every cell is drawn down to 1,000 counts.

### SCENT signalling entropy and CCAT each clear under one reading only

SCENT's signalling entropy rate (SR) and CCAT share one primitive,
`PCC(x, degree)`, computed here on STRING v12. On GSE106474 SR clears its floor
under the registered reading, at 0.430 against 0.0311, and falls below it in its
authors' direction, at −0.430 against 0.0326. CCAT is the reverse, at −0.221
against 0.0115 and 0.221 against 0.0120. The signs repeat on GSE112294 and
GSE113074, where SR reads 0.214 and 0.208 and CCAT −0.190 and −0.200. They
reverse on the later zebrafish stages of GSE223922: SR's residual is −0.141 and
CCAT's is 0.044.

## Random gene sets pass the same test

<p align="center"><a href="https://iskakov.dev/ownbaseline"><picture><source media="(max-width: 600px)" srcset="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/random-sets-phone.svg"><img src="https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/readme/random-sets.svg" width="820" alt="Nine potency scores against 1,000 random 200-gene sets on GSE106474 with four primitives removed: six sit above the sets' 97.5th percentile of +0.118, and of those CytoTRACE, ORIGINS and NCG also hold over the 28 embryo samples. The same percentile is 0.090 to 0.136 on five staged series."></picture></a></p>

78.5 percent of 1,000 random 200-gene sets keep stage ordering once gene count
is removed, and 52.6 percent once four primitives are removed at once. On four
more series, in zebrafish, *Xenopus* and mouse, most random sets clear the floor
on every primitive. Clearing the floor says that a score is not its primitive,
and nothing more.

With four primitives removed, the 97.5th percentile of the random sets sits at a
Kendall τ_b of 0.09 to 0.14 on all five series. A score adds something to
arbitrary genes only above that line.

The evidence shrinks again when stage is tested over the embryo samples it was
assigned to. Of the six scores that pass on cells, three hold over the 28
samples of the first series, and CytoTRACE alone repeats on all three zebrafish
series. On mouse embryos, which their authors timed in part from transcription,
no score beats the random sets once four primitives are removed.

| series | what it is | 97.5th percentile, four primitives removed |
|---|---|---|
| GSE113074 | *Xenopus*, 10 stages, 127,607 cells | +0.090 |
| [GSE169210](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE169210) | mouse, an embryo-resolved series timed by its authors from transcription and size, 33,700 cells | +0.105 |
| [GSE223922](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE223922) | zebrafish, 14 to 120 hpf, 40,108 cells in the first draw | +0.115 (second draw +0.118) |
| GSE106474 | zebrafish, 12 stages, 39,505 cells | +0.118 |
| GSE112294 | zebrafish, 7 times, 36,749 cells | +0.136 |

The two further series are those of
[Sur et al. 2023](https://doi.org/10.1016/j.devcel.2023.11.001) (GSE223922) and
[Mittnenzweig et al. 2021](https://doi.org/10.1016/j.cell.2021.04.004) (GSE169210).

Registered before the run in
[`experiments/specificity/PREREG.md`](https://github.com/IskakovDamir/ownbaseline/blob/main/experiments/specificity/PREREG.md) and its
dated amendments; results in
[`REPORT.md`](https://github.com/IskakovDamir/ownbaseline/blob/main/experiments/specificity/results/REPORT.md),
[`REPORT_breadth.md`](https://github.com/IskakovDamir/ownbaseline/blob/main/experiments/specificity/results/REPORT_breadth.md) and
[`SCORECARD.md`](https://github.com/IskakovDamir/ownbaseline/blob/main/experiments/specificity/results/SCORECARD.md).

## Paper

*Random gene sets pass the test single-cell potency scores pass: five staged
embryo series set the bar.* The PDF, 45 pages:
[iskakov.dev/papers/ownbaseline.pdf](https://iskakov.dev/papers/ownbaseline.pdf).

Its numbers are those of tag `preprint-2026-11-05`: commit `e44b9d8`, the
stage-gap and per-transition concordances of the paper's Appendix B
(`experiments/stage_gap/`), and the checks on real cells and the third staged
series of Appendix J (`experiments/conditional_null/`, `experiments/wagner2018/`).
No registered number changed. The cross-cancer transfer
test of Appendix H was run in a notebook from inputs prepared from GSE150949 and
GSE223003 and is
not in this repository. `python3 reproduce.py --ledger` lists what regenerates
here and what does not.

[![The own-baseline test and the field audit, 25 seconds](https://raw.githubusercontent.com/IskakovDamir/ownbaseline/main/docs/media/overview.gif)](https://cdn.jsdelivr.net/gh/IskakovDamir/ownbaseline@preprint-2026-10-21/docs/media/overview.mp4)

## Quick start

```bash
pip install own-baseline            # the diagnostic, the command and the null grid
```

Or in the browser, nothing installed: [`notebooks/quickstart.ipynb`](https://github.com/IskakovDamir/ownbaseline/blob/main/notebooks/quickstart.ipynb)
builds a seeded fixture with a known answer and runs `check` on it,
[open in Colab](https://colab.research.google.com/github/IskakovDamir/ownbaseline/blob/main/notebooks/quickstart.ipynb).

Reading a `.h5ad` needs `anndata`, which comes with
`pip install "own-baseline[full]"`. With the base install, pass `--score`,
`--ordinal` and at least one primitive, for example `--gene-count`, as
single-column `.csv` or `.npy` files.

For the audit, the figures and the reproduction chain, work from the
repository:

```bash
git clone https://github.com/IskakovDamir/ownbaseline
cd ownbaseline
pip install -e ".[full]"
```

### From the command line

The `check` command is the one under [The decision rule](#the-decision-rule).
All four primitives are computed unless you name one, the direction check is
printed above the first margin, and every value is placed against its own
measured null floor rather than against zero. `--ordinal-source` is required and
has no override: a pseudotime computed from the same expression matrix is not a
valid ground truth for this test, because the primitive predicts such an ordinal
too.

```
ownbaseline floors --n 39505 --rho 0.4844      # the floor at that cell
ownbaseline floors --list-grid                 # the design points that exist
ownbaseline primitives cells.h5ad --out prim.npz
ownbaseline check cells.h5ad --primitives prim.npz ...   # reuse them
ownbaseline verify report.json --rerun ...     # does it still reproduce?
```

`primitives` and `check` compose: the first writes the low-order statistics once,
with a provenance block recording the scaffold, the cell count and a sha256 per
vector, and the second reads them back instead of recomputing. On a large atlas
the degree primitive is the expensive one and this is the difference between
computing it once and computing it on every run.

The degree primitive needs an interaction scaffold, and none is bundled: an
interactome is 100 MB and the release you pick changes every number downstream.
Point at a prepared one, or build it from a STRING release:

```bash
ownbaseline check cells.h5ad --score obs:ccat --ordinal obs:stage \
    --ordinal-source experimental \
    --scaffold prepared/string_cols.npz          # col_idx + degree
# or
    --string-links protein.links.v12.0.txt.gz \
    --string-info  protein.info.v12.0.txt.gz --string-threshold 700
```

`--scaffold-null N` adds the degree-permutation control on top of that: it
permutes which gene carries which degree, keeping the degree distribution and
breaking the correspondence with expression. Read what it prints before using
the number. On the systems in the paper the gap over that null was 0.120 for
signalling entropy against 0.057 for CCAT while both sat at a conditional skill
of about zero, so a rule reading a larger gap as more genuine would have ranked
them backwards, and the entropy null itself came in below chance. It is a
diagnostic. The own baseline is the arbiter.

`check` wraps the conditional-skill estimator. It does not wrap
`run_own_baseline`, the marginal gap, which returns a pass when a score is
indistinguishable from gene counts and on sorted haematopoietic progenitors
returns the exact false positive this repository exists to expose.

Conventions, mostly from [clig.dev](https://clig.dev):

| | |
|---|---|
| `--json -` | the report on stdout, everything human on stderr, so it pipes |
| `-q`, `--quiet` | the numbers and the verdict, nothing else, and no progress line |
| `--no-color` | as does `NO_COLOR`; `FORCE_COLOR` turns it back on |
| exit `0` / `1` / `2` / `3` | ran / something asked for was unavailable / bad command line / the test does not apply |

Both global flags are accepted before or after the verb. Colour is off already
when stdout is not a terminal. The bootstrap prints its progress on stderr and
Ctrl-C stops it without a traceback and without writing anything.

### From Python

```python
import numpy as np
from own_baseline import conditional_skill_report

rng = np.random.default_rng(0)
n = 2000
ordinal   = np.floor(6 * rng.random(n))                # stage, fixed before sequencing
primitive = ordinal + 1.5 * rng.standard_normal(n)     # e.g. gene count per cell

honest = 0.5 * primitive + 1.5 * ordinal + rng.standard_normal(n)
sham   = np.exp(primitive / 2)                         # a monotone function of it

conditional_skill_report(honest, ordinal, {'gene_count': primitive},
                         score_name='honest_score', n_boot=(100, 300))
conditional_skill_report(sham, ordinal, {'gene_count': primitive},
                         score_name='sham_score', n_boot=(100, 300))
```

Real output, about thirty seconds:

```
[conditional_skill] score=honest_score n=2000

  vs primitive: gene_count
    scipy_weightedtau  marginal gap  +0.1015   conditional skill +0.6786 CI[+0.6421,+0.7009]  ADDS-BEYOND
    kang_wdm_taub      marginal gap  +0.2365   conditional skill +0.4316 CI[+0.4100,+0.4506]  ADDS-BEYOND
    => ADDS-BEYOND
[conditional_skill] score=sham_score n=2000

  vs primitive: gene_count
    scipy_weightedtau  marginal gap  +0.0000   conditional skill -0.5439 CI[-0.5770,+0.8255]  TAUTOLOG
    kang_wdm_taub      marginal gap  +0.0000   conditional skill -0.6385 CI[-0.6491,+0.6440]  TAUTOLOG
    => TAUTOLOG
```

The labels at the end of each line are the retired interval rule's (see
[The decision rule](#the-decision-rule)); read the conditional-skill values
against their floors.

`sham_score` is `exp(primitive / 2)`, a monotone reparametrization that adds
nothing. Its marginal gap is exactly `+0.0000` and its verdict is `TAUTOLOG`,
which is right. But its conditional skill should also be zero and reports
`-0.54` with an interval spanning most of [-1, 1]. That is not a near-null; it
is rounding debris being scored as signal, and the verdict lands correctly only
because the interval is wide enough to contain zero anyway. It is a real defect
in the estimator, documented below as **F-2**, recorded by a failing test, and
deliberately not patched.

Two entry points, in increasing strength:

| function | what it computes | when to use it |
|---|---|---|
| `run_own_baseline(adata, score, gt_ordinal)` | marginal gap `tau(score, ordinal) − tau(gene counts, ordinal)` | a first look; one line, no residualization |
| `conditional_skill_report(score, ordinal, primitives)` | rank residual on the primitive(s), scored under two kernels with a bootstrap interval, plus a direction check | the test the paper reports, **prefer this** |
| `conditional_null.permutation_floor(score, ordinal, primitive)` | conditional skill against a floor measured on your own cells, no simulator | when the curve of a score on its primitive could be shared with the ordinal |
| `conditional_null.gcm(score, ordinal, primitives)` | the generalised covariance measure, for several primitives at once | where strata are too wide; read at T > 3.5 |

The marginal gap reports `REDUCES-TO-PRIMITIVE`, `INCONCLUSIVE` or
`ADDS-BEYOND-PRIMITIVE`. The conditional-skill labels `TAUTOLOG`,
`ADDS-BEYOND`, `SIGN-FLIPPED` and `INCONCLUSIVE-kernel-disagree` belong to the
retired interval rule. For a verdict, read the value against its floor, as
`ownbaseline check` does.

**Check the direction before reading any margin.** In sorted haematopoietic
progenitors the gene-count primitive orders cells *below* chance: HSCs carry a
median 916 detected genes, the GMPs below them carry 1,404, and the primitive
scores AUROC 0.378 against the known hierarchy. A score that beats that
baseline has supplied a sign correction, and nothing in the margin
shows it. `conditional_skill_report` flags this; `run_own_baseline` does not.

## Install

```bash
pip install own-baseline
ownbaseline                         # the splash, and the four verbs
```

`own-baseline` is the canonical name on PyPI. The alias package `iskakov`
depends on it and installs the same command line under a second name, `iskakov`.

For an isolated install that brings its own interpreter and puts the command on
your PATH without touching a project environment:

```bash
uv tool install --python 3.12 own-baseline
```

`uv` is a single binary: `curl -LsSf https://astral.sh/uv/install.sh | sh`, or
`brew install uv`. Pinning 3.12 keeps you on interpreters that numpy, scipy and
scikit-learn publish wheels for; on a very new Python those wheels may not exist
yet and pip will try to build them from source.

For what is on `main` and not yet released:

```bash
pip install "git+https://github.com/IskakovDamir/ownbaseline"
```

<details>
<summary><b>If the install fails, or the command is not found</b></summary>

**If the install succeeds and the command is still not found.** `pip install`
outside a virtual environment falls back to a user install, and on macOS that
puts the command in `~/Library/Python/3.x/bin`, which is not on `PATH` by
default; `python3 -m site --user-base` prints the directory and the command sits
in its `bin`. Run it by full path, add that directory to `PATH`, or use `uv`
above, which puts the command somewhere already on it.

**If pip says it cannot find the package at all.** An error naming
`Requires-Python >=3.9` followed by `No matching distribution found` means the
pip you ran belongs to a Python older than 3.9, which by now means an interpreter
that has been out of support for over two years; `python3 -V` says which one you
have. Nothing
is wrong with the package, and pip is reporting this correctly. `uv` above fixes
it without touching that interpreter, because it brings its own.

**If pipx fails before it reaches this package.** An error naming `ensurepip`,
`venv --clear` or pipx's own `shared` directory is pipx repairing itself against
a Python it cannot bootstrap, and it happens with the newest Homebrew Python.
Nothing here is involved yet. Either use `uv` above, or repair pipx:

```bash
rm -rf "$HOME/Library/Application Support/pipx/shared"
brew install python@3.12
pipx install --python "$(brew --prefix python@3.12)/bin/python3.12" own-baseline
```

Or skip the installers entirely, which always works:

```bash
python3 -m venv ~/.ownbaseline
~/.ownbaseline/bin/pip install own-baseline
~/.ownbaseline/bin/ownbaseline
```

</details>

That gives the diagnostic, the shipped 200-seed null grid and the `ownbaseline`
command. It does not give the reproduction chain: the score implementations,
`reproduce.py` and the figures need the `[full]` extra and the datasets, which
is what the rest of this section is about.

From a checkout:

```bash
pip install -e ".[full]"            # or: pip install -r requirements.txt
python3 tests/run_tests.py          # 38 pass, 1 known defect (F-2), 0 fail
python3 reproduce.py --self-test    # the whole reproduction chain, synthetic data
```

Verified on 2026-08-13 in a fresh `python3 -m venv` on macOS 15 (Darwin
25.2.0), Python 3.14.3, resolving from PyPI: `numpy 2.5.2`, `scipy 1.18.0`,
`scikit-learn 1.9.0`, `pandas 3.0.5`, `matplotlib 3.11.1`, `anndata 0.13.2`.
Both commands above pass in that environment, and `import own_baseline` works
from outside the repository directory.

The core diagnostic needs only numpy, scipy and scikit-learn: with just those
three installed, 35 of the 38 tests pass and the 3 that do not are the ones
constructing an `AnnData`. `pandas`, `anndata` and `matplotlib` come with the
`[full]` extra and are needed by `.h5ad` input, the score implementations,
`reproduce.py` and the figures. `requirements.txt` pins the exact versions the
audit ran on.

The test suite needs no test runner: `python3 tests/run_tests.py` uses only the
runtime dependencies. `pytest tests/` runs the same functions together with
`tests/test_cli.py` and `tests/test_mce.py`.

Two environment variables control where anything is read or written; both
default inside the repository and both defaults are git-ignored:

| variable | default | what lives there |
|---|---|---|
| `OWNBASELINE_DATA_ROOT` | `<repo>/data/runs` | downloads, prepared matrices, results |
| `OWNBASELINE_SCRATCH` | `<repo>/data/scratch` | the R ↔ Python handoff |

The R score wrappers read the same two variables, so setting them once lines
both halves up.

## Reproduction

```bash
python3 reproduce.py --ledger        # what can and cannot be regenerated
python3 reproduce.py --self-test     # whole chain on synthetic data, ~1 min
python3 reproduce.py                 # download ~135 MB and run
```

**Reproducible end to end**, from public accessions with `pip` and no R: the
three primitives (gene count, `PCC(x, degree)` on STRING v12, Shannon entropy),
**CytoTRACE v1** (the full MVG → GCS → NNLS → Markov-diffusion port in
`scores/cytotrace_full.py`), and **SCENT's SR and CCAT** (the Python
implementations in `own_baseline/potency_metrics.py`).

On 2026-08-13 `reproduce.py` downloaded
GSE106474 and STRING v12, rebuilt the scaffold, prepared **39,505 cells across
12 stages**, the paper's n exactly, and regenerated four rows of the headline
table. They match the values behind the manuscript to every digit reported,
including both bootstrap bounds under both kernels:

| row | τ_b (reproduced) | 95% CI | weighted τ | 95% CI | τ_b floor | verdict |
|---|---|---|---|---|---|---|
| CytoTRACE v1 \| gene count | +0.6531 | [+0.6479, +0.6579] | +0.7901 | [+0.7672, +0.8067] | 0.0247 | CLEARS |
| SR \| `PCC(x, degree)` | +0.4300 | [+0.4248, +0.4350] | +0.7366 | [+0.7174, +0.7611] | 0.0311 | CLEARS |
| SR \| CCAT | +0.4678 | [+0.4626, +0.4727] | +0.7522 | [+0.7347, +0.7766] | 0.0311 | CLEARS |
| CCAT \| `PCC(x, degree)` | −0.2209 | [−0.2267, −0.2151] | +0.1716 | [+0.1186, +0.2104] | 0.0115 | DOES NOT CLEAR |

The verdict is τ_b against its own floor, the statistic and the rule the paper
reports, as `experiments/null_calibration/results/report.txt` (section 2) gives
them. The retired interval rule labelled the first three rows `ADDS-BEYOND` and
the CCAT row `INCONCLUSIVE-kernel-disagree`.

That is the audit's largest effect (CytoTRACE, τ_b 0.653), the signalling-entropy
row (SR, 0.430), and the CCAT row the reduction thesis survives on. Read the last row with the scope note above and defect **F-2**
below in mind: the two kernels disagree at a near-null, and that disagreement is
also the signature of the F-2 artefact.

**Not reproducible here, and why.** Nothing below is silently skipped;
`reproduce.py` names the blocker for each.

| row | blocker |
|---|---|
| ORIGINS (τ_b 0.402) | needs `diff_edges.tsv`, `ORIGINS::differentiation_edges` dumped to TSV by hand. No script in this repository writes it. |
| SLICE (ρ 0.932) | needs the SLICE R package and its bundled `hs_kappasim.rda`; nothing here fetches it |
| dpath (τ_b 0.120) | GitHub-only R package with a documented R ≥ 4.2 incompatibility |
| NCG (τ_b 0.402) | needs the NCG repo cloned **with Git-LFS**; a plain clone yields pointer files |
| MCE (τ_b −0.490) | runs separately: `experiments/w5_new_rows`, a Python port (`scores/mce.py`) of the authors' MCE.m, checked against MCE.m in GNU Octave; MCE.m itself is not redistributed |
| StemFinder (τ_b 0.098) | runs separately: `experiments/w5_new_rows`, the authors' R functions with Seurat 5 |
| mRNAsi, FitDevo | trained, outside the unsupervised count; boundary results in `experiments/w5_new_rows/REPORT.md` |
| SPIDE | source paper paywalled; a first-party implementation is public and was not run here |
| scEnergy | requires MATLAB |
| StemID, cmEntropy | never measured. They equal a transcriptome-entropy primitive by construction, and the manuscript declines to report a number for them. |

The R cross-check of the Python SR/CCAT implementations is a separate matter
from computing them. The published check, Spearman 1.000, max |Δ| < 1e-13 on a
500-cell subsample, needs the SCENT R sources placed under
`$OWNBASELINE_SCRATCH/scent_src`, which no script here does.
`reproduce.py` computes the scores and writes `scent_validation.json` recording
that the cross-check was **skipped**.

`reproduce.py` writes `reproduction/table.md`, `reproduction/table.json` and a
regenerated Figure 2 carrying the bootstrap intervals, computed from the raw
data. `figures/make_paper_a_figures.py` is a separate path to the same numbers:
it reads the frozen run artefacts in `data/run_record/` and does not recompute
anything. The two agree where both can run; `make_paper_a_figures.py
--crosscheck` prints the comparison.

## Scope, what this does not do

- **It does not tell you a score is good.** Clearing the floor means the score
  orders cells beyond the primitive you named. It says nothing about whether
  what it adds is potency rather than, say, position on a developmental
  manifold.
- **It controls one realization of a primitive.** The degree
  primitive here is STRING v12 at confidence 700, largest connected component.
  Threshold and interactome were not varied, and part of any residual may be
  scaffold error.
- **The shipped floor only nulls monotone reparametrizations.** If a score and the
  ordinal share a curved function of the primitive, the residual keeps the curve.
  On simulated cells with zero true conditional skill the shipped floor was cleared
  in every replicate. `own_baseline.conditional_null.permutation_floor` measures a
  floor on your own cells and held at 2 to 5 percent in the same test.
- **It rests on few ordinals.** Three staged series and two sorted atlases, and the
  counts above come from one. Nobody outside the author has rerun the audit.
- **A score reducing to a fifth statistic passes.** The primitive set is four,
  each declared by the scores' own authors.
- **It needs a score-independent ordinal.** A pseudotime derived from the same
  expression matrix is not one.
- **It is calibrated on development and the scores are deployed on patients.**
- **Most random gene sets clear the same floor.** A claim that a score carries
  biology needs three things that correlation with labels does not supply:
  random gene sets as negative controls, the sample as the unit of inference,
  and equal sequencing depth. See
  [Random gene sets pass the same test](#random-gene-sets-pass-the-same-test).

## Known defects

<details>
<summary>F-2 in the estimator, the figure provenance fix, two residual implementations</summary>

Recorded rather than patched, because fixing them changes what the estimator
computes and the manuscript's numbers were traced to specific runs of it. Full
detail in the commit messages and in `tests/test_estimator.py`.

- **F-2: an exact monotone function of its primitive does not yield zero
  conditional skill, and both kernels are affected.** When
  `rank(score) == rank(primitive)` the least-squares fit is exact and the
  residual is the rounding error of the subtraction, on the order of 1e-12
  rather than an exact zero. That debris is monotone in the primitive rank, so
  what a kernel returns depends on whether the primitive predicts the ordinal.
  Where it does not, `weightedtau` returns up to +0.51 and Kendall τ_b stays
  near 0.02, which is the fixture the defect was first recorded on and the
  narrower case. Where it does, which is Null B and the case the audit faces,
  the debris inherits that association: across four seeds and two coupling
  strengths both kernels reach 0.87 in magnitude, with a sign that changes with
  the seed. How large it is depends on the machine, because the debris is the
  rounding error of a LAPACK least-squares fit: aarch64 with numpy 2.2 puts all
  sixteen measured cells between 0.71 and 0.87, x86_64 with numpy 2.4 puts
  fourteen there and collapses two toward zero. The sham score in the Quick
  start above is this: its τ_b of −0.6385 is the rounding pattern.
  `own_baseline.cli.residual_scale` returns `max|resid| / (eps * n)` together
  with the residual; real residuals sit at 1e14 to 1e15 on that ratio, and
  `ownbaseline check` refuses to report a value below 1e6. Both residual
  implementations in this repository have the defect. Pinned by
  `tests/test_estimator.py::test_exact_monotone_function_of_primitive_has_zero_conditional_skill`
  (expected failure) and by four tests in `tests/test_cli.py`.
- **`figures/make_paper_a_figures.py` contained no data, fixed 2026-08-29.**
  Every number in it was a hard-coded literal; it had no `errorbar` call despite
  the caption promising bootstrap intervals; it plotted StemID and cmEntropy at
  ρ 0.990 / 1.000 and skill 0.000 as though measured, and NCG as pending
  although the fix-1 run had measured it at τ_b +0.402. The script now reads
  every value from `data/run_record/` and the null-calibration grid, draws each
  score against its own measured null floor, and emits its caption and a
  `fig2_values.json` from what it actually drew. The old script is kept at
  `figures/deprecated/make_paper_a_figures.py` because its literals are what the
  pre-2026-08 manuscript was traced against. The full before/after is
  `04-experiments/2026-08-29-figure2-provenance.md` in the vault.
- **The figures were drawn to no page in particular, retargeted 2026-08-30.**
  Figure 2 was emitted at 10.2 in wide, 1.6× a 6.50 in text block and 3.2× a
  column, with a side table set in 6.6pt type. Nothing about it survived
  reduction to a 3.18 in column. Figure 2 is now two variants built from the
  same rows: `fig2_body.pdf` at 3.18 in (`\begin{figure}`) carrying only the
  nine scores measured on the ordinal, and `fig2_appendix.pdf` at 6.50 in
  (`\begin{figure*}`) carrying all seventeen rows, the n / floor / verdict table
  and the by-construction band. Figure 3 is 6.50 in for a reason the script
  measures and prints on every run: side by side in one column each panel gets
  1.03 in of plotting width, against 2.06 in for its own title and 1.38 in for
  its two x tick labels at 7pt. Nothing on a retargeted figure is set below 7pt
  at final size, `FontLedger.enforce()` raises rather than shrinking type,
  and each run reads the rendered width back out of the written PDF's MediaBox
  instead of trusting the `figsize` it asked for.
- **Two residual implementations, not merged.** `rank_resid_multi` (the
  track-2 estimator) fits by least squares with an intercept and takes any
  number of covariates. `rank_residual` / `_rank_residual` in `experiments/w4`,
  `experiments/track4`, `experiments/cytotrace_v1` and `experiments/stemsc`
  uses `np.cov(...)/np.var(...)`, which mixes `ddof=1` with `ddof=0` and so
  inflates the slope by `n/(n−1)`, fits no intercept, and takes exactly one
  covariate. Measured difference: |Δτ| up to 3.7e-2 at n = 106, 6.6e-07 at
  n = 39,505. Which is correct is a numerical decision for the authors.

</details>

## Layout

<details>
<summary>what lives where</summary>

```
own_baseline/          the diagnostic
  own_baseline.py      marginal gap + the Test-A error-model flavour
  conditional_skill.py the track-2 conditional-skill estimator + the report API
  potency_metrics.py   the primitives, and SR / CCAT / CytoTRACE reimplementations
  atlas_run/wdm_tau.py Kang wdm weighted-Kendall kernel (== R wdm::wdm)
  paths.py / paths.R   where this repository reads and writes
  synthetic.py         synthetic generators for the self-tests
scores/                score implementations used in the audit
  cytotrace_full.py    R-faithful CytoTRACE v1 port
  run_*.R              wrappers calling the real R packages
experiments/           every run script, verbatim, organized as it was run
  stage_gap/           Table A2 and Appendix B of the paper, checked against them
figures/               the manuscript's figures, each value read from a run artefact
  make_paper_a_figures.py  reads data/run_record/ + the null-calibration grid
  fig2_body.pdf        3.18 in, figure  - the 9 rows measured on the ordinal
  fig2_appendix.pdf    6.50 in, figure* - all 17 rows, side table, band
  fig3.pdf             6.50 in, figure* - the depth confound, two panels
  fig2_*_caption.txt   the caption generated for each variant
  deprecated/          the pre-2026-08-29 literal-only script, kept for tracing
tests/                 known-answer tests
docs/media/            the overview video (MP4) and its GIF
reproduce.py           the reproduction entry point
data/README.md         accessions and how to fetch them; no data is stored here
data/run_record/       the run JSONs the figures read, committed verbatim
```

`experiments/` is a run record, not a library. Those scripts are kept as they
ran, apart from the path changes needed to make them import off the author's
machine.

</details>

## Scores and their sources

The audit ran published implementations wherever one existed: SCENT
([`aet21/SCENT`](https://github.com/aet21/SCENT), SR + CCAT), SLICE ([`xu-lab/SLICE`](https://github.com/xu-lab/SLICE)), dpath ([`gongx030/dpath`](https://github.com/gongx030/dpath)),
ORIGINS ([`danielasenraoka/ORIGINS`](https://github.com/danielasenraoka/ORIGINS)), NCG ([`Xinzhe-Ni/NCG`](https://github.com/Xinzhe-Ni/NCG)). CytoTRACE v1 is a
port of the Gulati 2020 R algorithm. The SR, CCAT and ORIGINS **Python**
implementations were checked against the R packages on a 500-cell subsample
before use at scale, SR and CCAT to machine precision (Spearman 1.000,
max |Δ| < 1e-13), ORIGINS to rank agreement only (Spearman 1.000).

The fourteen unsupervised scores, and three rows outside that class, as the
paper's audit table places them:

| score | primitive | placement | source |
|---|---|---|---|
| CytoTRACE v1 | gene count | ordinal | [Gulati et al. 2020](https://doi.org/10.1126/science.aax0249) |
| ORIGINS | `PCC(x, degree)` | ordinal | [Senra et al. 2022](https://doi.org/10.1016/j.mex.2022.101778) |
| NCG | `PCC(x, degree)` | ordinal † | [Ni et al. 2022](https://doi.org/10.1109/TCBB.2021.3112951) |
| SR, signalling entropy (SCENT) | `PCC(x, degree)` | ordinal | [Teschendorff and Enver 2017](https://doi.org/10.1038/ncomms15599) |
| MCE | `PCC(x, degree)` | ordinal | [Shi et al. 2020](https://doi.org/10.1093/bib/bby093) |
| SPIDE | - | no measurement | [Zheng et al. 2023](https://doi.org/10.1016/j.ymeth.2023.11.006) |
| dpath | Shannon entropy | ordinal † | [Gong et al. 2017](https://doi.org/10.1038/ncomms14362) |
| SLICE | Shannon entropy | ordinal † | [Guo et al. 2017](https://doi.org/10.1093/nar/gkw1278) |
| scEnergy | - | no measurement | [Jin et al. 2018](https://doi.org/10.1093/bioinformatics/bty058) |
| StemID | Shannon entropy | equal by construction | [Grün et al. 2016](https://doi.org/10.1016/j.stem.2016.05.010) |
| cmEntropy | Shannon entropy, top 1,000 genes | equal by construction | [Kannan et al. 2021](https://doi.org/10.1371/journal.pcbi.1009305) |
| CCAT | `PCC(x, degree)` | ordinal | [Teschendorff et al. 2021](https://doi.org/10.1093/bioinformatics/btaa987) |
| StemFinder | cell-cycle score | ordinal | [Noller and Cahan 2024](https://doi.org/10.1093/bib/bbae536) |
| StemSC | gene-pair order fraction | sorted atlases only | [Zheng et al. 2022](https://doi.org/10.1186/s13287-022-02803-5) |
| mRNAsi | joint set | boundary row, trained | [Malta et al. 2018](https://doi.org/10.1016/j.cell.2018.03.034) |
| FitDevo | joint set | boundary row, trained | [Zhang et al. 2022](https://doi.org/10.1093/bib/bbac293) |
| CytoTRACE 2 | - | outside the class, supervised | [Kang et al. 2025](https://doi.org/10.1038/s41592-025-02857-2) |

† on a fixed 3,000-cell subsample. The interaction scaffold is
[STRING](https://string-db.org) v12.

## Citation

Iskakov, D. (2026). Random gene sets pass the test single-cell potency scores
pass: five staged embryo series set the bar. Preprint.
https://iskakov.dev/papers/ownbaseline.pdf

```bibtex
@misc{iskakov2026ownbaseline,
  author = {Iskakov, Damir},
  title  = {Random gene sets pass the test single-cell potency scores pass:
            five staged embryo series set the bar},
  year   = {2026},
  note   = {Preprint. Code and run records at tag preprint-2026-11-05,
            https://github.com/IskakovDamir/ownbaseline},
  url    = {https://iskakov.dev/papers/ownbaseline.pdf}
}
```

[`CITATION.cff`](https://github.com/IskakovDamir/ownbaseline/blob/main/CITATION.cff) describes the software and names the paper as
the preferred citation; [`codemeta.json`](https://github.com/IskakovDamir/ownbaseline/blob/main/codemeta.json) carries the same
record for software archives.

## License

MIT, see [LICENSE](https://github.com/IskakovDamir/ownbaseline/blob/main/LICENSE).

<p align="center"><sub>the terminals and the charts are drawn by <code>docs/readme/make_readme_art.py</code> · <a href="https://iskakov.dev/ownbaseline">iskakov.dev/ownbaseline</a></sub></p>
