Supported workflows¶
CyteArc provides complete workflows for:
cell calling from unfiltered droplet matrices, ambient RNA correction, and doublet detection within samples
scRNA-seq quality control, feature selection, normalization, graph construction, embedding, clustering, and marker discovery
scATAC-seq peak filtering, LSI-based graph construction, clustering, and gene-score analysis
CITE-seq RNA and ADT processing with weighted-nearest-neighbor integration by default and explicit shared-nearest-neighbor integration as an alternative
pseudotime ordering, expression dynamics, modules, and multi-sink fate probabilities
dataset merging, Harmony or partial-PCA correction with quantitative diagnostics, reference mapping, and label transfer
joint analysis of local or remote datasets through mounts and composite datasets
cell-cycle scoring, gene-set activity, imputation, and pseudobulk export
comparisons between conditions using biological samples, including paired donor designs
transcription-factor regulons from RNA (SCENIC), motif or binding-peak activity from ATAC (chromVAR), and co-regulated gene programs
pooled CRISPR screens: guide calling, perturbation labels, each perturbation’s effect on its target gene and its E-distance from the control cells, Mixscape’s knocked-out cells and escapers, calibrated association tests at low and high MOI, and clusters of perturbation profiles
lineage tracing and immune repertoires: clones from lineage barcodes, lineage recorder alleles and phylogenies, and mitochondrial DNA variants; clonal expansion, diversity, overlap, fate coupling, and fate bias; and TCR and BCR clonotypes, gene usage, and AIRR export
Implemented methods¶
CyteArc implements a computational stage itself when an external implementation would require materializing the full matrix or would detach the result from its inputs. It uses established libraries where they fit the streaming and provenance model. The aim is one coherent execution path, not reimplementation for its own sake.
Cell calling: EmptyDrops separates cells from empty droplets using a Good-Turing ambient profile, a Dirichlet-multinomial model, Monte Carlo p-values, and Benjamini-Hochberg FDR. The RNA pipeline can call cells separately for each capture before applying QC. See Cell calling.
Reduction and graph construction: streamed normalization, exact covariance (Gram-matrix) PCA with a randomized block Krylov solver for more than 4,096 features (details), randomized streaming LSI, approximate nearest-neighbor search, UMAP, densMAP, LocalMAP (details), and graph-based t-SNE through the optional
tsneextra (see Optional t-SNE).Feature selection: highly variable genes by CyteArc’s mean-variance trend of normalized values, by the variance-stabilizing transformation of Seurat v3 on raw counts, or by the variance of analytic Pearson residuals, with batch-aware selection in the order of Seurat’s
SelectIntegrationFeatures, and Pearson residual normalization.Batch correction and mapping: CyteArc implementations of Harmony2, which builds on the original Harmony algorithm, and of Symphony-style fixed-reference mapping, with label transfer and mapping diagnostics.
Matched multi-omics: SNN integration and Hao-inspired WNN integration for two or more assays, with WNN reporting one per-cell weight per modality.
Clustering: a native, multi-threaded implementation of Leiden community detection (details) and a native implementation of Paris hierarchical clustering with fixed and branch-adaptive cuts.
Trajectory analysis: memory-aware Population Balance Analysis, supervised terminal-state fate probabilities on a walk directed by a pseudotime or any per-cell score, initial and terminal states found from that walk by generalized robust Perron cluster analysis as in CellRank (Initial and terminal states), pseudotime aggregation and modules, and MAGIC-style graph diffusion for imputation. A per-cell potency score, the signaling entropy rate or CCAT of each cell’s expression on a STRING protein network, directs fate probabilities without named sources (Potency). Fate probabilities also weigh each cell in each lineage, as in CellRank, for lineage-resolved markers, profiles, and modules, and for lineage drivers: correlations with fate probability tested by Fisher’s z-transform. Lineage curves are fate-weighted principal curves with the pseudotime rank as their projection index, smoothed by penalized B-splines, and a Slingshot cluster tree proposes candidate sinks (Draw lineage curves and check the trajectory). Lineage membership calls each cell a lineage, shared or none: a band of fate probabilities decides between one lineage and several, and a robust limit on the distance from the curves, the weighted median plus a multiple of the weighted median absolute deviation of each lineage’s cells at the same progress, decides none. Two lineages part at the pseudotime that best splits their shared cells from those that follow only one of them.
Statistical comparisons: Mann-Whitney U, Kruskal-Wallis with optional Dunn pairwise tests, and paired Wilcoxon signed-rank tests on sample summaries. Cell-level Welch t-tests and one-way ANOVA are also available. Multiple-testing options include Benjamini-Hochberg, Holm, and Bonferroni correction. Marker search reports AUC, expression fractions, fold changes, and Mann-Whitney statistics. See Compare biological conditions across donors for a paired donor analysis and pseudobulk export.
Doublets and diagnostics: Scrublet-style doublet scores and calls simulated within each sample, cluster separability, and integration metrics informed by the scIB benchmark.
Gene sets, protein, and sample tags: AUCell and WAGGR activity scores, CITE-seq processing, and cell-hashing demultiplexing.
Ambient RNA: a CyteArc implementation of SoupX from its paper: the soup profile of empty droplets, contamination fractions from marker gene sets with cluster-level exclusion, and the removal of soup counts from each cell, rounded at random as in the paper with seeded systematic sampling so that the rounding leaves each gene’s expected removal unchanged (Ambient RNA removal). The paper’s automatic estimate, its hierarchical cell-level model, and its correction of cluster-aggregated counts are not implemented, nor is DecontX; corrected counts from CellBender import as a Cell Ranger HDF5 file.
Regulons and chromatin activity: GRNBoost2 co-expression networks and SCENIC cisTarget pruning (pySCENIC), chromVAR motif deviations with MOODS-equivalent motif matching, cistromes from motifs or CUT&RUN and ChIP-seq peaks, region-to-gene links from paired RNA and ATAC, regulon specificity and connection specificity, and co-expression gene programs.
Pooled CRISPR screens: guide calling from the guide counts by a Poisson-Gaussian mixture fitted to each guide as in crispat and pertpy, by the two-Gaussian mixture that Cell Ranger describes, by a fixed UMI floor, or by each cell’s top guide as in the maximum rule of the SCEPTRE book, whose UMI floor bounds the cell’s total guide UMIs where the floor of the other methods bounds each guide’s UMIs, with the mixtures fitted to each sample separately when asked; and guide calls imported from Cell Ranger’s CRISPR Guide Capture analysis. Either way, an artifact labels each cell with its one called guide,
"Negative"or"Multiple", with each cell’s top guide and guide UMIs read from the streamed guide counts. The mixtures are fitted to exact histograms of each guide’s UMI counts, which one streamed pass counts, so the cost of a fit follows the number of distinct counts rather than the number of cells. Perturbation labels merge the guides of each gene: a cell is labeled by the gene that its called guides target, with or without control guides,"control"with control guides only,"Negative"without a call, and"Multiple", or its genes joined by"+", when its guides target several genes; each cell’s full set of genes is kept for high-MOI analyses, and the control targets are named, never guessed. Perturbation efficiency compares each target gene’s expression in the cells that carry its perturbation alone, by target or by guide, with the control cells: the mean UMIs of each group as Cell Ranger reports them, the fraction of the control expression that remains after scaling each cell to the median library size of the compared cells that hold a UMI, and a two-sided Mann-Whitney U test, by its normal approximation with the corrections for ties and continuity, with Benjamini-Hochberg adjustment, reading only the target genes of the compared cells. The E-distance of scPerturb measures how far the cells of each perturbation sit from the control cells in a coordinate space such as a PCA, computed exactly from each group’s sums and squared norms rather than from pairwise distances, with a permutation test whose p-values count the observed groups as one draw (Phipson and Smyth 2010) and are adjusted by Benjamini-Hochberg. The perturbation signature of Mixscape gives each cell its log-normalized values minus the log of the mean normalized values of its nearest control cells, found exactly in a coordinate space within each sample, as Seurat’sCalcPerturbSigcomputes them; Mixscape’s classes follow Seurat’sRunMixscape: DE genes by Seurat’s Wilcoxon rules, tested for every target in one pass over the counts with each split’s control values sorted once, scaled signatures projected onto each target’s perturbation direction, and a two-component normal mixture with a fixed control component, iterated until the calls of knocked-out cells and escapers stop changing. Association tests follow SCEPTRE’s low-MOI test: a Poisson regression of each pair’s counts on its treatment and control cells with the negative binomial size of the likelihood at the Poisson means, a score statistic compared with random sets of the pair’s cells in up to three rounds, a skew-normal fit to the second round, and a calibration check on groups of control guides; and its high-MOI test, which compares the cells that carry any guide of a target with all other cells, fits each gene once on all cells with log guide counts among the covariates, and draws random sets by the conditional randomization test, from a logistic regression of each target’s cells on the covariates, or by permutation. In both tests, a pair whose treatment cells the covariates determine, such as a target alone in a sample without control cells, gets no statistic, p-value or fold change, and the p-values count only the random sets that have a statistic. Perturbation profiles follow Replogle et al. 2022: each cell’s counts are scaled to the median total of the control cells, each feature is z-normalized against the mean and the standard deviation, with the n - 1 divisor, of the control cells of the cell’s sample, and the profile of a target, or of a guide with each control guide its own, is its cells’ mean z-score, from two streamed passes over the counts in bands of features. Perturbations are clustered by HDBSCAN, scikit-learn’s implementation, on 1 minus the Pearson correlation of their profiles, as Replogle et al. clustered them, with an average-linkage order for heatmaps and a UMAP layout of the same distances. The perturbation API reference describes each step, and Pooled CRISPR screens runs them on a published screen.Clones and lineage tracing: clones imported from the files that lineage tracing tools write, such as CoSpar’s, TREX’s, CellTag-multi’s, Numbat’s and LARRY’s, or from a cell metadata column, and joined to the store’s cells by barcode. Clonal expansion places each cell by its clone’s cells within its sample, with scirpy’s bounds in cells or scRepertoire’s bounds on the clone frequency, and describes each sample’s clonal space by the cells of its largest clones, as scRepertoire’s
clonalProportiondoes. Diversity indices, Chao1, ACE and Hill numbers are reported per group, with the rarefaction and extrapolation of Chao et al. (2014) to a common size or sample coverage, the Shannon extrapolation of Chao et al. (2023), and rarefied probabilities computed as products of ratios rather than from log-gamma functions, which keeps them exact for large groups. Groups are compared by presence indices of the clones they share and by the abundance-weighted Morisita-Horn index, and chosen clones are followed across groups. Fate coupling follows the definitions of CoSpar (Wang et al. 2022) and compares each pair of groups with a null of shuffled labels, which keeps each clone’s and each group’s cells and draws each permutation from a stream of its own, so the null does not depend on threads; the fate bias of early cells is the share of their clone’s later cells in each fate, with a one-sided Fisher test of each clone in each fate. Expressed lineage barcodes are imported as the reads, molecules or barcode counts that extraction tools write, such as TREX’s, pycashier’s, CellTag-multi’s, QuiCAT’s, BARtab’s and Cell Ranger’s: reads collapse into molecules whose reads are their rows, nothing is filtered, and each distinct barcode and UMI is stored once. Clones are called from the barcodes by the published rules of LARRY, TREX, CellTagR and CellTag-multi, or by rules chosen one by one: molecules filtered by reads, barcodes within a Hamming or Levenshtein distance merged into the most abundant of their connected component, found exactly, an allowlist, each cell’s barcodes filtered by UMIs and by their share of its top barcode, cells with a bounded number of barcodes, and cells grouped by identical barcode sets or a Jaccard graph, whose linked sets are found exactly through the prefix filter of set-similarity joins where that takes fewer steps than meeting every set that shares a barcode, each set meeting only the sets that share one of its rarest barcodes, as many as the similarity allows, with TREX’s removal of bridging edges and of doublets, the local cut vertices of the graph. A rule refuses counts that a library does not hold rather than guess them. Lineage recorder alleles are imported from CARLIN’s and DARLIN’s allele files, Cassiopeia’s allele tables, PEtracer’s tables and DNA Typewriter’s tapes, with each format’s own tokens for an unedited, a missing and a not applicable site, and DNA Typewriter’s slots read under the prefix rule; character matrices are exported for Cassiopeia and LAML, which build the trees. Clones are called from rare alleles: cells that share an allele, at any array, whose frequency in a bank of independently edited cells is below a threshold and that the bank’s samples rarely hold, as DARLIN links them, or whose clonal p-value from the bank rate survives the Benjamini-Hochberg procedure, as CARLIN tests them, are linked, and the connected components of each group of cells are the clones, with DARLIN’s limit on a clone’s alleles; the unedited state, placeholders and missing sites never link cells.Immune receptor repertoires: T cell and B cell receptor contigs imported from Cell Ranger’s contig annotations or AIRR Rearrangement files and joined to the cells of the expression library, with the receptor model of scirpy: up to two ranked chains of each receptor arm per cell, and each cell’s receptor type, subtype and chain pairing. Text fields are stored once per distinct value, so an import holds each gene call and junction once. Clonotypes follow scirpy’s rules for identical nucleotide or amino-acid junctions across arms and dual chains, with optional V and J gene matches and groups such as donors kept apart, found as connected components of receptor configurations and the keys their chains share rather than by comparing pairs of cells. Clonotype clusters link chains within a Hamming, normalized Hamming or Levenshtein distance under the same rules, with every pair of distinct junctions within the cutoff found exactly through masked keys, whose junctions are compared as each run of equal keys is read, deletion-variant keys, whose candidate pairs are each checked once, or compiled comparisons of every pair, in bounded memory. Every clone summary reads clonotypes as clones and measures each receptor type apart. Gene usage and junction lengths count each cell’s chains in chosen slots within their locus, by cells or by clonotypes, with gene calls named by allele, gene or family and junctions measured in characters.
Mitochondrial lineage tracing: the per-variant statistics of mgatk, accumulated over bands of cells, with an allele frequency only where a cell was covered; informative variants by the thresholds that Signac applies to mtscATAC-seq or by the depth and base quality of MAESTER, with masks of variants that NUMTs, RNA-DNA differences and homopolymers mimic; and clones as Signac’s
FindClonotypescalls them, from the cosine similarity of square-root allele frequencies over the variants two cells both cover, Seurat’s shared-neighbor graph and Leiden.Targeted genotyping: each cell’s genotype at targeted sites in one vocabulary of calls, which tells a mutant call that claims no number of copies (
alternative_present) from heterozygous and homozygous ones, and no evidence (missing) from evidence that a rule did not call (filtered): the calls that GoT, GoT-Multi, Gotcha, Tapestri and DAb-seq wrote, each variant of a Tapestri position genotyped apart; GoT’s rules of mutant and wild-type UMIs as parameters, as studies of patients and of cell lines apply them; and the per-UMI model of GIFT, with swap probabilities by reads and a uniform prior over the three genotypes. Clones follow from the combinations of mutant calls, with the sites that a cell was not read at unknown rather than wild type, and cells whose calls agree with two clones that disagree left out as ambiguous, so that dropout does not join a subclone to its founder.Cell phylogenies: the trees that lineage recorders such as PEtracer and the DNA Typewriter reconstruct are read from Newick, in one pass without recursion, and from TreeData files, and their leaves are joined to the store’s cells by barcode. A cut at a time makes a clone of each clade whose root is the first node at or past the time below its tree’s root, and a cut at a depth counts branchings with single-child nodes merged; each child of a polytomy that the cut passes is a clone of its own. The figure of a cut collapses clades into at most
max_leaveswedges, opening the clade of the most cells first, one child at a time, and never a clade of the cut.
Principal component analysis¶
reduction.pca and the PCA stage of the rna and adt pipeline recipes stream the normalized values of the selected cells in row blocks and never hold the whole matrix. With feat_scaling=True, each feature is first standardized with its mean and population standard deviation over the normalized cells. The solver depends only on the number of features, so the result does not depend on the memory budget, and the block size changes it only by rounding.
Up to 4,096 features, PCA is exact. One pass over the cells accumulates the float64 covariance matrix with symmetric rank updates, and LAPACK’s eigensolver returns its leading
dimseigenvectors as the loadings. The covariance takes at most 128 MiB at this width, and the eigensolver’s cost grows with the cube of the feature count: on two threads it took 0.35 s for 2,000 features, 5.6 s for 4,096, and 38 s for 8,192.Above 4,096 features, a randomized block Krylov solver fits the components. It applies the covariance to a block of
dims + max(10, dims)Gaussian vectors, seeded by a fixed seed, and keeps every product in its basis, following the randomized range finder of Halko, Martinsson and Tropp with the block Krylov space of Musco and Musco, which converges in far fewer passes than subspace iteration when the trailing variances are close. The Rayleigh-Ritz projection of the covariance onto the basis gives the components and their variances. Each pass reads the selected cells once; the solver stops when the leadingdimscomponents move less than 0.1 degrees between two passes, and warns if they still move after 24 passes, each time the fit is computed or reused. The artifact recordssolver="randomized", and its diagnostics record the passes and how far the components moved in the last one.Data passes. The Gram solver reads the normalized values once and the randomized solver once per pass. Writing the coordinates reads them once more. The scaling statistics come from the moments that
features.normalizestores beside the values. On a remote store, the defaultlocal_cache="auto"stages the normalized values locally, so the passes read a local copy.
A PCA artifact stores the variance of each of its dims components and that variance’s share of the total variance of the fitted values, as variance and variance_ratio, and show_elbow_plot=True plots the shares for a new or a reused fit. Artifacts stored before release 1.3.0 have neither array, nor the diagnostics that reuse requires, so their next call computes them anew. Signs follow scikit-learn’s svd_flip convention: the largest loading of each component is positive.
On the pancreas example (3,696 cells, standardized log-normalized values), the randomized solver took 11 to 14 passes for 5,000 or 17,750 features and 21 or 50 components. It stayed within 0.035 degrees of the exact subspace, and its variance shares within a relative 2e-7 of the exact ones. The IncrementalPCA fit that CyteArc used before release 1.3.0 for wide or narrowly blocked inputs put its trailing components up to 89 degrees from the exact subspace, with variance shares off by 10 to 21%. Those fits recorded incremental_block_rows, and lineage reports mark them as stale.
Neighbor search¶
CyteArc uses HNSW approximate nearest-neighbor search. The defaults are ann_m=24 for index connectivity, ann_efc=200 for the search depth during construction, and ann_ef=200 for the minimum query depth. Queries use at least twice the requested neighbor count. These settings balance index size and search work against neighbor recall at atlas scale.
Across five approximately million-cell settings, including Tabula Sapiens, a lupus PBMC atlas, and a clustered synthetic dataset, these defaults reached recall@11 and recall@30 of at least 0.995 in four settings. The 50-PC PBMC setting reached recall@30 of 0.988; its missed neighbors were within 1% of the exact k-th neighbor distance. The earlier defaults reached recall@11 of 0.896 to 0.991 and left up to 0.92% of cells without a true neighbor, which motivated the deeper searches. Recall is the fraction of exact nearest neighbors recovered.
See Build a neighbor graph stage by stage for graph settings and diagnostics.
LocalMAP¶
embeddings.localmap lays out a connectivity map with LocalMAP, which extends PaCMAP. Three kinds of pairs move each cell: its neighbors attract it, mid-near cells attract it weakly and hold the global arrangement, and random further cells repel it. A mid-near cell is the second closest of six random cells, measured in the coordinates the graph was built on. Adam moves the cells over three phases of 100, 100 and 250 iterations, in which the mid-near weight falls from 1000 to 3, stays at 3, and is 0. In the last phase, LocalMAP scales each neighbor’s pull by max_distance / 2 / sqrt(d) and every tenth iteration draws each cell’s further pairs again from the cells within max_distance of it in the layout, which pushes apart clusters that sit next to each other.
PaCMAP picks 10 neighbors per cell from a neighbor search of its own. CyteArc takes them from the connectivity map, as UMAP does: each edge pulls its two cells in proportion to its weight, and the weights are scaled so that all edges pull as hard as 10 unweighted neighbors per cell. On the pancreas, Kang PBMC and Tabula Sapiens 100K examples, with three seeds each, the weighted map kept 1 to 2 percentage points more of each cell’s 10 nearest PCA neighbors among its 10 nearest layout neighbors than three other choices: PaCMAP’s own rule, which picks 10 of 20 neighbors by distances scaled to each cell’s density; the 10 nearest neighbors, unweighted; and the fuzzy union of the map that UMAP lays out. It matched them on the other measures below.
Each cell’s force sums its pairs in both directions, and each cell draws its random pairs from its own key, so the layout is the same on any number of threads. The kernels were checked against pacmap 0.9.1, which holds LocalMAP’s reference implementation: from the same pairs, the gradients of every phase agree to float32 precision, and the layouts after the first two phases agree to 1e-4 of their scale. Full runs, whose last phase draws pairs at random, reach the same neighbor preservation and silhouette.
On the 1,136,218 cells of Tabula Sapiens, with 30 PCs, 11 neighbors and the default settings of both methods on 16 CPUs, LocalMAP took 42 s and UMAP 1,093 s, or 142 s with parallel=True, which is not reproducible. Both peaked at 4.1 GiB of memory. The measures compare each layout with the PCA it was built from and with the authors’ 145 cell types of at least 100 cells:
| Measure | UMAP | UMAP, parallel | LocalMAP |
|---|---|---|---|
| Share of 10 nearest PCA neighbors kept among the 10 nearest in the layout | 0.028 | 0.026 | 0.068 |
| Share of 50 nearest PCA neighbors kept among the 50 nearest in the layout | 0.062 | 0.061 | 0.122 |
| Share of 15 nearest layout neighbors of the same cell type | 0.382 | 0.366 | 0.467 |
| Share of random triplets whose distance order the layout keeps | 0.662 | 0.672 | 0.700 |
| Rank correlation of distances between cell-type centroids | 0.565 | 0.580 | 0.627 |
Neighbor and cell-type shares are means over 5,000 random cells, and the triplet share is over 30,000 random triplets. On the Tabula Sapiens 100K example, LocalMAP kept 0.18 of the 10 nearest PCA neighbors against 0.13 for the example’s stored UMAP, and scored higher on cell-type share, triplet order and centroid correlation.
LocalMAP needs the coordinates of one assay’s graph for its mid-near pairs, so it does not take an integrated graph. LocalMAP sharpens gaps between nearby clusters by design, so a gap in its layout is weaker evidence of a boundary than a gap in UMAP’s.
Leiden clustering¶
clusters.leiden, the Leiden stages of the pipeline recipes, gene programs, and cytearc.clustering.leiden_membership partition a graph with the Leiden algorithm of Traag, Waltman and van Eck. Every stored entry (i, j) of the input matrix W is an undirected edge of weight W[i, j], so the clustered graph has the adjacency A = W + W^T. Explicitly stored zeros are ignored, and weights must be finite and non-negative. Leiden maximizes modularity with the resolution γ, the resolution argument, under the configuration null model: a larger resolution gives more, smaller clusters. Every cluster is connected.
The default backend, "cytearc", is CyteArc’s own implementation of the published method. It runs on up to nthreads threads, which clusters.leiden and the pipeline recipes set to the datastore’s worker budget, and it returns identical labels for every thread count. Labels run from 1: cluster 1 has the most cells, and clusters of equal size are ordered by their smallest cell index. The clustering package’s README (cytearc/clustering/README.md in the CyteArc repository) describes the implementation, how it was written and verified, and how it compares with igraph and leidenalg.
backend="igraph" and backend="leidenalg" call the GPL-licensed igraph and leidenalg packages instead, which CyteArc does not install (Optional GPL Leiden backends). They optimize the same objective on one thread and ignore nthreads, and their labels differ from the native backend’s even for the same seed. They are kept to reproduce results computed with them; "igraph" was CyteArc’s default before "cytearc". The backend is part of a clustering’s artifact identity, so results of different backends are never reused for one another.
Doublet detection¶
qc.doublets and the doublet stage of the rna and atac pipeline recipes follow Scrublet (Wolock, Lopez and Klein, 2019). Doublets form only among the cells of one capture, so each sample, the cells that share a label of sample_column, is simulated and scored on its own; without a sample column every cell is one sample. A sample of n cells simulates round(simulation_ratio * n) doublets, at least one, by adding the counts of two of its cells drawn at random, so cell types parent doublets as often as they occur. With heterotypic_fraction above 0, that share of the doublets draws its second parent from the cells outside its first parent’s cluster. The doublets of an RNA assay are normalized as the graph’s cells were, by the normalizer that the graph’s values record, whatever normalizer the session sets, and with what that normalizer fitted over those cells: analytic Pearson residuals take each gene’s share of the cells’ counts and the cells’ clip, and CLR each gene’s scale over the cells. The graph’s mapping reference fits these numbers from the cells’ counts, with the function that normalized them, when it is built. A doublet’s library size, the total that library-size normalization and Pearson residuals read, is the sum of its parents’. The doublets are then projected onto the graph’s PCA without refitting it: standardized with the gene means and standard deviations that its feature scaling saved, when the PCA scaled its genes, and centered. The total is the only quantity besides a cell’s counts of the graph’s genes that a built-in normalizer reads, and it is additive, so doublets read only their parents’ counts of those genes; a normalizer that read another per-cell quantity, such as a sum of logarithms over every gene, would need its parents’ complete rows. The graph may be built on the values of norm_lib_size, norm_lib_size_log, norm_pearson_residuals, norm_clr or norm_dummy, on a PCA with or without feature scaling, and qc.doublets refuses a graph of a custom normalizer before it computes anything.
The doublets of an ATAC assay are weighted by TF-IDF like the graph’s cells and projected onto the graph’s LSI, as ArchR (Granja et al., 2021) projects its simulated doublets into the LSI of the cells. A doublet’s term frequencies are its summed counts of the LSI’s peaks over the sum of its parents’ total counts, or over its own total of those peaks when the normalization renormalized over them, and each peak’s weight is log2(1 + n / (df + 1)), with df the number of the graph’s n cells that have counts of the peak: read from the feature summary of those cells, which prevalent peaks saves and qc.doublets saves when it is missing, or, in a session that normalizes otherwise, counted over their counts of the LSI’s peaks. The weighted counts are multiplied by the LSI loadings without centering or scaling, as the cells’ LSI coordinates are, and stay sparse. Projected this way, the cells’ own counts give back their stored LSI coordinates within float32 rounding. The graph must be built on an LSI of values that norm_tf_idf normalized, and each sample is scored by Euclidean distances in the LSI, whatever the metric of the graph’s own index: on 60 doublets planted in the PBMC ATAC fixture, an index of cosine distances ranked them below the Euclidean one, with an AUROC of 0.67 to 0.71 against 0.83 to 0.84 across four seeds at the recipe’s defaults, and called at most one of them. Simulated doublets stand for doublets of two cell types; AMULET (Thibodeau et al., 2021) also finds doublets of one type, from the genomic regions where a nucleus has more than two aligned reads, which needs each cell’s fragments; CyteArc stores peak or tile counts only.
Each cell and simulated doublet is then scored on its k = round(save_k * (1 + r)) nearest neighbors among the sample’s cells and simulated doublets, with r simulated doublets per cell, so that about save_k of them are cells where doublets are as dense as cells. These neighbors come from hnswlib indexes of the sample, built with the settings of the graph’s ANN index: one index, or for a sample of 50,000 cells and simulated doublets or more, one index for each of 4 parts, point i in part i mod 4, built at once. Each part thus holds cells and simulated doublets of every cluster, as one index does; parts of consecutive points would hold the first cells alone, without the simulated doublets that link separated clusters, and on cells stored cluster by cluster such a part missed every neighbor of the cells of a small cluster. Every index is built on one thread, whatever the graph’s ann_parallel, with random_seed plus its part’s number as its seed, and searched for every point to the graph’s ann_ef divided among the parts, at least as deep as the k + 1 candidates that each returns; each point keeps its k nearest other points across the parts, by distance and then by position. A point’s exact neighbors fall about evenly among the parts, 27 of 90 at the median in the part that holds most of them, so each part’s search has to find only about a quarter of the candidates it returns. On synthetic samples of 100,000 and 300,000 cells, the parts took 2.3 and 1.9 to 2.0 times less time than one index on 8 workers, and the simulated doublets that they counted among a point’s neighbors equalled those among its exact neighbors for 98.4% and 95.4% of the points, against 98.0% and 91.0% with one index. Samples are scored at once, as many as the workers and the memory budget hold, and a sample’s scores depend only on its cells and random_seed, so they are the same for any thread count. With d simulated doublets among the neighbors, q = (d + 1) / (k + 2) estimates their fraction, and q / ((1 - q) r) how much denser doublets are than singlets around the cell. Bayes’ rule with the prior expected_doublet_rate gives the score, the probability that the cell is a doublet. raw_scores keeps d / k.
The scores of a sample’s simulated doublets are bimodal: doublets of two cells of one type, which look like a singlet, score low and the others high. The threshold is the minimum between the two modes, the method of Prewitt and Mendelsohn as described by Glasbey: their histogram of 256 equal-width bins is smoothed with a running mean of three bins until it has two maxima, and the threshold is the center of the lowest bin between them. One or two simulated doublets that score far above the rest can keep a maximum of their own after the dip between the modes has smoothed away, which puts the minimum above every other doublet, so the minimum is used only when at least 5% of the simulated doublets lie on each side of it. A threshold is also taken only when the doublet rate that it estimates, the fraction of cells above it divided by the fraction of simulated doublets above it, is at most 50%: doublets can make up as many as 40% of the droplets of a droplet experiment (Xi and Li, 2021), and a higher estimate means that the threshold splits the cells and the simulated doublets alike. When the minimum is not taken, or the histogram never has two maxima, the threshold is Otsu’s of the same histogram, under the same bound. A sample whose simulated doublets look like its cells, such as a sample of one cell type, has scores of one mode, which any threshold splits alike. Such a sample has no threshold and calls no cell, as Scrublet and Scanpy call no doublet when scikit-image’s threshold_minimum, which gives them the minimum, finds no two maxima. Its thresholdMethod reads "none", its threshold and estimated doublet rate are null, and the sample warns as below. A small sample of one cell type and a few cells of others behaves the same way. On 58 runs of planted doublets, RNA and ATAC, the minimum alone called no planted doublet in 34, and these thresholds called planted doublets in every one, where Otsu’s threshold estimated doublet rates of 9% to 23%, without moving the threshold of the 24 others. In the largest cluster of the 1k PBMC fixture, scored alone, Otsu’s threshold would call 32% of the cells, an estimated rate of 65%, and the sample calls none. Scored alone at the defaults, the fixture’s second largest cluster has one simulated doublet far below the rest, and the minimum above it would call 182 of its 183 cells, and the largest cluster of the PBMC ATAC fixture has a minimum with 54% of the simulated doublets above it that would call 105 of its 190 cells; Otsu’s threshold would estimate more than 50% in both, so neither has a threshold. A cell whose score is above its sample’s threshold, or above threshold when one is given, is a predicted doublet. The fraction of simulated doublets above the threshold is the detectable doublet fraction, and the fraction of cells called doublets divided by it is Scrublet’s estimate of the sample’s doublet rate. A sample without a threshold, and a sample whose automatic threshold leaves fewer than 1% of its simulated doublets above it and so calls almost no cell, give a DiagnosticWarning that names the sample each time its scores are computed or reused; its scores still rank the cells, and threshold sets the calls. Doublets of two cells of one type cannot be told from singlets this way.
Potency¶
A fate map needs a direction, and a pseudotime gives one only from source cells that someone names. scores.potency scores how differentiated each cell is from its own expression on a protein interaction network, so the direction needs no named source. The canonical array of its cell_potency artifact, differentiation, rises along the process, and ds.trajectory.fate(direction=...) takes the artifact as it stands.
Both measures read a cell’s expression of each network gene as , where is the gene’s count, the cell’s count over all its genes and 1.1 the pseudocount of the papers, so a network gene without counts enters at . Every cell is scaled to the same 10,000 counts, so a cell’s measures depend on that cell alone and stay the same when other cells join or leave the selection.
Signaling entropy rate (SR). Teschendorff and Enver (2017), after Banerji et al. (2013), let weigh a random walk on the network’s adjacency matrix : from gene , the walk steps to a neighbor with probability . Its stationary distribution is , and its entropy rate, , reduces to , one sparse product per cell. SR divides the rate by the largest that any walk on the network reaches, , so it lies between 0 and 1. It is high when a cell’s expression lets signals spread evenly across the network.
CCAT. Teschendorff et al. (2021) take the Pearson correlation between and each gene’s degree in the network, which is high when the cell expresses the network’s hubs.
Higher values of either measure mean a less differentiated cell. One pass over the counts computes both, and measure chooses the one that ranks the cells. CCAT is the default: in the comparison below, it ordered 12 of the 15 systems better than SR and reversed one of them where SR reversed two, although within a stage it follows a cell’s sequencing depth more closely.
The networks are STRING v12.5’s protein links for human and mouse, as scripts/build_string_networks.py builds them: STRING’s database channel is left out, since it draws on curated resources under their own terms, the other channels are recombined with STRING’s formula, and links scoring at least 0.700 are kept. The human network holds 16,835 genes and 214,798 links, and the mouse network 14,599 genes and 132,521 links. The first call downloads the species’ network, 0.8 MB for human or 0.5 MB for mouse, into $XDG_CACHE_HOME/cytearc/networks, and every call checks the file against the size and SHA-256 digest that CyteArc records. Network genes match the assay’s features by Ensembl gene ID, versions ignored, when the feature IDs are the species’ Ensembl IDs, and by symbol otherwise. The scores use the largest connected part of the network among the matched genes. An assay that matches fewer than 5,000 network genes is refused, since a network cut down that far no longer describes a cell’s signaling; the fifteen systems below matched 11,141 to 16,782.
With graph, the chosen measure is smoothed over the cells’ neighbor graph before it ranks them, by a random walk with restart: each step sets , where is the row-normalized graph, the unsmoothed scores and the smoothing argument, 0.9 by default. The steps continue until is within 10-12 of its fixed point, relative to the range of the scores, which takes 263 steps at 0.9, and no score crosses between unconnected parts of the graph. Smoothing is opt-in: in the comparison below, it raised SR’s rank correlation with the pancreas stages from 0.76 to 0.89 and CCAT’s mean over the systems from 0.33 to 0.39, and it deepened the reversals of the epidermis, of both oligodendrocyte lineages and of the extravillous trophoblast.
The artifact holds four arrays over the cells of cell_selection. potency is the rank of the chosen measure, smoothed when a graph is given, scaled to with ties sharing their mean rank, and differentiation is one minus potency. signaling_entropy and ccat hold both measures unsmoothed, so every artifact lets the two be compared. ds.scores.load_potency returns the arrays with the network’s version and digest and the genes and links that the scores used.
Scoring reads only the network’s genes, in blocks of cells that fit the memory budget. Beyond one block of counts, it holds the network, two vectors over the network’s genes for each thread and four values for each cell. On 250,000 bone marrow cells with 400 million nonzero counts held in memory, computing both measures over the human network’s 15,875 matched genes took 8.7 s on 24 threads, and smoothing took 1.7 s.
Comparison on fifteen systems¶
Both measures were run, with the code and networks that CyteArc ships, on fifteen public systems whose stage order the source study states. The pancreas is the test fixture. The other fourteen were read from CyteBase’s stores of CZ CELLxGENE Discover datasets. Each run drew at most 650 to 2,500 cells of each stage at random, kept one 10x chemistry per system so that no stage differs from another by chemistry, and matched the network to all of the assay’s genes, as scores.potency does. Every system ran with three seeds, each for the cell draw, the thinning and the principal components.
| System | Dataset | Cells | Known order |
|---|---|---|---|
| Pancreas, mouse | Bastidas-Ponce et al. 2019 | 3,696 | ductal, Ngn3 low and high, pre-endocrine, then alpha, beta, delta or epsilon |
| Bone marrow, human | Zeng et al. 2025 | 11,700 | HSC, MPP, then erythroid (5 stages), monocyte (4) or B cell (7) |
| Thymus, mouse | Steier et al. 2023 | 10,500 | double negative, double-positive blast, double positive, CD4 or CD8 single positive, then mature |
| Hippocampus, adult mouse | De Donno et al. 2026 | 6,503 | neural progenitor, neuroblast, neuron; OPC, oligodendrocyte |
| Gut, human | Elmentaite et al. 2020, healthy donors | 2,739 | crypt stem cell, transit amplifying, then enterocyte or goblet cell |
| Epidermis, human | Cheng et al. 2018 | 5,212 | basal, spinous, granular |
| Thymus, human | Park et al. 2020 | 6,000 | double negative, double positive, then CD4 or CD8 T cell |
| Neocortex, human, nuclei | Wang et al. 2025 | 7,500 | radial glia, intermediate progenitor, glutamatergic neuron; OPC, oligodendrocyte |
| Retina, human fetus, nuclei | Zuo et al. 2024 | 8,000 | progenitor, then ganglion, amacrine, horizontal, cone, rod, bipolar or Müller glial cell |
| Placenta, human | Vento-Tormo et al. 2018 | 4,238 | villous cytotrophoblast, then syncytiotrophoblast or extravillous trophoblast |
| Limb muscle, human embryo | Zhang et al. 2024 | 3,965 | muscle progenitor, myoblast, myocyte |
| Ureter, human | Fink et al. 2022 | 4,500 | basal, intermediate, umbrella cell |
| Small intestine, mouse | Zwick et al. 2024 | 4,500 | stem cell, transit amplifying, enterocyte |
| Germ cells, mouse fetus | Garcia-Alonso et al. 2022 | 3,598 | primordial germ cell, then oogonium and oocyte, or male germ cell |
| Testis, human | Tabula Sapiens Consortium 2024, one donor | 3,180 | male germ cell, spermatogonium, spermatocyte, spermatid |
The second table reports:
ρ, Spearman’s correlation between the score and the stage order among the cells of each lineage, averaged over a system’s lineages. Positive values mean that less differentiated cells score higher, and 1 is a perfect order.
ρ, half thinned, the same once a random half of the cells were thinned to half their counts and every cell was scored again, as when samples of different depth are scored together.
Depth AUC, from the same thinning: within each stage, the probability that a cell at full depth outscores a thinned one, averaged over the stages by their cells. At 0.5, depth has no effect.
Smoothed columns, which use smoothing 0.9 on a graph of each cell’s 30 nearest neighbors in 30 principal components of 2,000 genes.
Each value is the mean over the three seeds. Across the seeds, a system’s unsmoothed ρ varied by at most 0.05, and each mean over the systems by at most 0.01.
| System | SR | SR, smoothed | CCAT | CCAT, smoothed |
|---|---|---|---|---|
| Pancreas | 0.76 | 0.89 | 0.81 | 0.90 |
| Bone marrow | 0.37 | 0.41 | 0.30 | 0.34 |
| Thymus, mouse | -0.08 | -0.06 | 0.37 | 0.54 |
| Hippocampus | 0.36 | 0.30 | 0.39 | 0.43 |
| Gut | 0.63 | 0.67 | 0.61 | 0.59 |
| Epidermis | -0.42 | -0.63 | -0.37 | -0.51 |
| Thymus, human | 0.06 | -0.02 | 0.26 | 0.55 |
| Neocortex | 0.08 | 0.01 | 0.08 | 0.03 |
| Retina | 0.11 | 0.07 | 0.16 | 0.16 |
| Placenta | 0.06 | 0.06 | 0.19 | 0.20 |
| Limb muscle | 0.21 | 0.21 | 0.24 | 0.25 |
| Ureter | 0.31 | 0.41 | 0.35 | 0.49 |
| Small intestine, mouse | 0.84 | 0.88 | 0.52 | 0.47 |
| Germ cells, mouse | 0.21 | 0.24 | 0.44 | 0.70 |
| Testis | 0.32 | 0.44 | 0.53 | 0.78 |
| Mean ρ | 0.26 | 0.26 | 0.33 | 0.39 |
| Mean ρ, half thinned | 0.25 | 0.28 | 0.31 | 0.39 |
| Mean depth AUC | 0.69 | 0.58 | 0.71 | 0.59 |
Where the scores order a process. Both measures order the pancreas, the gut, the mouse small intestine and the ureter, from basal to umbrella cells. They order neurogenesis in the hippocampus and the neocortex, whose neuronal lineages reach ρ 0.73 and 0.34 for SR and 0.77 and 0.38 for CCAT, and the germ lines of the testis and the fetal ovary, at 0.32 and 0.43 for SR and 0.53 and 0.49 for CCAT. The bone marrow, the limb muscle and the retina come out more weakly ordered, at 0.11 to 0.37.
Where they fail. SR leaves both thymuses unordered, at ρ -0.08 in the mouse and 0.06 in the human, where CCAT orders them at 0.37 and 0.26. SR also leaves the male germ cells unordered, at 0.00 against CCAT’s 0.40. Both measures rank spinous keratinocytes above basal ones, which reverses the epidermis at -0.42 and -0.37, and both rank extravillous trophoblast above the villous cytotrophoblast that it comes from, at -0.30 and -0.13. Neither orders the oligodendrocyte lineages: the hippocampus’s stays flat, at -0.02 and 0.02, and the neocortex’s reverses, at -0.17 and -0.21. Before a score directs a fate map, compare the order that the stored
ccatarray gives with that ofsignaling_entropy, and check where potency peaks against known markers.Between the two measures. CCAT’s mean ρ is higher than SR’s by 0.070 (0.070, 0.070 and 0.071 in the three seeds) and by 0.065 with half the cells thinned. Leaving out any one system keeps CCAT ahead by at least 0.043, or 0.040 half thinned, the lead being smallest without the mouse thymus. CCAT orders 12 of the 15 systems better, the neocortex by less than 0.01. SR orders the bone marrow, the gut and the mouse small intestine better, by 0.07, 0.02 and 0.32. SR’s ρ is below zero in every seed for two systems, the mouse thymus and the epidermis, and CCAT’s for one, the epidermis.
Depth. Both measures rise with a cell’s sequencing depth, at depth AUC 0.69 for SR and 0.71 for CCAT, so a deeply sequenced cell looks less differentiated than a shallow one of the same stage. Smoothing over neighbors of mixed depth brings them to 0.58 and 0.59. Scoring half the cells at half depth changed each mean ρ by less than 0.03. Within each stage of the first seed’s cells, the Spearman correlation between a measure and the cell’s total counts averaged 0.54 for SR and 0.66 for CCAT over the systems, and CCAT’s was the higher in 12 of them. The pancreas showed the largest gap, 0.22 for SR against 0.70 for CCAT. Within one population, potency therefore ranks cells largely by depth, so compare a population’s cells only after checking how their scores follow their counts.
Initial and terminal states¶
A fate map needs its sinks, and naming them needs knowing where a process ends. trajectory.states(graph, direction, n_states=...) finds them from the walk itself: it splits the walk that fate takes with the same graph, direction and beta into n_states metastable states, groups of cells that the walk enters and rarely leaves. It uses generalized robust Perron cluster analysis (G-PCCA) of Reuter et al. (2018) and Reuter, Fackeldey and Weber (2019), which takes real Schur vectors in place of eigenvectors so that it applies to walks that are not reversible, as CellRank does for cells. CyteArc implements it from those papers and from Weber (2006), a doctoral thesis of Freie Universität Berlin:
ARPACK’s implicitly restarted Arnoldi iteration, through SciPy’s
eigs, finds the walk’sn_states + 1eigenvalues of largest real part to machine precision, from a fixed start vector.The constant vector and the real and imaginary parts of the eigenvectors, orthonormalized in order, are the real Schur vectors of the leading eigenvalues: a basis of the subspace that the walk maps into itself, orthonormal for uniform cell weights. A number of states that would split a pair of complex conjugate eigenvalues is refused, since only both together span a real invariant subspace, and the search checks that is invariant before it goes on.
The memberships are . Following Weber’s Algorithms 3.8 to 3.11, starts as the inverse of the rows of nearest the corners of the simplex that holds the rows. Any is made feasible, so that every cell’s memberships are nonnegative and sum to one. Nelder-Mead, SciPy’s
fminwith its defaults as CellRank runs it, then maximizes crispness, with the diagonal of , which is 1 when the states do not overlap. It starts from the guess before Algorithm 3.10 divides it by the sum of its first row. Weber’s Algorithm 3.11 starts from the divided guess; crispness does not depend on that scale, butfmin’s absolute tolerances do, and the undivided start reproduces CellRank’s memberships. When Nelder-Mead reaches its limit of trials, given below, before it converges, the memberships depend on where it stopped, so the artifact recordscrispnessOptimization="stopped_at_limit"and the call warns, asking to compare its terminal states with those of the neighboring numbers of states. On two builds of the fate mapping tutorial’s pancreas graph, which share all but 2 of their 57,532 entries and whose shared weights differ by at most 0.003, the searches of 10 to 12 states directed by CCAT stopped at the limit on one build or both, and the two builds’ searches called other terminal states.The walk between the states is . Its left eigenvector for the eigenvalue one is each state’s share of a long walk’s time, with the walk’s stationary distribution.
Each state’s
cells_per_statemost likely cells, 30 by default, carry its name, a cell that several states take going to the one in which its membership is largest, as CellRank assigns them. The artifact gives these labels tofateassink_labels, so any state can be a sink.
The states are ordered by their mean direction score. The first is the initial state, and each other state in which a long walk spends a larger share of its time than the state’s share of the cells is terminal: the walk collects there. CellRank instead calls terminal a state that one step of the walk stays in with probability at least 0.96, and initial the state of the smallest share of the walk’s time. Neither rule works on the walks of CyteArc’s neighbor graphs:
Stability. On the pancreas walk of the fate mapping tutorial, directed by CCAT or by the tutorial’s pseudotime, every state of every search from 3 to 12 states stayed with probability 0.97 or more, so the rule called every state terminal, Ductal included. One step moves a cell to one of its neighbors in the graph, which rarely leaves a large state whatever the direction. CellRank’s own analysis of hematopoiesis directed by a pseudotime defined its terminal states as the four macrostates of largest purity among six rather than by that rule (Weiler et al. 2024). Each state’s
stabilitystays in the table for comparison.Synthetic processes with known ends. Each of three processes of 6,000 cells has a start, three branches that end in dense populations, and a side pocket halfway up the trunk at constant progress. There the stability rule called 1 to 6 states terminal that are not ends at every number of states from 4 to 9, and the smallest share of the walk’s time missed the start at 14 of 21 searches from 3 to 9 states: all 6 of 3 and 4 states, and 8 of 15 from 5 to 9, where it picked the side pocket. The enrichment rule found the three ends at every number of states from 4 to 9, with no other state at 16 of 21 searches from 3 to 9, and the lowest mean direction found the start at all 15 searches of 5 to 9 states and at none of the 6 of 3 and 4 states.
Pancreas. On the walk directed by CCAT, the enrichment rule found all four endocrine fates, Alpha, Beta, Delta and Epsilon, at 11 and 12 states, beside a Pre-endocrine state and, at 12, an Ngn3 high EP state. It called no state terminal that is not an end at 5 of the 10 searches from 3 to 12 states, those of 3 to 7 states, which found one to three of the fates. The state of lowest mean direction was a Ductal state at every one.
Held out. The rule was chosen on the processes above. On three synthetic processes of shapes it was not chosen on, 3 seeds each and 3 to 9 states, it found every end at 62 of 63 searches, missing an end of 4% of the cells once at 3 states, with no false terminal state at 37 of 63: a long chain with a slow population halfway and two branches that part late, a ring of cycling cells with one exit, and two ends that hold 25% and 4% of the cells. Its false calls were branches and exit paths near the ends, and states left without cells of their own; the slow population was never called terminal, and the lowest mean direction found the start at all 63. CellRank’s stability rule found every end but called 1 to 8 states terminal falsely at every search, and the smallest share of the walk’s time found the start at 56 of 63.
Where it errs. A late intermediate state where the walk slows can also collect more than its share: on the walk directed by CCAT, a Pre-endocrine state was terminal at every search from 8 to 12 states, with enrichments of 1.1 to 1.6, within the 1.1 to 3.0 of the true ends, so no threshold separates them. With the pancreas’s Leiden clusters as names, 9, 10 and 11 states each called the clusters of Beta, Delta, Alpha and Pre-endocrine cells terminal, the Epsilon cluster at 11, an Ngn3 high EP cluster at 10 and a Ductal cluster at 9. Check each terminal state with markers or an annotation; persistence alone keeps a slow intermediate state such as Pre-endocrine.
Without a direction. At
beta=0the walk follows the graph alone, and a long walk spends its time in proportion to the cells’ degrees, so enrichment measures how densely a state’s cells are joined rather than where the process ends. On the pancreas graph, enrichments then lay between 0.975 and 1.005, and 4 of 6 states came out terminal.
The search needs n_states. CellRank’s automatic choices pick 2 states on the pancreas walk directed by CCAT by the gap between leading eigenvalues, 5 by the minChi criterion over 3 to 12 states and 3 by crispness, while 11 states are the fewest that separate the four endocrine fates. When the last eigenvalue kept and the first left out tie, as the eigenvalues of identical parts of a walk do, any mix of their two eigenvectors spans an invariant subspace, so the last state is one choice among many, and a warning asks for a number of states that keeps both or neither. A gap below a millionth of the latter’s distance from one counts as a tie: three identical ends tie to 10-9, while on the pancreas walks and the synthetic processes the closest pair stayed apart.
On the same transition matrices, CyteArc’s search reproduces CellRank 2.4.0 with pyGPCCA 1.1.0 (table below): at each of the 21 searches that CellRank completes, its memberships agree within 10-10 and each state takes the same 30 cells. CellRank refuses 4 states on the pseudotime walk, where its discretization leaves a state 3 cells.
The search’s two costly steps grow with the cells. The eigen-solve takes one product of the walk per Arnoldi step: on synthetic branching graphs, its products grew from 422 at 10,000 cells to 786 at 300,000 for 6 states, and from 297 to 562 for 12, and at 300,000 cells it took about 6.5 s. The optimization reads every searched cell once per trial, and Nelder-Mead takes at most trials, all 24,200 of them at 12 states: at 300,000 cells it took 5 s for 6 states and 151 s for 12, on one core of an Apple M-series machine. Projected linearly, 12 states take about 8.5 minutes at one million cells and about 85 minutes at ten million. Beside the graph and the walk, the call charges a search of 12 states 864 bytes a cell, most of them ARPACK’s Arnoldi vectors and the eigenvectors that it extracts: about 1.3 GB in all for a million cells of an 11-neighbor graph. It checks the charge against the memory budget before it reads the graph.
Validation¶
The comparisons below cover reference implementations, direct numerical checks, and biological outcomes. Inputs and settings are matched unless the table says otherwise.
Comparisons with other tools¶
| Method | Reference | Data | Main result |
|---|---|---|---|
| Cell calling | DropletUtils 1.30 emptyDrops | 10x PBMC 1k and 10k | Identical 1,045 calls on PBMC 1k; Jaccard 0.9975 on PBMC 10k with matching settings |
| Ambient RNA correction | SoupX 1.6.2 | 10x PBMC 1k and 10k | Identical ambient profiles; contamination fractions agree within and cell-level subtraction within 10-12 counts before rounding |
| HTO demultiplexing | Seurat 5.5.1 HTODemux | 1,000 cells, 10 hashtags | Identical calls with matched settings; singlet naming can differ in unbalanced pools, as described below |
| Guide call import | Cell Ranger 6.0.0 protospacer_calls_per_cell.csv | 10x 5k A549 cells transduced with a CRISPR pool, 5,867 cells, 93 guides | All 7,040 calls of 4,867 cells reproduced, and the 1,000 cells without a confident call labeled "Negative"; every called UMI count equals the guide count matrix |
| Guide calling, Poisson-Gaussian | pertpy main (commit 9b5c53b) assign_mixture_model; crispat 0.9.11 ga_poisson_gauss | The same A549 screen | All 7,500 of pertpy’s calls, the same call set in all 5,867 cells, and equal thresholds on all 93 guides; every one of crispat’s 7,392 calls with 10,000 optimizer steps, as described below |
| Guide calling, two Gaussians | Cell Ranger 6.0.0 | The same A549 screen | 7,035 of Cell Ranger’s 7,040 calls, and the same call set in 5,862 of 5,867 cells; the smallest called count equals Cell Ranger’s threshold on 90 of 93 guides |
| Guide calling, fixed floor and top guide | pertpy main (commit 9b5c53b) assign_by_threshold and assign_to_max_guide; crispat 0.9.11 ga_ratio | The same A549 screen | All 12,535 calls at a floor of 5 UMIs and all 5,529 of pertpy’s top-guide calls at 5 UMIs; all 4,539 and 3,825 ratio calls at fractions 0.5 and 0.7 |
| Perturbation efficiency | Cell Ranger 6.0.0 perturbation_efficiencies_by_target.csv and perturbation_efficiencies_by_feature.csv | The same A549 screen, with Cell Ranger’s calls imported and controls=["Non-Targeting"] | The same perturbed cells, the same 396 control cells and the same mean UMIs, within , for all 45 targets and 77 guides; log2 fold changes with Spearman correlation 0.97 and the same sign for 40 of 41 targets and 66 of 67 guides, as described below |
| E-distance | scPerturb 0.1.0 edist and etest; pertpy main (commit 9b5c53b) Distance and DistanceTest | The same A549 screen, with Cell Ranger’s calls imported, in a 50-component PCA of all 5,867 cells | E-distances within a relative of scPerturb’s for all 45 targets and 88 guides; permutation p-values with Spearman correlation 0.988 by target and 0.997 by guide with scPerturb’s, as described below |
| Mixscape | Seurat 5.5.1 CalcPerturbSig and RunMixscape; pertpy main (commit 9b5c53b) Mixscape | The THP-1 ECCITE-seq screen of Papalexi et al. 2021, 20,729 cells and 25 targets, with Seurat’s PCA and variable genes | The same 20 nearest control cells for every cell; signatures within float32 rounding; the same DE genes for all 25 targets, with p-values within a relative ; and Seurat’s class for all 20,729 cells, as described below |
| Association tests | sceptre 0.99.1 (GitHub commit 20c33349), run only | The same THP-1 screen: 25 targets against the 2,000 variable genes, 50,000 pairs, with the positive controls and the calibration check | The same QC for every pair; statistics within 10-6 for 39,062 of 40,517 tested pairs; p-values within the Monte Carlo noise between two sceptre runs; no false discovery among 40,517 negative-control pairs, as described below |
| Association tests at high MOI | sceptre 0.99.1 (GitHub commit 20c33349), run only | sceptredata’s high-MOI example, 45,919 cells of the CRISPRi enhancer screen of Gasperini et al. 2019 with 526 genes and 35 targets: 610 cis pairs and all 18,410 pairs of a target and a gene, by conditional resampling and by permutation, with the positive controls and the calibration check | The same QC for every pair; statistics within 10-6 for 17,809 of 18,142 tested pairs; p-values within the Monte Carlo noise between two runs of either tool; null distributions of 20 pairs alike, as described below |
| Perturbation profiles | The published pseudo-bulk profiles of Replogle et al. 2022, K562_essential_normalized_bulk_01.h5ad | Their K562 essential screen, 310,385 cells, 2,057 targets and 48 GEM groups: profiles by guide pair over all 8,563 genes, with the GEM groups as samples | All 2,273 profiles within of the published ones, one float32 step at z-scores of 16 to 32, and 56.8% of the values bit for bit, as described below |
| Perturbation clusters | scikit-learn 1.9.1 HDBSCAN; Table S3 of Replogle et al. 2022, made with the hdbscan package | Their published pseudo-bulk profiles of the 1,973 perturbations of the genome-wide K562 screen that they clustered, in 2,236 features that approximate their 2,319 | The labels of a direct scikit-learn call, exactly; against Table S3, 64 clusters with an adjusted Rand index of 0.977, and 1.000 over the 700 perturbations that both assign, as described below |
| Clonal expansion | scirpy 0.25.1 clonal_expansion and summarize_clonal_expansion; scRepertoire 2.8.0 clonalHomeostasis and clonalProportion | The clonotypes of two 10x immune profiling runs, PBMC 10k (6,189 cells with a receptor) and CD8+ T cells of healthy donor 1 (46,526 cells), with four pseudo samples and six pseudo clusters from a hash of each barcode | The category of every cell equals scirpy’s, within samples and across all cells, and the summaries by cluster equal its counts of cells and clones; on the PBMC T cells, the frequency fractions of each sample equal clonalHomeostasis within and the cells of each rank window equal clonalProportion, for CTstrict and CTaa clonotypes |
| Clonal diversity | iNEXT 3.0.2 without bootstraps; scRepertoire 2.8.0 clonalDiversity without bootstraps; immunarch 0.10.3 repDiversity; vegan 2.7.6 estimateR | iNEXT’s two examples, the pseudo samples of both 10x runs, all 46,526 CD8+ cells, and six edge cases | Rarefied, observed and extrapolated Hill numbers of orders 0, 1 and 2 within a relative of iNEXT at every size, coverage within , asymptotic estimates within a relative , standardized estimates within a relative , and CyteArc the closer to 60-digit values where the two differ most; every index within of scRepertoire, immunarch and vegan |
| Clone overlap | immunarch 0.10.3 repOverlap; scRepertoire 2.8.0 clonalOverlap | The clonotypes of the pseudo samples of CD8+ donor 1, about 500 shared clonotypes per pair, and of PBMC 10k with CTstrict and CTaa clonotypes | Shared clones, Jaccard, Sørensen, overlap, cosine, Morisita-Horn and abundance cosine within for every pair |
| Fate coupling and fate bias | CoSpar 0.5.0 fate_coupling, pvalue_for_fate_coupling, fate_map on infer_Tmap_from_clonal_info_alone, and clonal_fate_bias | A synthetic experiment of 990 cells at two time points with 120 clones of known fate profiles in six fates | Couplings within for the cosine of clone sizes and Jaccard, a relative for the normalized covariance once CoSpar’s pseudocount is taken out, and a relative for the cosine of clone shares; null means within 3 standard errors and standard deviations within 7%; fate fractions within a relative 10-10; equal p-values for all 108 clones in all six fates |
| Immune receptor chains | scirpy 0.25.1 read_10x_vdj, read_airr, merge_airr, index_chains and chain_qc | 10x PBMC 10k with TCR and BCR libraries, the Cell Ranger 4.0.0 and 5.0.0 releases, 10,553 and 10,548 cells; 10x CD8+ T cells of healthy donor 1 (Cell Ranger 3.0.2), 55,206 cells | The receptor type, subtype and chain pairing of every cell, and every slot’s locus, V, J and C call, junction and junction amino-acid sequence, equal scirpy’s for the filtered and unfiltered contig annotations of every release and the AIRR files of 5.0.0 |
| Clonotypes | scirpy 0.25.1 define_clonotype_clusters with the identity metric; scRepertoire 2.8.0 combineTCR; Cell Ranger 3.0.2 and 5.0.0 clonotypes | The same 10x runs: 6,189 PBMC cells and 46,526 cells of CD8+ donor 1 with a receptor | The same clonotype for every cell under ten combinations of sequence, arms, dual chains, gene matches and grouping; with dual_ir="all", scRepertoire’s CTnt, CTaa and CTstrict for all 5,213 PBMC T cells, and Cell Ranger 3.0.2’s clonotypes for all 46,342 T cells of donor 1; Cell Ranger 5.0.0’s enclone grouping agrees for 98.9% of PBMC T cells |
| Barcode clones | TREX 0.4.dev412 (commit c1ade47) run10x and smartseq3 | TREX’s expected 10x output, 697 cells in 4 clones, and Smart-seq3 output, 606 cells in 339 clones, from their molecules.txt; a synthetic table of 329 cells with doublets, clones that share cloneIDs, dropout, errors and partial cloneIDs, at six Jaccard thresholds and doublet settings | preset="trex" gives TREX’s clones.txt for every cell of both expected outputs, and on the synthetic table the same clones and the same doublets, 3 at a threshold of 0.3 and 13 at 0, in every setting |
| Clonotype clusters | scirpy 0.25.1 ir_dist and define_clonotype_clusters | The same 10x runs | The same cluster for every cell under nine combinations of metric (Hamming, Levenshtein, normalized Hamming), maximum distance, sequence, arms, dual chains and gene matches |
| Gene usage and junction lengths | scirpy 0.25.1 group_abundance and spectratype | 10x PBMC 10k with TCR and BCR, four pseudo samples from a hash of each barcode | Every count of V genes, J genes and V-J pairs of the VJ_1 and VDJ_1 slots, and of junction lengths in residues and nucleotides, equal for every pseudo sample |
| Variant statistics | mgatk 0.9.0 call_variants; Signac 1.17.1 IdentifyVariants; MiTo 2.0.0 | Signac’s test_mgatk, two synthetic truths and MiTo’s 50-cell mtscATAC and MAESTER fixtures; TF1 and CRC of Lareau et al. 2020 and the 4,045 cells of pL1000 with mgatk 0.9.0’s own table | Every statistic of every variant mgatk reports, 1,694 on the small inputs and 47,352 on pL1000: the counts exactly, the strand correlation to the three decimals mgatk writes, where 7 values halfway between two thousandths round the other way, the rest within a relative 10-12; Signac’s statistics for all 49,252 to 49,704 variants of TF1, CRC and pL1000 but the variance, which equals Signac’s without stabilization where every cell is covered, and the strand correlation of 2 TF1 variants at the reference’s last position; the same informative variants, 51, 13 and 332; MiTo’s depth and base quality for all 1,732 MAESTER variants, as described below |
| Variant clones | Signac 1.17.1 FindClonotypes; MiTo 2.0.0; lentiviral barcodes | A synthetic truth of 230 cells in six clones; TF1, CRC and pL1000 with its LARRY clones; MiTo’s MAESTER fixture with its barcodes | Adjusted Rand index 0.965 with the truth over the cells given a clone, against 0.82 for Signac’s on the same cells, and 0.994 with Signac’s clones on TF1; on pL1000, 0.068 with the LARRY clones against Signac’s 0.036; on MAESTER, 0.606 with the barcodes over 48 cells against MiTo’s 0.578 over 14, as described below |
| Genotype calls | GIFT’s reproducibility code (commit 35564bc) get_cell_genotypes and assign_genotypes, on giftwrap 0.6.2’s reading; the calls of published GoT tables | giftwrap’s 60-cell sample; the BC8 plex of GEO GSM9714721, 3,745 cells at 88 probes; the XV-seq tables of two patients of Single-cell_BPDCN; GEO GSE204845’s MDS01 and MDS04; GoT-Multi-ML’s example | All 10,058 of GIFT’s calls at 55 probes without swap probabilities, with posteriors within 10-6, and 9,962 with them; XV-seq’s genotyped cells and mutant shares, 25 at 20% and 248 at 14.5%; every call of MDS04 and 357 of 359 of MDS01; all 2,870 channel calls and 1,435 refined and merged calls of GoT-Multi’s example, as described below |
| Phylogeny clones | pycea 0.4.0 tl.clades, with read_nwk of treedata 0.4.0 reading the trees | PEtracer’s two clone trees of embryo E7.5-R1 on GEO GSM9925880 (1,032 leaves) and ConvexML’s 400-leaf test tree; 18 adversarial Newick trees | The same clades at all 21 cuts, six times and five depths of PEtracer’s trees and five of each of ConvexML’s; the same nodes, parents, names, lengths and times as treedata on all 18 adversarial trees |
| Highly variable genes | Scanpy 1.12.4, scikit-misc 0.5.3 | 892 CITE-seq cells, 36,601 genes | Seurat v3 selection Jaccard 0.998; Pearson residuals select the same genes, including the matched two-batch comparison |
| Doublet detection | Scanpy 1.12.4 pp.scrublet | 3,696 pancreas cells with 300 mixed-type and 60 same-type simulated doublets | AUROC 0.939–0.945 across four seeds, versus 0.913–0.919 for Scrublet |
| ATAC doublet detection | SnapATAC2 2.10.0 pp.scrublet; ATAC_nFeatures and ATAC_nCounts | The 462 cells of a default run of the 500-cell PBMC ATAC fixture with 60 planted doublets whose parents stay in the data, 30 with both parents’ counts and 30 thinned to a singlet’s depth | AUROC 0.945–0.980 for doublets of two distinct clusters in four planted sets, versus 0.964–0.988 for SnapATAC2, 0.84–0.87 for ATAC_nFeatures and 0.66–0.72 for ATAC_nCounts; 0.83–0.84 at the recipe’s defaults when the second parent may come from any other cluster, versus 0.952–0.966 for SnapATAC2 and 0.86 for ATAC_nFeatures, as described below |
| Marker statistics | SciPy; presto, Scanpy, BPCells | Synthetic tests and three datasets of about one million cells | Statistics checked against SciPy; AUC differences from presto and Scanpy are at most on shared cells, genes, groups, and expression |
| Group comparisons | SciPy and direct rank calculations | Independent and paired sample designs | Mann-Whitney, Kruskal-Wallis, Wilcoxon, Welch, ANOVA, and Dunn comparisons checked against reference calculations |
| WNN integration | Seurat 5.5.1 | 300 CITE-seq cells; 48 synthetic cells with three modalities | Same neighbors and weights/affinities within with matched candidate neighbors; 89% neighbor overlap with Seurat defaults |
| Symphony-style query correction | R Symphony 0.1.3 mapQuery | Four-cell, two-gene fixture | Coordinates agree on a small fixture with effectively zero correction |
| Cell-cycle scores | Scanpy 1.12.4 | 3,696 pancreas cells; 3,948 PBMCs | Scores agree within with the same control genes |
| AUCell and WAGGR | decoupler 2.2.0 | 3,948 PBMCs, 16 gene sets | Maximum score differences of and , respectively; identical after rounding to single precision |
| Graph-diffusion imputation | magic-impute 3.0.0 | 3,948 PBMCs, 200 genes | Values agree within on the same graph and diffusion time; median gene-wise correlation 0.95 with MAGIC defaults |
| iLISI and cLISI | scib-metrics 0.6.1 | Two PBMC datasets | Per-cell scores agree within on the same neighbors and perplexity |
| Fate probabilities | CellRank 2 | 3,696 pancreas cells; 1,110 LARRY progenitors | Correlations exceed 0.99999999 with matched graphs, pseudotime, terminal cells, and kernel settings; 0.985 on the pancreas with CellRank defaults |
| Initial and terminal states | CellRank 2.4.0 with pyGPCCA 1.1.0 | 3,696 pancreas cells, the fate mapping tutorial’s walks directed by CCAT and by its pseudotime, 2 to 12 states | Eigenvalues within , Schur vectors within and memberships within 10-10 at all 21 searches that CellRank completes; walks between the states within 10-12; each state takes CellRank’s 30 cells |
| Lineage drivers | CellRank 2.3.3 | 1,234 pancreas branch cells, 2,000 genes, four lineages | Correlations, confidence intervals, and significance results agree within 10-12 when both tools test every variable gene |
| Signaling entropy rate and CCAT | SCENT 1.1 (GitHub commit 02b4bc6), run only | 64 pancreas cells of four stages, on 5,778 genes and 57,584 links of the mouse STRING network | SR within a relative and CCAT within of SCENT’s values for every cell |
| GRNBoost2 networks | pySCENIC 0.12.1 | 2,612 PBMC multiome cells, 13,308 genes, 1,201 factors | Importance correlation 0.998; Jaccard 0.96 for the top 1,000 to 100,000 links |
| chromVAR deviations | chromVAR 1.34.1 | 879 motifs over 98,316 peaks | Deviations and z-scores agree within with the same motif matches and background peaks |
| Gene programs | Hotspot 1.1.1 | PBMC multiome cells and highly variable genes | Six programs contain 89% of the 503 genes in Hotspot’s ten modules; adjusted Rand index 0.45 on shared genes |
In the LARRY lineage-tracing data, Lineage tracing scores fate probabilities computed from expression against the fates that sister cells took: the mean predicted neutrophil share of each clone separates the 916 clones of 1,362 day-2 progenitors that went mostly to neutrophils or to monocytes with an AUROC of 0.78 (95% interval 0.75 to 0.81), from 0.68 in the quarter of progenitors earliest in pseudotime to 0.87 in the latest. A comparison with CellRank on 1,110 day-2 progenitors and 725 clones gave an AUROC of 0.76 (95% interval 0.73 to 0.80) with both tools. Unlike the rows of the table, these AUROCs score a prediction against observed fates rather than the agreement between tools.
Numerical and graph checks¶
PCA and LSI: the PCA comparisons are described in Principal component analysis. Streaming LSI is checked against the leading subspace of a dense singular-value decomposition and across different block sizes.
Neighbor search: recall is measured against exact nearest neighbors, as described in Neighbor search. Regression tests also compare the returned neighbors with exact searches on clustered synthetic data.
Harmony2: ridge regression, batch pruning, cluster-assignment updates, and the clustering objective are checked against direct dense calculations of the published equations. A synthetic benchmark with two groups of batches that share no cell types checks that batch mixing improves while cell-type purity stays at its uncorrected level.
Leiden and Paris: native Leiden is checked against brute-force calculations on small random graphs, connectedness of every cluster, and identical labels on one to four threads. Tests also check that merging two clusters cannot improve modularity. Against igraph, modularity agrees within about 0.001 on graphs from 808 to ten million cells. Paris hierarchies reproduce the scikit-network clades on tie-free graphs.
Population Balance Analysis: Weinreb et al. define the potential as , with the random-walk Laplacian of the k-nearest-neighbor graph, its pseudoinverse and the net rate of cell gain or loss at each cell’s state (main text, and Theorem 3 of the SI Appendix). The default solves for by MINRES on the symmetric Laplacian . CyteArc drops the factor and makes negative at sources and positive at sinks, the reverse of the paper’s sign, so that the potential rises from sources to sinks; pseudotime then rescales it to . On small graphs it equals NumPy’s dense pseudoinverse within 10-8 of its largest value, and on synthetic graphs of a million cells its random-walk residual stays below of the source-sink vector.
method="truncated", the potential of releases before 1.4.0, keeps the 29 smallest nonzero singular modes: on 3,696 pancreas cells, that solution has Spearman correlation 0.99999 with the full dense potential and a maximum difference of on a unit scale, while on a synthetic graph of 20,000 cells in 150 weakly joined clusters, whose slow modes outnumber the kept ones, the correlation falls to 0.971 and the largest difference rises to 0.19.Fate and lineage analysis: fate probabilities are the absorption probabilities of a random walk on the graph whose edges toward a cell of lower pseudotime, or lower direction score, keep of their weight, with the
betaargument and the drop in the score rescaled to . Sparse fate solutions are checked against dense Dirichlet solutions, and fate maps directed by a score against the gambler’s ruin probabilities of a walk on a path. Lineage markers, drivers, and profiles are checked against dense recomputations from expression and fate probabilities. Lineage curves recover a known noisy curve, and cluster trees recover a branched cluster layout. Lineage membership recovers the known lineages of a branching trajectory and calls a dead end off its trunk none. A cell follows each lineage whose probability is still at leastbandtimes its trunk probability, so branch points sit where cells give up that share of one of two lineages. On branching trajectories with a sink ten times smaller than the other, a branch four times longer than the other, or a fate that takes 4% to 7% of the trunk’s probability, also when that fate’s branch or sink holds most of its weight, every trunk cell follows every lineage, every cell that follows one lineage alone holds it as its most likely fate, and every pair parts after the trunk’s last cell. Cells on a long branch keep a common lineage while they hold half its trunk probability, so a pair can part after the first cell of its sinks: at pseudotime 0.344 against 0.333 for a branch four times longer than the other, and at 0.292 against 0.194 where a fate of 7% has a branch of 280 cells. A fate map that a score directs over two graph components measures each lineage in each component of its sink cells against that component’s trunk, also when both components end in the same sinks with different splits. On the pancreas cells, whose trunk gives Delta 0.04 against 0.45 for Beta, the trunk follows all four lineages and every pair parts among the Pre-endocrine cells.Potency: the signaling entropy rate is checked against the entropy rate of the walk’s explicit transition matrix and stationary distribution on random networks, on which the walk weighted by the leading eigenvector reaches , and against values worked by hand on paths of three and four genes. CCAT is checked against NumPy’s correlation, smoothing against the dense solve , and the operation’s scores against counts read apart from its stream, in blocks of 1, 7 and all cells.
Cell calling and doublets: tests check EmptyDrops likelihoods and simulations against direct calculations, and reproduce calls across thread counts. Doublet tests check that simulated parents come from the same capture and compare neighbor counts with exact searches. ATAC tests check that the projection of the cells’ counts gives back their stored LSI coordinates over every peak and over prevalent peaks, with and without
renormalize_subset, that a doublet’s coordinates match values worked by hand, and that each cell’s score counts the simulated doublets among its exact Euclidean neighbors in the LSI.
Interpreting the comparisons¶
Cell calling and sample tags. EmptyDrops comparisons use matched model precision and retention thresholds. CyteArc estimates the precision and finds the barcode-rank knee by spline curvature; DropletUtils 1.30 defaults to a multinomial model and traces the knee differently. The HTO comparison uses k-means and a positive quantile of 0.99. CyteArc names a singlet by its one positive tag, while Seurat names it by its highest CLR value; these agree in the comparison pool but can differ in strongly unbalanced pools. Seurat stops when a tag’s background cluster holds only zeros, which has no negative-binomial fit. CyteArc then cuts that tag at 0 when the counts carry no ambient tags, so that each cell holds counts of its own tags only: no background cluster holds counts of its tag in most of its cells, and at most half of the cells hold counts of more than one tag. Otherwise it refuses, naming the tags, which are unused in the cells of their background, as when pools of cells use different tags.
ATAC doublets. Each planted doublet adds the counts of a fixture cell and of a cell of another Leiden cluster, and both cells stay in the data as singlets. When the second cell comes from a cluster whose LSI centroid lies farther from the first cell’s than the median pair of clusters does, the four planted sets score an AUROC of 0.945 to 0.980 at the recipe’s defaults, and 0.936 to 0.987 for the doublets at a singlet’s depth, whose detected peaks reach only 0.77 to 0.82. SnapATAC2’s pp.scrublet, which embeds the cells and its simulated doublets together in one spectral embedding, scores 0.964 to 0.988 on the same sets, with all peaks or 10,000 of them, and its doublet_probability above 0.5 calls 30 to 41 of the 60 doublets with 2 to 7 of the 462 singlets. When the second cell may come from any other of the ten clusters of a smaller run, CyteArc’s score falls to 0.83 to 0.84 at the recipe’s defaults across four scoring seeds, and 0.77 to 0.79 with 2,000 peaks and 6 LSI dimensions, against 0.86 for ATAC_nFeatures and 0.952 to 0.966 for SnapATAC2: its half of the doublets whose parents’ clusters lie farther apart scores 0.94 to 0.97, and the closer half 0.70 to 0.75. save_k from 4 to 30 gives 0.79 to 0.85, so the number of neighbors does not explain the gap. SnapATAC2 differs in embedding its simulated doublets with the cells, where CyteArc projects them into an uncentered LSI fitted on the cells alone.
Guide calls. The guide-calling comparisons ran on the A549 screen with the settings of each reference: fixed with min_umi=5 against pertpy’s assign_by_threshold(5), top_guide with min_umi=5 and fraction_threshold=0 against assign_to_max_guide(5), and top_guide with min_umi=1 and fraction_threshold 0.5 or 0.7 against crispat’s ga_ratio at the same fraction. Where pertpy assigns a cell its most expressed guide when that guide has at least 5 counts, top_guide follows the SCEPTRE book and bounds the cell’s total guide UMIs, so it calls every cell that pertpy assigns, with the same guide, and also the cells whose guide UMIs reach 5 while their top guide’s do not. The two floors call the same cells whenever fraction_threshold is at least 1 - 1 / min_umi, such as 0.8 with the default floor of 5, and with any fraction at a floor of 1, as in the comparison with crispat. With its default of 500 optimizer steps, crispat stops short of convergence on 88 of the 91 guides it fits; with 10,000 steps, CyteArc’s Poisson-Gaussian fit reproduces every one of crispat’s 7,392 calls. For 2 guides, SRPK1-1 and TPR-2, crispat fits no model, while CyteArc and pertpy call them. With method="gaussian", the smallest UMI count that CyteArc calls for a guide equals the threshold that Cell Ranger reports on 90 of 93 guides and is one UMI above it on the other 3. The comparison uses the smallest called count because Cell Ranger reports the smallest count it called, while CyteArc’s threshold is the model’s cutoff, which sits lower when no cell holds the counts in between. In its ratio method, crispat keeps every guide tied at a cell’s largest count, while CyteArc calls the first of them in assay order; no tie reached the fractions compared here.
Perturbation efficiency. Cell Ranger estimates its fold changes with sSeq, which shrinks them, so they correlate with CyteArc’s rather than equal them. The sign comparison covers the rows whose fold change is finite in CyteArc. The control cells hold no UMI of ACE2, DPP4 or TMPRSS2, so their 3 targets and 6 guides have the status "no_control_expression" and no fold change, while Cell Ranger reports positive fold changes for them with a p-value of 1. The perturbed cells of CTNNB1 and of 4 guides hold no UMI of their target gene, which gives a fold change of minus infinity in CyteArc and a negative one in Cell Ranger. Cell Ranger also lists 22 rows for pairs of targets, one for each gene of a pair, from the cells whose guides target both genes; CyteArc’s rows cover cells with one target.
E-distance. scPerturb’s edist computes the same statistic as CyteArc, with squared Euclidean distances and within-group means over distinct pairs. pertpy’s edistance uses Euclidean distances and averages within each group over all pairs, each cell with itself included, so its values differ; with squared distances set on its metric and its within-group means converted to distinct pairs, they match CyteArc’s within a relative . Both tools adjust their p-values by Holm-Sidak by default, with the control row among the rows, which no guide can pass at 1,000 permutations. Adjusted by Benjamini-Hochberg instead, scPerturb’s p-values give the same rows below 0.05 as CyteArc’s for all 45 targets and 87 of 88 guides, and so do pertpy’s. With 1,000 permutations, the tests by target took 0.15 s in CyteArc, 62 s in etest and 5.2 s in DistanceTest.
Mixscape. On the THP-1 screen of Seurat’s Mixscape vignette, signature finds the same 20 nearest control cells as CalcPerturbSig for every cell, and its values equal minus Seurat’s within float32 rounding, at most . mixscape tests the same genes as RunMixscape for all 25 targets and finds the same DE genes, with p-values within a relative of those of FindMarkers; on the same values, its rank-sum kernel gives the p-values of SciPy’s mannwhitneyu to the last bit. Every one of the 20,729 cells gets Seurat’s class, 5,112 KO and 13,231 NP, with Seurat’s random seed at 0, 1 or 2, which leaves Seurat’s calls unchanged, and the posteriors differ by at most , because the two EM implementations stop at slightly different points of the same fit. pertpy’s Mixscape gives 96.8% of the cells the same class: it tests only the highly variable genes, adjusts its p-values by Benjamini-Hochberg, stops its EM at a looser tolerance, and weighs its posterior by the mixture weights, so it calls fewer KO cells for weak targets. On one thread, signature took 3.8 to 5.1 s and mixscape 10.4 to 11.5 s, 7.4 to 7.5 s on four, against 13.2 s for CalcPerturbSig and 587 to 830 s for RunMixscape with base R’s Wilcoxon test, at peaks of 0.9 and 1.6 GiB against 4.6 and 7.7 GiB.
Association tests. On the THP-1 screen, with the same cells, guide assignments and covariates as sceptre, associations passes the same 40,517 of 50,000 pairs through QC, with the same nonzero cell counts. Its statistics equal sceptre’s within 10-6 for 39,062 pairs, with a median difference of ; for 765 more, mostly cell-cycle genes such as RAD54L, SPC25 and HJURP, a negative binomial size of 0.01 reproduces sceptre’s statistic within 10-5, although the likelihood peaks at larger sizes, where CyteArc’s size lies. The random sets differ between the tools, so the p-values differ by Monte Carlo noise: the median difference of log10 p is 0.041 and the Spearman correlation of -log10 p 0.986, against 0.040 and 0.992 between two sceptre runs on shuffled cells, and over the pairs whose statistics agree the discoveries at FDR 0.1 overlap with a Jaccard index of 0.957, against 0.959 between two sceptre runs. The calibration check finds no false discovery among 40,517 negative-control pairs from 100 groups of 4 control guides, as sceptre does. sceptre floors p-values at 10-250 and computes skew-normal tails below about 10-10 inaccurately, so such p-values compare on a capped scale only. On a four-core laptop, the call that runs the discovery pairs, the positive controls and the calibration check took 126 s on four threads and 198 s on one, at peaks of 2.4 and 2.2 GiB, against 829 s for sceptre’s three calls run one after another, or 585 s with its discovery on four processes, at peaks of 1.8 and 4.2 GiB.
Association tests at high MOI. On sceptredata’s high-MOI example, with sceptre’s cells, its guide calls at 5 UMIs, which call_guides(method="fixed", min_umi=5) reproduces in all 53,292 cases, and its default high-MOI formula with the batch as sample_column, associations(moi="high") gives every discovery, positive-control and calibration pair the nonzero cell counts and QC of sceptre. Its statistics equal sceptre’s within 10-6 for 17,809 of the 18,142 tested pairs of every target with every gene, with a median difference of . 85 of the others are all the pairs of three sparse genes, MT1G, NKG7 and SYT3, expressed in 327 to 430 cells: a negative binomial size of 0.01 reproduces sceptre’s statistics within , although the likelihood there is lower by 36 to 186 than at CyteArc’s sizes, Poisson for SYT3. The other 248, all pairs of 17 genes, differ by at most , as much as a change of the gene’s size by at most 0.02% moves them, which leaves the likelihood within 10-4 of its maximum. Log2 fold changes agree within . sceptre’s standard error of the fold change is over the treatment cells, from the residuals at the fold change , for all 18,142 pairs; CyteArc’s comes from the negative binomial variance and the information of the fit, and is a median 1.02 times sceptre’s, 0.94 to 1.08 for 90% of the pairs. The random sets differ between the tools, so the p-values differ by Monte Carlo noise: with conditional resampling over every target and gene, the median difference of log10 p is 0.034, the Spearman correlation of -log10 p 0.986 and the Jaccard index of the discoveries at FDR 0.1 0.94, against 0.034, 0.987 and 0.94 between two CyteArc runs with different seeds; over the 600 tested cis pairs they are 0.017, 0.997 and 0.92, against 0.015, 0.997 and 0.92 between two sceptre runs on shuffled cells. The null statistics of 20 pairs, the 499 of round 1 or the 4,999 of round 2 by each resampling, have the mean, standard deviation and skewness of sceptre’s within 0.12, 0.1 and 0.27, and a two-sample Kolmogorov-Smirnov test gives a p-value below 0.05 for 1 of the 40 comparisons. The pairs split between the rounds as sceptre’s do, 95.9%, 4.1% and 0.02% with conditional resampling, all 10 positive controls fall below 10-50 in both tools, and the calibration checks are excellent or mild in both, with 0 to 2 false discoveries among 600 or 18,142 negative-control pairs. With permutations, sceptre shares one set of permutations among all targets, so the null statistics of one gene under two targets correlate at 0.75 to 0.94, while CyteArc draws each target’s sets, as with conditional resampling. On Modal, in containers of 1 CPU and 6 GiB like sceptre’s, the call that tests every target with every gene by conditional resampling, with the positive controls and the calibration check, took 151.9 s on one thread, at a peak of 1,375 MiB, against 1,170 s for sceptre’s three calls, at a peak of 889 MiB; in a container of 4 CPUs it took 37.9 s on four threads. CyteArc’s times are those of a second call, after the first had compiled its kernels.
Calibration at genome scale. On the K562 essential CRISPRi screen of Replogle et al., 310,385 cells with 2,057 targets and 97 non-targeting guide pairs, the low-MOI tests of every target against 2,000 highly variable genes, with the default covariates, passed 3,928,249 of 4,114,000 pairs through QC, and the positive controls found 1,337 of the 1,361 targets whose own gene passes QC. The calibration check graded the run severe, with 37 false discoveries among 806,245 negative-control pairs. The 37 fell in 18 of the 97 non-targeting guide pairs, 12 of them in one pair, as large shifts of single genes, such as falls of 2.2 and 1.7 log2 for the adjacent paralogs MAGEA6 and MAGEA3 in one pair. The cells of these guide pairs spread over the 48 GEM groups like the other control cells, and their GEM composition predicts shifts of at most 0.03 log2, so these guide pairs act on genes of their own, as off-target repression would, rather than the test being miscalibrated.
Perturbation profiles. Replogle et al.'s methods leave four choices open, which rebuilding their K562 essential profiles from the cells settles: the row sums of the stored counts scale each cell’s depth, while the totals stored with the file, which also count genes left out of the matrix, miss the published profiles by up to 1.04; the standard deviation divides by n - 1, while n misses them by up to 0.09; every non-targeting cell of a GEM group sets its z-scores; and every cell of a guide pair enters the pair’s profile. With these choices, every profile correlates with its published profile at 1 - or more.
Perturbation clusters. Replogle et al. clustered the 1,973 perturbations of their genome-wide K562 screen with the strongest effects by HDBSCAN, from the hdbscan package, on 1 minus the Pearson correlation of their pseudo-bulk profiles, and Table S3 lists 64 clusters. Their published profiles give these distances once the features are chosen; the Anderson-Darling statistics that chose their 2,319 features are unpublished, so 2,236 features approximate them: the ten largest absolute mean z-scores of each profile, with its own target masked, and the expressed genes whose profiles vary most. On these distances, the functions that cluster calls give the labels of a direct call of scikit-learn’s HDBSCAN(metric="precomputed", min_cluster_size=4, min_samples=2, cluster_selection_method="eom") exactly, and so do the distances that CyteArc computes from the profiles, which differ from the reference distances by at most . The labels match Table S3 with an adjusted Rand index of 0.977 over all 1,973 perturbations and 1.000 over the 700 that both assign, 52 of the 64 clusters exactly; Mediator, the 40S and 60S ribosome, the RNA exosome, the proteasome, the chaperonin and the m6A writer keep the members of the table and leave out the same ones. scikit-learn’s min_samples counts the point itself, so the package’s min_samples=1 is 2 here, and on these distances 1 and 2 give the same labels. Clustering the 1,973 profiles, with the order and the layout, takes 2.5 s on two threads.
Mitochondrial variants. informative reproduces mgatk 0.9.0’s variant_stats when it scores mgatk’s cells, the counts exactly and the means, variances, VMRs and heteroplasmies within a relative 10-12: on pL1000 these are the 4,045 cells of mean depth above 10 that mgatk’s own table lists, and every column of its 47,352 variants agrees. CyteArc also scores the variants that one strand alone reads, summed over the cells, which mgatk leaves out. Signac’s IdentifyVariants gives the same pooled mean, confidently detected cells, cells over 5, 10 and 20%, strand correlation and mean coverage, except the strand correlation at the reference’s last position, where Signac counts an empty entry that sizes its matrices. Signac counts an uncovered cell as frequency 0 and by default replaces the frequency of a cell with depth below 10 by the pooled mean, so its variances and VMRs differ where coverage is sparse; where every cell is covered, as at every TF1 site, the variance equals Signac’s without stabilization. On the 11 sparsely covered cells of Signac’s fixture, preset="atac" keeps Signac’s 9 informative variants and 13 more whose VMR Signac’s zeros lower; on TF1, CRC and pL1000 the selections are identical. On MiTo’s MAESTER fixture, the mean depth and MAESTER’s base quality agree with MiTo’s for all 1,732 variants of rCRS positions, and the alternative and depth counts with all 80,956 entries of MiTo’s allele frequency matrix there; MiTo also scores the reference’s N at 3107, which is no site of the counts.
Clones follow Signac’s FindClonotypes on Seurat’s shared-neighbor graph, built exactly, and differ where cells were not covered. Signac counts an uncovered cell as frequency 0, so a cell not read at a variant looks like one that lacks it, and assigns every cell to a cluster; CyteArc compares cells over the variants both cover and leaves without a clone the cells that show no informative variant, 568 of CRC’s 1,613. On TF1, the 11 clones match Signac’s 11 with an adjusted Rand index of 0.994. On CRC, the 1,045 cells with a clone split into 12 clones against Signac’s 9, an adjusted Rand index of 0.63. These comparisons use all 1,613 CRC cells with preset="atac", no masks and the default resolution of 1; Mitochondrial lineage tracing keeps the 1,459 singlets with enough mitochondrial reads, masks the "numt" and "artifact_prone" variants and calls clones at resolution 0.75, which gives 11 informative variants and 895 cells in 10 clones. pL1000’s lentiviral barcodes give 256 LARRY clones among 1,362 cells, more than its 332 informative variants resolve: CyteArc’s 75 clones reach an adjusted Rand index of 0.068 and an adjusted mutual information of 0.398 with them, against 0.036 and 0.204 for Signac’s 30. Cells with collinear profiles, such as cells that each show one informative variant, tie, take the same few cells as neighbors and join every other such cell, as in Seurat’s graph, which holds 134,420 joins on CRC and 484,273 on pL1000. On MiTo’s 50 MAESTER cells of five lentiviral clones, preset="rna" keeps 470 variants and the clones of 48 cells reach an adjusted Rand index of 0.606 with the barcodes, against 0.578 for MiTo’s 14 cells, whose clones CyteArc’s equal.
Genotype calls. method="gift" was compared with the genotype functions of GIFT’s reproducibility code, run on giftwrap 0.6.2’s reading of the same files with a gapfill likelihood of 0.01 per edit. On the BC8 plex of GEO GSM9714721, whose probes the import gives the UMIs and reads that giftwrap’s collect_counts gives them, the 10,058 calls of 3,258 cells at 55 probes equal GIFT’s without swap probabilities, and the 252 posteriors compared agree within 10-6. With the swap probabilities that the reproducibility code holds for that library, 9,962 calls agree: giftwrap stores the reads of each cell’s UMIs per probe and gapfill, so each UMI takes its entry’s reads per UMI, where GIFT’s per-UMI tables give each UMI its own. GIFT learns its swap probabilities and the gapfill error rates of patient samples from controls, which CyteArc leaves to the caller. method="threshold" reproduces GoT’s published calls: Single-cell_BPDCN’s XV-seq calls give the genotyped cells and mutant shares that its 4.2_Genotyping_stats.txt records, 25 cells of Pt1Dx at TET2 with 20% mutant and 248 of Pt5Dx at ZRSR2 with 14.5% mutant; GSE204845’s tables follow the rule they state at all 1,130 cells of MDS04 and 357 of the 359 of MDS01, whose 2 others hold 4 wild-type UMIs and 1 mutant UMI but no call; and GoT-Multi’s example calls both channels of each of its 1,435 rows by the same rule. method="source" adopts GoT-Multi’s refined calls, which reject 19 mutant calls, and the merged calls of the 809 cells and targets that its model did not refine.
Feature selection and scores. The Seurat v3 trend agrees with scikit-misc’s interpolated LOESS within 10-12 on the log10 scale. Four genes tied at the selection boundary account for the single-batch selection difference. In the two-batch comparison, eight selected genes differ (Jaccard 0.996) because floating-point ties in batch means affect the fitted trend. CyteArc clips each batch’s Pearson residuals using that batch’s cell count; the comparison sets the clip explicitly to match Scanpy. With independently sampled cell-cycle control genes, pancreas score correlations are 0.995 for S and 0.997 for G2/M.
Ambient RNA. CyteArc uses seeded systematic sampling to round removed counts. Summed across cells, removal in bands of ambient-gene abundance stays within 2.5% of the unrounded removal on PBMC 1k and within 0.4% on PBMC 10k. The implemented SoupX steps are listed above.
Mapping. The small Symphony fixture checks projection and correction mechanics; it does not establish agreement on substantial batch correction. Label-transfer vote fractions measure neighbor support, not a calibrated probability that a cell label is correct. The mapping tutorial covers confidence and projection diagnostics.
Regulons. GRNBoost2 links are not bit-identical to pySCENIC’s because its Docker image uses an older scikit-learn tree implementation. For context, two pySCENIC seeds give importance correlation 0.946 and link Jaccard 0.64 in the same comparison. cisTarget AUC, NES, recovery envelopes, and leading edges reproduce all 297 pySCENIC regulons and 2,184 enriched motif rows within 10-15 when supplied the recovery curves that pySCENIC 0.12.1 assigns. CyteArc uses each motif’s own curve, rather than another enriched motif’s curve as pySCENIC sometimes does. On pySCENIC’s network, the regulon names agree but median target Jaccard is 0.25; CyteArc’s targets are more consistent across GRNBoost2 seeds (median Jaccard 0.33 versus 0.20–0.24). AUCell divides recovery area by the maximum attainable for the regulon’s size, as R AUCell and decoupler do, rather than by the area of the whole ranking window as pySCENIC does.
Chromatin activity. With an even sequence background, motif matching recovers every motifmatchr match (Jaccard 0.9998); the additional 2,510 matches are four-base motifs. CyteArc uses proper log-odds background adjustment and separate forward- and reverse-strand thresholds. Before the separate thresholds were introduced, end-to-end motif z-scores correlated at a median of 0.96 with chromVAR and population means at 0.995; these end-to-end values have not been measured again since. On the multiome sample, CUT&RUN and ChIP-seq peak activity is highest in the expected populations for SPI1, LEF1, PAX5, EBF1, POU2F2, and POU2AF1, but not for BCL11B binding measured in Jurkat cells. Against ChIP-Atlas binding near gene starts, factor-to-gene links exceed random binding expectations by 8% for CyteArc regulons, 7% for pySCENIC regulons, and 3% for the top GRNBoost2 targets.
Gene programs. The Hotspot comparison used the igraph Leiden backend. The native backend also forms six programs in the saved regulon analysis, each within 11 genes of its earlier size. Hotspot separates the T-cell, monocyte, and B-cell programs into finer modules. Independent noise profiles form no programs, but smoothed cells can produce spurious ones: the membership threshold screens chance groupings and is not a significance test of the discovered programs.
Current boundaries¶
Inputs and provenance¶
CyteArc starts from count matrices; it does not process FASTQ files or perform alignment. Use tools such as Cell Ranger, STARsolo, or alevin-fry first.
Provenance covers supported store-backed operations. It does not capture arbitrary Python calculations, the full software environment, hardware, or study-level experimental records, and it describes computational relationships rather than scientific validity.
Methods outside CyteArc¶
CyteArc does not ship every method in the single-cell ecosystem. It does not provide scVI, Scanorama, RNA velocity, peak calling, FRiP/TSS APIs, or a complete replicate-aware differential-expression framework. Marker searches report cell-level Mann-Whitney statistics, AUC, and within-group multiple-testing correction, which are not a substitute for inference across biological replicates. WNN integration requires two or more cell-aligned modalities, and CyteArc does not align unpaired modalities. Fate mapping does not use RNA velocity: a pseudotime or a per-cell direction score orients its walk, and trajectory.states proposes terminal states from that walk, which need checking with markers. A lineage tree proposes candidate sinks from clusters, but it can chain similar terminal clusters. Imputation is intended for exploratory visualization rather than differential expression. Export selected data to AnnData or another supported format when a downstream method is outside CyteArc.
- Lun, A. T. L., Riesenfeld, S., Andrews, T., Dao, T. P., Gomes, T., participants in the 1st Human Cell Atlas Jamboree, & Marioni, J. C. (2019). EmptyDrops: distinguishing cells from empty droplets in droplet-based single-cell RNA sequencing data. Genome Biology, 20(1), 63. 10.1186/s13059-019-1662-y
- Stuart, T., Butler, A., Hoffman, P., Hafemeister, C., Papalexi, E., Mauck, W. M., Hao, Y., Stoeckius, M., Smibert, P., & Satija, R. (2019). Comprehensive Integration of Single-Cell Data. Cell, 177(7), 1888-1902.e21. 10.1016/j.cell.2019.05.031
- Lause, J., Berens, P., & Kobak, D. (2021). Analytic Pearson residuals for normalization of single-cell RNA-seq UMI data. Genome Biology, 22(1). 10.1186/s13059-021-02451-7
- Patikas, N., Yao, H., Madhu, R., Raychaudhuri, S., Hemberg, M., & Korsunsky, I. (2026). Integration of large, complex single-cell datasets with Harmony2. bioRxiv. 10.64898/2026.03.16.711825
- Korsunsky, I., Millard, N., Fan, J., Slowikowski, K., Zhang, F., Wei, K., Baglaenko, Y., Brenner, M., Loh, P., & Raychaudhuri, S. (2019). Fast, sensitive and accurate integration of single-cell data with Harmony. Nature Methods, 16(12), 1289–1296. 10.1038/s41592-019-0619-0
- Kang, J. B., Nathan, A., Weinand, K., Zhang, F., Millard, N., Rumker, L., Moody, D. B., Korsunsky, I., & Raychaudhuri, S. (2021). Efficient and precise single-cell reference atlas mapping with Symphony. Nature Communications, 12(1). 10.1038/s41467-021-25957-x
- Hao, Y., Hao, S., Andersen-Nissen, E., Mauck, W. M., Zheng, S., Butler, A., Lee, M. J., Wilk, A. J., Darby, C., Zager, M., Hoffman, P., Stoeckius, M., Papalexi, E., Mimitou, E. P., Jain, J., Srivastava, A., Stuart, T., Fleming, L. M., Yeung, B., … Satija, R. (2021). Integrated analysis of multimodal single-cell data. Cell, 184(13), 3573-3587.e29. 10.1016/j.cell.2021.04.048
- Traag, V. A., Waltman, L., & van Eck, N. J. (2019). From Louvain to Leiden: guaranteeing well-connected communities. Scientific Reports, 9(1). 10.1038/s41598-019-41695-z
- Bonald, T., Charpentier, B., Galland, A., & Hollocou, A. (2018). Hierarchical Graph Clustering using Node Pair Sampling. arXiv. 10.48550/ARXIV.1806.01664
- Weinreb, C., Wolock, S., Tusi, B. K., Socolovsky, M., & Klein, A. M. (2018). Fundamental limits on dynamic inference from single-cell snapshots. Proceedings of the National Academy of Sciences, 115(10). 10.1073/pnas.1714723115
- van Dijk, D., Sharma, R., Nainys, J., Yim, K., Kathail, P., Carr, A. J., Burdziak, C., Moon, K. R., Chaffer, C. L., Pattabiraman, D., Bierie, B., Mazutis, L., Wolf, G., Krishnaswamy, S., & Pe’er, D. (2018). Recovering Gene Interactions from Single-Cell Data Using Data Diffusion. Cell, 174(3), 716-729.e27. 10.1016/j.cell.2018.05.061
- Teschendorff, A. E., & Enver, T. (2017). Single-cell entropy for accurate estimation of differentiation potency from a cell’s transcriptome. Nature Communications, 8(1). 10.1038/ncomms15599
- Teschendorff, A. E., Maity, A. K., Hu, X., Weiyan, C., & Lechner, M. (2020). Ultra-fast scalable estimation of single-cell differentiation potency from scRNA-Seq data. Bioinformatics, 37(11), 1528–1534. 10.1093/bioinformatics/btaa987
- Lange, M., Bergen, V., Klein, M., Setty, M., Reuter, B., Bakhti, M., Lickert, H., Ansari, M., Schniering, J., Schiller, H. B., Pe’er, D., & Theis, F. J. (2022). CellRank for directed single-cell fate mapping. Nature Methods, 19(2), 159–170. 10.1038/s41592-021-01346-6
- Hastie, T., & Stuetzle, W. (1989). Principal Curves. Journal of the American Statistical Association, 84(406), 502–516. 10.1080/01621459.1989.10478797