Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Methods and limitations

Supported workflows

CyteArc provides complete workflows for:

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.

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.

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.

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:

MeasureUMAPUMAP, parallelLocalMAP
Share of 10 nearest PCA neighbors kept among the 10 nearest in the layout0.0280.0260.068
Share of 50 nearest PCA neighbors kept among the 50 nearest in the layout0.0620.0610.122
Share of 15 nearest layout neighbors of the same cell type0.3820.3660.467
Share of random triplets whose distance order the layout keeps0.6620.6720.700
Rank correlation of distances between cell-type centroids0.5650.5800.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 x=log⁡2(10,000 c/t+1.1)x = \log_2(10{,}000\,c/t + 1.1), where cc is the gene’s count, tt the cell’s count over all its genes and 1.1 the pseudocount of the papers, so a network gene without counts enters at log⁡21.1\log_2 1.1. 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.

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 d←αPd+(1−α)d0d \leftarrow \alpha P d + (1 - \alpha) d_0, where PP is the row-normalized graph, d0d_0 the unsmoothed scores and α\alpha the smoothing argument, 0.9 by default. The steps continue until dd 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 [0,1][0, 1] 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.

SystemDatasetCellsKnown order
Pancreas, mouseBastidas-Ponce et al. 20193,696ductal, Ngn3 low and high, pre-endocrine, then alpha, beta, delta or epsilon
Bone marrow, humanZeng et al. 202511,700HSC, MPP, then erythroid (5 stages), monocyte (4) or B cell (7)
Thymus, mouseSteier et al. 202310,500double negative, double-positive blast, double positive, CD4 or CD8 single positive, then mature
Hippocampus, adult mouseDe Donno et al. 20266,503neural progenitor, neuroblast, neuron; OPC, oligodendrocyte
Gut, humanElmentaite et al. 2020, healthy donors2,739crypt stem cell, transit amplifying, then enterocyte or goblet cell
Epidermis, humanCheng et al. 20185,212basal, spinous, granular
Thymus, humanPark et al. 20206,000double negative, double positive, then CD4 or CD8 T cell
Neocortex, human, nucleiWang et al. 20257,500radial glia, intermediate progenitor, glutamatergic neuron; OPC, oligodendrocyte
Retina, human fetus, nucleiZuo et al. 20248,000progenitor, then ganglion, amacrine, horizontal, cone, rod, bipolar or Müller glial cell
Placenta, humanVento-Tormo et al. 20184,238villous cytotrophoblast, then syncytiotrophoblast or extravillous trophoblast
Limb muscle, human embryoZhang et al. 20243,965muscle progenitor, myoblast, myocyte
Ureter, humanFink et al. 20224,500basal, intermediate, umbrella cell
Small intestine, mouseZwick et al. 20244,500stem cell, transit amplifying, enterocyte
Germ cells, mouse fetusGarcia-Alonso et al. 20223,598primordial germ cell, then oogonium and oocyte, or male germ cell
Testis, humanTabula Sapiens Consortium 2024, one donor3,180male germ cell, spermatogonium, spermatocyte, spermatid

The second table reports:

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.

SystemSRSR, smoothedCCATCCAT, smoothed
Pancreas0.760.890.810.90
Bone marrow0.370.410.300.34
Thymus, mouse-0.08-0.060.370.54
Hippocampus0.360.300.390.43
Gut0.630.670.610.59
Epidermis-0.42-0.63-0.37-0.51
Thymus, human0.06-0.020.260.55
Neocortex0.080.010.080.03
Retina0.110.070.160.16
Placenta0.060.060.190.20
Limb muscle0.210.210.240.25
Ureter0.310.410.350.49
Small intestine, mouse0.840.880.520.47
Germ cells, mouse0.210.240.440.70
Testis0.320.440.530.78
Mean ρ0.260.260.330.39
Mean ρ, half thinned0.250.280.310.39
Mean depth AUC0.690.580.710.59

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:

  1. ARPACK’s implicitly restarted Arnoldi iteration, through SciPy’s eigs, finds the walk’s n_states + 1 eigenvalues of largest real part to machine precision, from a fixed start vector.

  2. 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 XX 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 XX is invariant before it goes on.

  3. The memberships are χ=XA\chi = XA. Following Weber’s Algorithms 3.8 to 3.11, AA starts as the inverse of the rows of XX nearest the corners of the simplex that holds the rows. Any AA is made feasible, so that every cell’s memberships are nonnegative and sum to one. Nelder-Mead, SciPy’s fmin with its defaults as CellRank runs it, then maximizes crispness, trace(D~−1χ⊤χ)/nstates\mathrm{trace}(\tilde D^{-1}\chi^\top \chi)/n_\mathrm{states} with D~\tilde D the diagonal of χ⊤1\chi^\top 1, 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, but fmin’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 records crispnessOptimization="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.

  4. The walk between the states is Pc=(χ⊤χ)−1χ⊤PχP_c = (\chi^\top \chi)^{-1} \chi^\top P \chi. Its left eigenvector for the eigenvalue one is each state’s share of a long walk’s time, χ⊤π\chi^\top \pi with π\pi the walk’s stationary distribution.

  5. Each state’s cells_per_state most 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 to fate as sink_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:

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 7×10−37 \times 10^{-3} 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 200 (nstates−1)2200\,(n_\mathrm{states} - 1)^2 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

MethodReferenceDataMain result
Cell callingDropletUtils 1.30 emptyDrops10x PBMC 1k and 10kIdentical 1,045 calls on PBMC 1k; Jaccard 0.9975 on PBMC 10k with matching settings
Ambient RNA correctionSoupX 1.6.210x PBMC 1k and 10kIdentical ambient profiles; contamination fractions agree within 2×10−82 \times 10^{-8} and cell-level subtraction within 10-12 counts before rounding
HTO demultiplexingSeurat 5.5.1 HTODemux1,000 cells, 10 hashtagsIdentical calls with matched settings; singlet naming can differ in unbalanced pools, as described below
Guide call importCell Ranger 6.0.0 protospacer_calls_per_cell.csv10x 5k A549 cells transduced with a CRISPR pool, 5,867 cells, 93 guidesAll 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-Gaussianpertpy main (commit 9b5c53b) assign_mixture_model; crispat 0.9.11 ga_poisson_gaussThe same A549 screenAll 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 GaussiansCell Ranger 6.0.0The same A549 screen7,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 guidepertpy main (commit 9b5c53b) assign_by_threshold and assign_to_max_guide; crispat 0.9.11 ga_ratioThe same A549 screenAll 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 efficiencyCell Ranger 6.0.0 perturbation_efficiencies_by_target.csv and perturbation_efficiencies_by_feature.csvThe 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 2×10−162 \times 10^{-16}, 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-distancescPerturb 0.1.0 edist and etest; pertpy main (commit 9b5c53b) Distance and DistanceTestThe same A549 screen, with Cell Ranger’s calls imported, in a 50-component PCA of all 5,867 cellsE-distances within a relative 2.4×10−122.4 \times 10^{-12} 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
MixscapeSeurat 5.5.1 CalcPerturbSig and RunMixscape; pertpy main (commit 9b5c53b) MixscapeThe THP-1 ECCITE-seq screen of Papalexi et al. 2021, 20,729 cells and 25 targets, with Seurat’s PCA and variable genesThe 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 2×10−132 \times 10^{-13}; and Seurat’s class for all 20,729 cells, as described below
Association testssceptre 0.99.1 (GitHub commit 20c33349), run onlyThe same THP-1 screen: 25 targets against the 2,000 variable genes, 50,000 pairs, with the positive controls and the calibration checkThe 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 MOIsceptre 0.99.1 (GitHub commit 20c33349), run onlysceptredata’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 checkThe 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 profilesThe published pseudo-bulk profiles of Replogle et al. 2022, K562_essential_normalized_bulk_01.h5adTheir 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 samplesAll 2,273 profiles within 1.9×10−61.9 \times 10^{-6} 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 clustersscikit-learn 1.9.1 HDBSCAN; Table S3 of Replogle et al. 2022, made with the hdbscan packageTheir 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,319The 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 expansionscirpy 0.25.1 clonal_expansion and summarize_clonal_expansion; scRepertoire 2.8.0 clonalHomeostasis and clonalProportionThe 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 barcodeThe 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 4×10−164 \times 10^{-16} and the cells of each rank window equal clonalProportion, for CTstrict and CTaa clonotypes
Clonal diversityiNEXT 3.0.2 without bootstraps; scRepertoire 2.8.0 clonalDiversity without bootstraps; immunarch 0.10.3 repDiversity; vegan 2.7.6 estimateRiNEXT’s two examples, the pseudo samples of both 10x runs, all 46,526 CD8+ cells, and six edge casesRarefied, observed and extrapolated Hill numbers of orders 0, 1 and 2 within a relative 5.6×10−115.6 \times 10^{-11} of iNEXT at every size, coverage within 1.8×10−111.8 \times 10^{-11}, asymptotic estimates within a relative 1.3×10−121.3 \times 10^{-12}, standardized estimates within a relative 2.1×10−72.1 \times 10^{-7}, and CyteArc the closer to 60-digit values where the two differ most; every index within 6×10−146 \times 10^{-14} of scRepertoire, immunarch and vegan
Clone overlapimmunarch 0.10.3 repOverlap; scRepertoire 2.8.0 clonalOverlapThe clonotypes of the pseudo samples of CD8+ donor 1, about 500 shared clonotypes per pair, and of PBMC 10k with CTstrict and CTaa clonotypesShared clones, Jaccard, Sørensen, overlap, cosine, Morisita-Horn and abundance cosine within 5×10−145 \times 10^{-14} for every pair
Fate coupling and fate biasCoSpar 0.5.0 fate_coupling, pvalue_for_fate_coupling, fate_map on infer_Tmap_from_clonal_info_alone, and clonal_fate_biasA synthetic experiment of 990 cells at two time points with 120 clones of known fate profiles in six fatesCouplings within 6×10−176 \times 10^{-17} for the cosine of clone sizes and Jaccard, a relative 1.4×10−151.4 \times 10^{-15} for the normalized covariance once CoSpar’s pseudocount is taken out, and a relative 5.1×10−95.1 \times 10^{-9} 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 chainsscirpy 0.25.1 read_10x_vdj, read_airr, merge_airr, index_chains and chain_qc10x 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 cellsThe 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
Clonotypesscirpy 0.25.1 define_clonotype_clusters with the identity metric; scRepertoire 2.8.0 combineTCR; Cell Ranger 3.0.2 and 5.0.0 clonotypesThe same 10x runs: 6,189 PBMC cells and 46,526 cells of CD8+ donor 1 with a receptorThe 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 clonesTREX 0.4.dev412 (commit c1ade47) run10x and smartseq3TREX’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 settingspreset="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 clustersscirpy 0.25.1 ir_dist and define_clonotype_clustersThe same 10x runsThe 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 lengthsscirpy 0.25.1 group_abundance and spectratype10x PBMC 10k with TCR and BCR, four pseudo samples from a hash of each barcodeEvery 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 statisticsmgatk 0.9.0 call_variants; Signac 1.17.1 IdentifyVariants; MiTo 2.0.0Signac’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 tableEvery 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 clonesSignac 1.17.1 FindClonotypes; MiTo 2.0.0; lentiviral barcodesA synthetic truth of 230 cells in six clones; TF1, CRC and pL1000 with its LARRY clones; MiTo’s MAESTER fixture with its barcodesAdjusted 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 callsGIFT’s reproducibility code (commit 35564bc) get_cell_genotypes and assign_genotypes, on giftwrap 0.6.2’s reading; the calls of published GoT tablesgiftwrap’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 exampleAll 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 clonespycea 0.4.0 tl.clades, with read_nwk of treedata 0.4.0 reading the treesPEtracer’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 treesThe 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 genesScanpy 1.12.4, scikit-misc 0.5.3892 CITE-seq cells, 36,601 genesSeurat v3 selection Jaccard 0.998; Pearson residuals select the same genes, including the matched two-batch comparison
Doublet detectionScanpy 1.12.4 pp.scrublet3,696 pancreas cells with 300 mixed-type and 60 same-type simulated doubletsAUROC 0.939–0.945 across four seeds, versus 0.913–0.919 for Scrublet
ATAC doublet detectionSnapATAC2 2.10.0 pp.scrublet; ATAC_nFeatures and ATAC_nCountsThe 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 depthAUROC 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 statisticsSciPy; presto, Scanpy, BPCellsSynthetic tests and three datasets of about one million cellsStatistics checked against SciPy; AUC differences from presto and Scanpy are at most 5.2×10−65.2 \times 10^{-6} on shared cells, genes, groups, and expression
Group comparisonsSciPy and direct rank calculationsIndependent and paired sample designsMann-Whitney, Kruskal-Wallis, Wilcoxon, Welch, ANOVA, and Dunn comparisons checked against reference calculations
WNN integrationSeurat 5.5.1300 CITE-seq cells; 48 synthetic cells with three modalitiesSame neighbors and weights/affinities within 3×10−83 \times 10^{-8} with matched candidate neighbors; 89% neighbor overlap with Seurat defaults
Symphony-style query correctionR Symphony 0.1.3 mapQueryFour-cell, two-gene fixtureCoordinates agree on a small fixture with effectively zero correction
Cell-cycle scoresScanpy 1.12.43,696 pancreas cells; 3,948 PBMCsScores agree within 3.3×10−163.3 \times 10^{-16} with the same control genes
AUCell and WAGGRdecoupler 2.2.03,948 PBMCs, 16 gene setsMaximum score differences of 3×10−83 \times 10^{-8} and 9.2×10−79.2 \times 10^{-7}, respectively; identical after rounding to single precision
Graph-diffusion imputationmagic-impute 3.0.03,948 PBMCs, 200 genesValues agree within 6×10−66 \times 10^{-6} on the same graph and diffusion time; median gene-wise correlation 0.95 with MAGIC defaults
iLISI and cLISIscib-metrics 0.6.1Two PBMC datasetsPer-cell scores agree within 1.6×10−141.6 \times 10^{-14} on the same neighbors and perplexity
Fate probabilitiesCellRank 23,696 pancreas cells; 1,110 LARRY progenitorsCorrelations exceed 0.99999999 with matched graphs, pseudotime, terminal cells, and kernel settings; 0.985 on the pancreas with CellRank defaults
Initial and terminal statesCellRank 2.4.0 with pyGPCCA 1.1.03,696 pancreas cells, the fate mapping tutorial’s walks directed by CCAT and by its pseudotime, 2 to 12 statesEigenvalues within 3×10−143 \times 10^{-14}, Schur vectors within 3×10−103 \times 10^{-10} 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 driversCellRank 2.3.31,234 pancreas branch cells, 2,000 genes, four lineagesCorrelations, confidence intervals, and significance results agree within 10-12 when both tools test every variable gene
Signaling entropy rate and CCATSCENT 1.1 (GitHub commit 02b4bc6), run only64 pancreas cells of four stages, on 5,778 genes and 57,584 links of the mouse STRING networkSR within a relative 1.3×10−141.3 \times 10^{-14} and CCAT within 2.6×10−142.6 \times 10^{-14} of SCENT’s values for every cell
GRNBoost2 networkspySCENIC 0.12.12,612 PBMC multiome cells, 13,308 genes, 1,201 factorsImportance correlation 0.998; Jaccard 0.96 for the top 1,000 to 100,000 links
chromVAR deviationschromVAR 1.34.1879 motifs over 98,316 peaksDeviations and z-scores agree within 4×10−124 \times 10^{-12} with the same motif matches and background peaks
Gene programsHotspot 1.1.1PBMC multiome cells and highly variable genesSix 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

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 2.9×10−122.9 \times 10^{-12}. 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 2.4×10−72.4 \times 10^{-7}. mixscape tests the same genes as RunMixscape for all 25 targets and finds the same DE genes, with p-values within a relative 2×10−132 \times 10^{-13} 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 7.5×10−67.5 \times 10^{-6}, 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 2.2×10−92.2 \times 10^{-9}; 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 3×10−103 \times 10^{-10}. 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 3×10−83 \times 10^{-8}, 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 5×10−65 \times 10^{-6}, 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 2×10−72 \times 10^{-7}. sceptre’s standard error of the fold change is ∑(y−rμ)2/∑μ\sqrt{\sum (y - r\mu)^2} / \sum \mu over the treatment cells, from the residuals at the fold change rr, 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 - 1.6×10−141.6 \times 10^{-14} 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 6×10−86 \times 10^{-8}. 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.

References
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Bonald, T., Charpentier, B., Galland, A., & Hollocou, A. (2018). Hierarchical Graph Clustering using Node Pair Sampling. arXiv. 10.48550/ARXIV.1806.01664
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. Hastie, T., & Stuetzle, W. (1989). Principal Curves. Journal of the American Statistical Association, 84(406), 502–516. 10.1080/01621459.1989.10478797