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
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.
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.
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.
What the audit found
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 | zebrafish, Drop-seq, 12 stages, 39,505 cells | nine, the audit above |
| GSE112294 | zebrafish, inDrops, 7 times, 36,749 cells, another laboratory | four, pre-registered before any score met a stage |
| GSE113074 | Xenopus, inDrops, 10 stages, 127,607 cells | six |
The series are those of Farrell et al. 2018 (GSE106474), Wagner et al. 2018 (GSE112294) and Briggs et al. 2018 (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
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 | mouse, an embryo-resolved series timed by its authors from transcription and size, 33,700 cells | +0.105 |
| 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 (GSE223922) and Mittnenzweig et al. 2021 (GSE169210).
Registered before the run in
experiments/specificity/PREREG.md and its
dated amendments; results in
REPORT.md,
REPORT_breadth.md and
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.
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.
Quick start
pip install own-baseline # the diagnostic, the command and the null grid
Or in the browser, nothing installed: notebooks/quickstart.ipynb
builds a seeded fixture with a known answer and runs check on it,
open in Colab.
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:
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.
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:
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:
--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
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); 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
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:
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:
pip install "git+https://github.com/IskakovDamir/ownbaseline"
If the install fails, or the command is not found
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:
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:
python3 -m venv ~/.ownbaseline
~/.ownbaseline/bin/pip install own-baseline
~/.ownbaseline/bin/ownbaseline
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:
pip install -e ".[full]" # or: pip install -r requirements.txt
python3 tests/run_tests.py # 43 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, 40 of the 43 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
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_floormeasures 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.
Known defects
F-2 in the estimator, input checks in conditional_null, the figure provenance fix, two residual implementations
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,weightedtaureturns 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_scalereturnsmax|resid| / (eps * n)together with the residual; real residuals sit at 1e14 to 1e15 on that ratio, andownbaseline checkrefuses to report a value below 1e6. Both residual implementations in this repository have the defect. Pinned bytests/test_estimator.py::test_exact_monotone_function_of_primitive_has_zero_conditional_skill(expected failure) and by four tests intests/test_cli.py. conditional_nullanswered on inputs it could not read, fixed 2026-11-29. The five cases are in 0.2.3 on PyPI and are fixed in 0.2.4. One NaN in a covariate gave every rank of that vector NaN, the boosted fit read the column as missing, andgcm()returned the T of no covariate: on a score that is its primitive plus noise, 0.17 became 7.49 and cleared (scikit-learn 1.7.2; 1.9.1 raises by accident).permutation_floor()had no guard for F-2: forexp(p / 2)it returned the rounding debris under the least-squares residual, −0.568 on aarch64, and cleared its floor under the stratum mean, 0.063 against 0.041. A misspeltresidualwas computed asstratum_meanand returned under the name asked for. With 45 cells four of the five cross-fitted fits make no split, andgcm()cleared at T = 4.02; one stratum permutes the score across all cells. A list of numbers, an(n, k)array, a dict and an integerkeyraised errors that did not name the cause. A NaN, an unknownresidual, a training fold under 40 cells and a single stratum now raiseValueError, and an infinity is still read as the extreme rank. For a score in exact rank agreement with its primitivepermutation_floor()reports no value, asownbaseline checkdoes, and the shapes are read. The guard catches exact agreement only: with one cell ofexp(p / 2)set equal to its neighbour the score is read and clears, 0.530 against 0.001 on 600 cells. On valid input every number is unchanged: 898 results from 0.2.3 and from the fixed module agree to the last digit at an equal thread count, on Python 3.9 with the minimum dependencies and on 3.13 with the newest. With scikit-learn 1.2.2 onegcm()value moves in its fourteenth decimal with the number of threads, in both versions. Below 3,000 cellsgcm()was never calibrated. Pinned by five tests intests/test_estimator.py.figures/make_paper_a_figures.pycontained no data, fixed 2026-08-29. Every number in it was a hard-coded literal; it had noerrorbarcall 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 fromdata/run_record/and the null-calibration grid, draws each score against its own measured null floor, and emits its caption and afig2_values.jsonfrom what it actually drew. The old script is kept atfigures/deprecated/make_paper_a_figures.pybecause its literals are what the pre-2026-08 manuscript was traced against. The full before/after is04-experiments/2026-08-29-figure2-provenance.mdin 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.pdfat 3.18 in (\begin{figure}) carrying only the nine scores measured on the ordinal, andfig2_appendix.pdfat 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 thefigsizeit 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_residualinexperiments/w4,experiments/track4,experiments/cytotrace_v1andexperiments/stemscusesnp.cov(...)/np.var(...), which mixesddof=1withddof=0and so inflates the slope byn/(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.
Layout
what lives where
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.
Scores and their sources
The audit ran published implementations wherever one existed: SCENT
(aet21/SCENT, SR + CCAT), SLICE (xu-lab/SLICE), dpath (gongx030/dpath),
ORIGINS (danielasenraoka/ORIGINS), NCG (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 |
| ORIGINS | PCC(x, degree) |
ordinal | Senra et al. 2022 |
| NCG | PCC(x, degree) |
ordinal † | Ni et al. 2022 |
| SR, signalling entropy (SCENT) | PCC(x, degree) |
ordinal | Teschendorff and Enver 2017 |
| MCE | PCC(x, degree) |
ordinal | Shi et al. 2020 |
| SPIDE | - | no measurement | Zheng et al. 2023 |
| dpath | Shannon entropy | ordinal † | Gong et al. 2017 |
| SLICE | Shannon entropy | ordinal † | Guo et al. 2017 |
| scEnergy | - | no measurement | Jin et al. 2018 |
| StemID | Shannon entropy | equal by construction | Grün et al. 2016 |
| cmEntropy | Shannon entropy, top 1,000 genes | equal by construction | Kannan et al. 2021 |
| CCAT | PCC(x, degree) |
ordinal | Teschendorff et al. 2021 |
| StemFinder | cell-cycle score | ordinal | Noller and Cahan 2024 |
| StemSC | gene-pair order fraction | sorted atlases only | Zheng et al. 2022 |
| mRNAsi | joint set | boundary row, trained | Malta et al. 2018 |
| FitDevo | joint set | boundary row, trained | Zhang et al. 2022 |
| CytoTRACE 2 | - | outside the class, supervised | Kang et al. 2025 |
† on a fixed 3,000-cell subsample. The interaction scaffold is STRING 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
@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 describes the software and names the paper as
the preferred citation; codemeta.json carries the same
record for software archives.
License
MIT, see LICENSE.
the terminals and the charts are drawn by docs/readme/make_readme_art.py · iskakov.dev/ownbaseline
Metadata
Release files for own-baseline 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| own_baseline-0.2.4.tar.gz | 191.7 kB | With provenance | Details for own_baseline-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| own_baseline-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for own_baseline-0.2.4-py3-none-any.whl |
Total release size: 328.8 kB
Release files / own_baseline-0.2.4.tar.gz
| Download URL | own_baseline-0.2.4.tar.gz |
|---|---|
| Size | 191.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc594f4a81586b4b60ac9c0afa1b55d7fc9c8663bdf9385bd62acb77185c9070
|
|
BLAKE2b-256 checksum How to use checksums |
3129e03e671c5ab8564c7798c0d0b6d436743fd1808ac208ad3f2803dd0930c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / own_baseline-0.2.4-py3-none-any.whl
| Download URL | own_baseline-0.2.4-py3-none-any.whl |
|---|---|
| Size | 137.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e60cfa9751fbf4fc29104bbaf83f8ed63a78dc4647867c7a97d5bf6012360c8d
|
|
BLAKE2b-256 checksum How to use checksums |
740b71558a0d2af5924788b62161c3ea948453ff696e9190a1eb66a0c0844e97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for own-baseline 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for own_baseline-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.