Computational Neuroimmunology

Reading the Smoldering Edge of a Multiple Sclerosis Lesion from Public Data

A weekend computational lab. I took only public brain datasets and asked whether the molecular “fingerprint” of the inflamed rim of an MS lesion could be defined and validated, and then I tried hard to prove myself wrong.

Aneesh Panoli

What goes wrong in MS

Your nerve fibers are wrapped in myelin, a fatty insulation that lets electrical signals race along them. You can think of it as the plastic coating on a wire. In multiple sclerosis (MS), the immune system mistakenly attacks that insulation and strips it away in patches. Where the coating is gone, signals slow down or short out, which is why MS can affect vision, movement, balance and thinking. Each bare patch is called a lesion.

myelin (insulation) demyelination + immune attack nerve fiber (axon)
How an MS lesion starts: immune cells strip the myelin insulation off a nerve fiber, leaving it bare and unable to carry signals cleanly.

Motivation: why the edge of a lesion matters

Not all lesions are equal. Many burn out and go quiet. The worrying ones are chronic active, or “smoldering,” lesions. Their center is already destroyed and inactive, while a thin rim around the edge stays quietly inflamed for years, slowly eating outward into healthy tissue like the glowing edge of a smoldering piece of paper. That creeping rim is now thought to be a major driver of the long-term disability in progressive MS.

What makes this frustrating is that today’s best MS drugs mostly deplete B cells, while the rim is run largely by different immune cells, myeloid cells and T cells, so the drugs don’t shut it down. Doctors can even spot these lesions on an MRI now as an iron-stained “paramagnetic rim.” The open question is what the rim is doing at the molecular level, and whether we can read that fingerprint from data that has already been collected, without any new patients or experiments.

burnt-out core smoldering rim chronic inflammation that expands outward normal-appearing white matter
Anatomy of a smoldering lesion: a burnt-out core, surrounded by a chronically inflamed rim that slowly expands into the normal-appearing white matter around it. This page is about reading that rim molecularly.

Approach: discover, then validate, with no new samples

There was no wet lab and no new sequencing in this project. I used four public human-brain datasets: one single-nucleus RNA-seq atlas to define a rim signature, and independent spatial-transcriptomics datasets to test whether that signature actually lights up at the rim in situ.

The logic is simple. First I define a molecular fingerprint of the rim in one dataset, and then I check whether that same fingerprint shows up in the right place in completely separate datasets. A fingerprint that only works on the data that created it isn’t science, because a real one has to survive being tested somewhere new. It is the same reason you don’t trust code that has only ever passed the tests its author wrote alongside it.

Discover Validate (independent data) Signature single-nucleus RNA-seq atlas Visium whole-transcriptome spatial MERSCOPE single-cell spatial
The strategy in one picture. “Single-cell” methods read the genes of individual cells; “spatial” methods also keep track of where each reading came from in the tissue, so you can ask not just what is switched on, but where.

Step 1: a molecular signature of the rim

From the single-nucleus data I contrasted the active lesion edge against non-active MS white matter, cell type by cell type, and characterized the resulting gene program. It came back biologically coherent, with antigen presentation (MHC-II), complement, interferon and inflammatory (TNF/NF-κB) signaling, which is exactly the machinery you would expect in smoldering inflammation.

Cell-type-resolved rim signature heatmap
Figure 1. The rim signature, cell-type-resolved. Genes elevated at the active lesion edge across immune, astrocyte, and lymphocyte compartments; enriched for MHC-II, complement, interferon, and TNF/NF-κB programs.

Step 2: does it localize to the rim?

A signature is only interesting if it appears where it should, so I checked it on two spatial platforms. In whole-transcriptome spatial data (Visium), the signature climbed in a clean gradient: normal white matter < mixed lesions < active lesions.

Visium spatial gradient of the rim signature
Figure 2. Spatial gradient (Visium, whole-transcriptome). Per-section signature score rises from control/normal-appearing white matter → mixed → active lesions. Exploratory (few independent sections).

In single-cell-resolution spatial data (MERSCOPE), the result was more striking. The signature traced a bright rim-like structure right through the tissue, and it was highest in the vascular-immune niche and the demyelinated lesion and lowest in normal white matter.

MERSCOPE single-cell spatial validation of the rim signature
Figure 3. Single-cell spatial validation (MERSCOPE). Left: score by spatial domain; middle: paired per-donor increase in lesion vs normal white matter (donor-level p ≈ 0.016); right: the signature traced in situ across a tissue section. The regional signal is driven substantially by immune-cell composition.

Step 3: auditing my own result

This is the part of the project I’m most proud of. Before believing any of it, I audited the pipeline and the statistics adversarially, and three things turned up.

What holds up

A signature built entirely from public data reliably distinguishes active, inflamed MS lesion tissue from normal-appearing white matter, and it does so reproducibly across two independent spatial platforms. It is a genuine, if modest, result. The smoldering rim has a readable molecular shadow, dominated by the immune cells that crowd into it.

I also think of the exercise as a small case study in doing computational biology honestly. The audit shrank the claim, and that is exactly what makes the remaining claim trustworthy.

Data and reproducibility

Every panel traces from a public accession through versioned code. Datasets: GSE180759 (discovery, snRNA-seq), GSE208747 (Visium), GSE284005 (MERSCOPE). Methods: Python / Scanpy, pseudobulk differential expression with PyDESeq2, signature scoring, donor-level statistics, and a full self-audit.