Position-Matched Isogenic Comparisons in Spatially Profiled Organoids

Editing a single disease gene into an otherwise identical stem-cell line is the standard way to remove "genetic background" noise, meaning the thousands of harmless DNA differences between donors that can mask or mimic a disease effect. Once those edited cells grow into three-dimensional organoids (small lab-grown tissues), a second confound appears. A cell's gene expression depends heavily on where it sits. Cells in the core are short of oxygen, cells at the surface are not, and cells touching glia switch on synaptic programs that isolated neurons never activate. A mutation that changes organoid size or shape therefore changes how many cells sit in each kind of location. The usual mutant-versus-control comparison can then report "differential expression" that is really a difference in tissue geometry.

We propose to measure and separate these two contributions. Each organoid section is mapped onto coordinates defined by its own boundaries, such as normalized depth from the outer surface and distance to the nearest lumen. These coordinates do not depend on organoid size, and they do not force mutant tissue onto a healthy template. We then split the total mutant-versus-control difference into a part caused by the mutation acting directly at matched positions and a part carried through the altered geometry. A narrow de novo assembly step, run only on reads that fail to map to the reference genome, checks that neither part is driven by sequences the reference cannot see, such as edit-vector transcripts or contaminants. The whole analysis is packaged to run on a workstation.

Core Claim

In isogenic organoids profiled with spatial transcriptomics, the naive genotype contrast mixes a direct effect with an effect that runs through organoid geometry. The mixture can be large enough to change which genes are called. A simple decomposition over intrinsic, shape-independent coordinates recovers the direct effect, and we can test that it does so against an internal ground truth: chimeric organoids that contain mutant and wild-type cells growing side by side in the same geometry.

Let $s$ be a spot's intrinsic coordinate. Let $m_g(s)$ be the mean expression of a gene at $s$ in genotype $g$, and let $p_g(s)$ be the density of spots at $s$ in genotype $g$. The naive mutant-minus-wild-type difference $\Delta$ then splits exactly:

$$ \Delta=\int [m_{\text{mut}}(s)-m_{\text{wt}}(s)]\,p_{\text{wt}}(s)\,ds\;+\;\int m_{\text{mut}}(s)\,[p_{\text{mut}}(s)-p_{\text{wt}}(s)]\,ds . $$

The first term is the position-matched direct effect. The second is the geometry-mediated effect. This is the classical decomposition used to separate a within-group difference from a difference in group composition. The geometry term is not noise to discard, because the mutation causes it. It is a separate, reportable phenotype.

Why This Gap Is Real

Isogenic modelling is the field's answer to donor confounding. The ABCA7 study compares CRISPR-edited lines in 2D neurons and 3D cortical organoids and reports a 2–4x increase in amyloid-β secretion that CDP-choline rescues. The PSEN1 M146L neuron study shows that early phenotypes are subtle metabolic shifts that background variation would swamp. Both papers motivate isogenic control. Neither registers organoid tissue spatially, so position cannot be separated from genotype.

The astrocyte–neuron study across 80 donors supplies the key mechanism. Direct glial contact, but not soluble factors alone, induced neuronal synaptic programs. Local spatial context alone therefore produces genotype-sized transcriptional shifts, which is exactly what makes position a plausible confound.

Spatial normalization supplies the method and also constrains it. WiCAT registers widefield recordings to the Allen atlas and shows that shared coordinates enable cross-animal modelling, with zero-shot decoding R² of 0.327 on Musall and 0.184 on Kondo. Its atlas, however, comes from healthy wild-type animals, and organoids have no atlas at all. Warping mutant tissue onto a wild-type template would erase the geometric phenotype we want to measure. We therefore use intrinsic coordinates rather than atlas registration. This is the clear difference from WiCAT, and from the affine and orientation-standardization work of Simpson et al. and Liu et al..

Accessible tooling and de novo assembly enter as constraints rather than as the core. transXpress shows that de novo assembly can be wrapped in a reproducible workflow. Full-transcriptome assembly, however, needs RAM that consumer hardware lacks. Restricting assembly to the small fraction of reads that fail to map keeps the step workstation-sized. CellAgent automates spatial clustering and annotation from reference-mapped count matrices. It does no cross-sample coordinate normalization and has no isogenic design logic, and we argue below that an LLM agent is not needed here.

Research Program

The first component is the coordinate system. For each section, the tissue mask from the paired histology image is segmented into outer boundary and lumens or rosettes. Each spot then receives two values: normalized depth (distance to the surface divided by the local radius) and distance to the nearest lumen, scaled by section size. Cutting plane varies between sections, and an off-centre section underestimates depth. We handle this by profiling several sections per organoid and including organoid and section as random effects, and we report sensitivity to restricting the analysis to near-equatorial sections.

The second component is estimation. The two terms of the decomposition are estimated per gene using spot counts aggregated within coordinate bins. Bins are chosen by cross-validation, with a smooth version as a check. Organoid is the unit of replication, and uncertainty comes from bootstrapping whole organoids. Because $p_{\text{mut}}$ and $p_{\text{wt}}$ may not overlap, for example when small mutant organoids lack a hypoxic core, we restrict the direct-effect estimate to the region of shared support and report the fraction of tissue excluded. We do this rather than extrapolate.

The third component is the unmapped-read check. Reads that do not align to the reference are assembled with rnaSPAdes or Trinity using the transXpress rules. The assembled pieces are annotated, and their spot-level abundance is mapped in the same intrinsic coordinates. The question is narrow: does any non-reference sequence, such as edit-vector transcripts, mycoplasma or other contaminants, or insertions at the edited locus, differ by genotype or concentrate in particular positions? If so, it is a candidate artefact behind the contrast.

The fourth component is packaging. The pipeline is deterministic and runs from raw spatial reads plus images to the decomposition. Our target, a design goal rather than a measured figure, is that it runs within 32 GB of RAM.

Proposed Experiments

The primary dataset is new. It consists of spatial transcriptomics on cortical organoids grown from the ABCA7 loss-of-function lines and their isogenic controls, at two time points and with at least 8 organoids per genotype.

The decisive ground truth is chimeric organoids. Here mutant and wild-type cells are mixed at seeding and grow in a single shared geometry, so the geometry term is zero by construction. Spot genotype is assigned from a lineage barcode transcript. In the chimeras, a position-matched within-organoid contrast between mutant-rich and wild-type-rich spots estimates the direct effect. A method is judged by how well its direct-effect estimates from separate (non-chimeric) organoids match the chimera-derived effects. We use two measures: gene-level rank correlation, and precision of the top-ranked genes against the chimera-derived calls.

Secondary validation is external. We ask whether position-matched direct effects agree better than naive effects with the ABCA7 carrier-versus-control snRNA-seq signatures from ROSMAP reported in the ABCA7 study. Post-mortem tissue carries its own confounds, so this serves as supporting evidence only.

A simulation arm uses public Visium and Slide-seqV2 sections of the kind in CellAgent's battery. We plant a known genotype effect and separately plant a known shape change that alters position frequencies. This gives exact recovery error for both terms of the decomposition.

Baselines

The do-nothing reference is pooled pseudobulk differential expression, mutant versus wild-type, with organoid as replicate and no spatial information. This is how isogenic organoid transcriptomics is usually analyzed. It defines the naive $\Delta$ that we decompose.

The strongest existing competitor is a multifactor linear model in the style of the limma-voom analysis in the 80-donor study. It is fit to spot-level counts with genotype plus spatial covariates: raw distance from the edge, distance to lumen, and splines of each. It is strong because it already adjusts for position and requires no new machinery. To keep the comparison fair, it gets the same counts, the same organoid random effects, and the same spline degrees of freedom as our binning, with flexibility tuned by the same cross-validation.

The second baseline clusters spots into spatial domains, as CellAgent's clustering module does, and then runs differential expression within each domain. The third baseline warps each mutant section onto an average wild-type organoid template by non-rigid registration and compares matched template coordinates. This baseline measures what warping removes.

The key ablation replaces intrinsic, size-normalized coordinates with raw micrometre coordinates inside our own estimator. This isolates the coordinate choice from the decomposition.

No reported result exists on Lacuna for position-confounded differential expression in isogenic organoids, so there is no published number to beat. We will count it as beating a baseline if our direct-effect estimates have a higher rank correlation with chimera-derived effects, with a bootstrap interval over organoids that excludes zero difference. In simulation, beating a baseline means lower recovery error of the planted direct effect.

Why not just…?

Why not just add position covariates to the linear model? This is the real threat. Where mutant and wild-type spots cover the same positions and expression changes smoothly with position, covariate regression and our decomposition estimate nearly the same direct effect. They part ways when support does not overlap, for example when mutant organoids lack a core. There, regression silently extrapolates, while our estimator restricts to shared support and reports what it excluded. Regression also returns no geometry-mediated term. The chimera experiment settles the question. If the covariate model matches our estimator in chimera agreement, we will say so. The contribution then shrinks to the coordinate definition and the explicit reporting of the mediated term.

Why not just register to a template, as atlas methods do? Atlas registration, as in WiCAT, assumes that shape differences are nuisance variation. In a mutant, shape differences are partly the phenotype. The template-warping baseline will show this directly. In simulation we expect it to absorb the planted shape effect into the coordinates and misattribute the resulting expression changes.

Why not just use dissociated single-nucleus sequencing? Dissociation removes position entirely, so the geometry confound remains present but cannot be measured. The 80-donor study's contact-dependent synaptic programs show that position-linked effects can be large. Our pooled baseline is exactly the dissociated-style contrast.

Why not just find novel junctions with a reference aligner instead of assembling? For splice junctions within the human reference, that is the right tool, and we do not claim otherwise. Assembly is used only for reads absent from the reference, where junction calling is blind. If the unmapped-read assembly finds nothing that differs by genotype or position, we report a clean negative result and the step remains a cheap control.

Why not wrap this in an LLM agent like CellAgent? The analysis is a fixed estimator with few decisions. A proprietary multimodal model would add cost and non-determinism without adding accuracy. The accessibility goal is met by a deterministic pipeline that fits on a workstation.

Decisive Checks

The idea fails if the geometry term is negligible across genes, meaning the naive contrast and the direct effect agree closely in real ABCA7 organoids. That outcome would be informative too, since it would license the standard analysis. The idea succeeds if three things hold. First, the geometry term reorders the top differentially expressed genes. Second, position-matched estimates from separate organoids reproduce chimera-derived effects better than covariate regression, particularly in regions without overlap. Third, the reported fraction of tissue lacking shared support is large enough to explain where the two estimators disagree.