{# ── Abstract ────────────────────────────────────────────────── #}

Abstract

Background Macrophages in atherosclerotic plaque take on different states. ABCA1, ABCG1 and their regulator LXR (NR1H3) drive cholesterol export, and the author's thesis measured them by qPCR in blood-derived macrophages in a dish. This reanalysis asks which macrophage state in human carotid plaque carries that program most strongly, and how much the answer depends on counting cells rather than patients.

Methods Public single-cell data from {{ n_donors }} carotid endarterectomies (GSE260657; {{ n_cells_deposited }} deposited cells) were filtered, integrated with Harmony and reduced to {{ n_macrophages }} macrophage-labeled cells. Of these, {{ n_named_macrophages }} fell into three named states (resident-like, lipid-associated, inflammatory); the other {{ n_unresolved_macrophages }} were left unresolved. Each cell was scored for a cholesterol-efflux/LXR gene set (ABCA1, ABCG1, NR1H3, APOE) and an inflammatory set whose genes were kept apart from those used to name the inflammatory state. States were compared with patient as the unit: a mean per patient per state, then a paired Friedman test across the {{ summary.n }} patients with at least 10 cells in every state. The same comparison with each cell counted separately (Kruskal-Wallis) is shown for contrast.

Results The efflux/LXR score was highest in the lipid-associated state: patient means {{ summary.means['Lipid-associated'] }}, {{ summary.means['Inflammatory'] }} (inflammatory) and {{ summary.means['Resident-like'] }} (resident-like); p = {{ '%.4f'|format(summary.p) }}. The held-out inflammatory score was highest in the inflammatory state ({{ inflammatory.means['Inflammatory'] }}; p = {{ '%.4f'|format(inflammatory.p) }}). Patient identity explained about {{ (deff.rho * 100)|round|int }}% of the remaining cell-to-cell variation, a design effect of {{ deff.deff }}: the {{ deff.n_cells }} cells carry roughly the information of {{ deff.n_eff }} independent observations. Counting cells instead of patients gave p = {{ '%.1e'|format(summary_cells.p) }} for the same efflux contrast.

Conclusions In these plaques the cholesterol-efflux program sits mainly with lipid-associated macrophages, and the pattern holds when patients rather than cells are counted. Transcript levels are not efflux, the data were filtered before deposition, and fifteen plaques at one timepoint cannot show whether lipid loading drives the program or follows it. Two errors found during the analysis, a circular test and a mixed model that silently dropped patient variance, are described on the page.

Keywords atherosclerosis, carotid plaque, macrophage states, single-cell RNA-seq, cholesterol efflux, LXR, pseudoreplication, GSE260657

{# ── At a glance ─────────────────────────────────────────────── #}

At a glance

I rescored public single-cell data from carotid plaque to see which macrophage state carries the cholesterol-efflux program, counting patients rather than cells. The three results below are computed live from the files listed at the end.

  1. The efflux program sits with lipid-associated macrophages. Averaged within each patient, the score is {{ summary.means['Lipid-associated'] }} in the lipid-associated state, against {{ summary.means['Inflammatory'] }} and {{ summary.means['Resident-like'] }} in the inflammatory and resident-like states ({{ summary.n }} patients, {{ summary.test }}, p = {{ '%.4f'|format(summary.p) }}).
  2. Counting cells overstates the evidence. The {{ deff.n_cells }} cells behave like about {{ deff.n_eff }} independent observations. Treated as independent, they give p = {{ '%.1e'|format(summary_cells.p) }} for the same contrast. You can switch between the two below.
  3. Two of my own errors flattered the result. One was a circular inflammatory test and the other a mixed model that set patient variance to zero. Both are fixed and described below.
Higher RNA for these genes is not proof of higher cholesterol efflux. The patient is the unit that matters biologically. The cell-level result is on the page because it is a useful bad comparison, not because it is the main result.

Try the live comparison, or download the scored cells and the deposition manifest.

The question

Macrophages in a plaque do not all look or behave alike: some are packed with lipid, some express cytokines, and some have a quieter, more resident-like profile.

ABCA1 and ABCG1 are cholesterol-export pumps. LXR turns both on. Those genes were measured by qPCR in macrophages differentiated from the blood of 60 participants, which is a slow way to answer a fairly narrow question in a dish.

The question here is which macrophage state carries that program most strongly in human plaque. The source study fixed the conditions, which is what makes the comparison worth making.

Getting the data

GSE260657 comes from NCBI GEO. It holds fifteen carotid endarterectomies, one file per patient, with every gene counted in every cell, in eighty-two megabytes.

The series description reports {{ n_cells_reported }} cells. The headers of the {{ n_donors }} deposited matrices add up to {{ n_cells_deposited }}, which is {{ n_cell_discrepancy }} fewer. I use the deposited count and keep both numbers here.

The matrices are genes by cells. Scanpy expects cells by genes, so I transpose each one on import and check the result. A wrong transpose does not necessarily throw an error. It can produce perfectly ordinary-looking nonsense.

Quality control

Some wells hold a dying cell, some hold debris, some hold nothing at all. Usual practice is to set a floor for genes detected and a ceiling for mitochondrial reads, then drop whatever falls outside.

In the full workflow, the usual fixed cutoffs removed nothing. A later outlier rule, based on this dataset's own distribution, removed 463 cells.

Post-filtering distributions of genes detected and total counts
Genes detected and total counts among the 2,692 retained, macrophage-labeled cells in the compact export. The red line is the median.

The lower edge of the counts is abrupt at about 50,000. That is what I would expect after filtering, not from untouched wells.

This archive starts after filtering and lineage selection. It can show the retained macrophages. It cannot bring back the excluded cells or prove that 463 was exactly the right number to remove. The raw analysis is separate.

Patient and plate effects

Each patient's cells were processed on that patient's own plate. If one donor sits apart on a cell map, that is ambiguous between plaque biology and a plate effect, and the design does not separate them cleanly.

Clusters and the map come from Harmony. The export carries the final embedding and the donor label for each macrophage-labeled cell.

Final donor-corrected macrophage embedding, colored by patient
Each color is one patient in the final donor-corrected macrophage embedding. A before/after mixing metric cannot be regenerated from this export.

Harmony mixes donors better, but it may also erase some real donor-to-donor difference. I use it for clustering and visualization. I do not use the corrected coordinates as the outcome of a statistical test.

For the comparison below, I go back to the program scores and average cells within a patient.

Which cells enter the analysis

Most plaque cells are not macrophages. The full analysis scores lineage markers first and keeps the macrophage-labeled cells. This compact archive begins after that step. It does not contain the expression matrix needed to repeat the lineage call from scratch.

Macrophage-state cell counts for each donor
The 2,692 exported macrophage-labeled cells, split by donor and named state. Gray cells remained in unresolved myeloid clusters.

There are {{ n_macrophages }} exported macrophage-labeled cells, of which {{ n_named_macrophages }} enter the three-state comparison. The other {{ n_unresolved_macrophages }} stay as unresolved myeloid clusters. Folding them into one of the three names is possible, but the data does not justify it.

Three named macrophage states

After removing the other lineages and clustering the macrophages again, these are the three groups I could name with some confidence.

StateWhat it isCells
Resident-likehousekeeping, quiet {{ substates['Resident-like'] }}
Lipid-associatedcholesterol-loaded, foam-cell-like {{ substates['Lipid-associated'] }}
Inflammatorycytokine-producing {{ substates['Inflammatory'] }}
Unresolved myeloidnot forced into a named state {{ n_unresolved_macrophages }}

The first clustering is mostly about separating macrophages from smooth muscle and endothelial cells. That does not help much with differences between macrophages, so I repeat the feature selection inside the subset.

The program comparison uses the {{ n_named_macrophages }} cells in the three named groups. The {{ n_unresolved_macrophages }} other cells remain in the downloadable table and the donor accounting plot, but I leave them out of that contrast.

Scoring the genes

I score two small gene sets per cell. The first contains ABCA1, ABCG1, NR1H3 and APOE. The second is inflammatory. The inflammatory genes used for this test are held out from the genes used to name the inflammatory state.

Macrophage states and program scores
Left: the three states. Middle and right: how strongly each cell expresses each program.

A raw mean would reward cells with deeper sequencing. The score subtracts matched control genes to reduce that problem. Checked against total counts, no program score correlated with read depth above 0.22.

Counting patients or cells

The choice that matters most here is what counts as one observation: a donor or a cell.

Loading…

A hundred macrophages from one person are not a hundred independent people. They share a genome, plaque, medication history and sample-processing day.

After removing the average difference between the three states, the donor still accounts for about {{ (deff.rho * 100) | round | int }}% of what varies from cell to cell (ICC estimate {{ deff.rho }}). With an average of {{ deff.m }} cells per donor, that gives a design effect of {{ deff.deff }}. The {{ deff.n_cells }} cell rows therefore carry information closer to about {{ deff.n_eff }} independent observations, not {{ deff.n_cells }}. Treating all cells as independent makes the standard errors about {{ deff.se_inflation }} times too small.

Naive versus donor-aware p-values
The same comparison, counted both ways.

Two errors in the analysis

The first version of the inflammatory test was circular. Inflammatory genes both named the state and were tested across the states, so the inflammatory state won by construction. Splitting the panel, one half for naming and one for testing, moves p from 0.003 to 0.12.

A mixed model reported success while failing. Its default optimizer set the between-patient variance to zero, which reduces it to a cell-level analysis. Other optimizers put the variance near 0.27. The quantity is now calculated separately, and a fit that disagrees with it is rejected.

Both errors flattered the result.

Limitations

ABCA1 mRNA is not cholesterol efflux, and IL1B mRNA is not active IL-1beta. This is transcription, not a functional assay.

The deposited data had already been filtered. I do not have a record of every upstream choice. The gene panels are choices as well. Mine are small and familiar, but a different panel would give different scores.

These are 15 plaques at one timepoint. The data cannot tell whether lipid loading caused the program or followed it. The original study focused on smooth muscle cells, so this may not be an ideal sample of plaque macrophages either.

Finally, this archive reproduces the figures and live statistics from the exported macrophage table. It does not rerun the raw single-cell pipeline. That means filtering, integration and lineage selection can be inspected here, but not recreated here.

Reproduce and inspect

The web app, generated figures, scored macrophage table, deposition manifest and tests are available as one compact source archive. No JavaScript build step is required.

Show the local reproduction commands
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python build_figures.py
python -m unittest discover -s tests -v
python app.py