Sex Differences Along a Microglia Trajectory in DLPFC (IPRE, Winter 2026)
- Student: Cristóbal Herrera (IPRE, Winter 2026)
- Supervisor: Tomás González Zarzar
- Data: SEA-AD snRNA-seq, dorsolateral prefrontal cortex (DLPFC), microglia
- Status: finished as an IPRE project. Exploratory; see Caveats before using any of it.
The question
Microglia move from a homeostatic state toward a disease-associated state (DAM) in Alzheimer’s disease. Do they do so differently in men and women?
Microglia were chosen as the brain’s resident immune cells, well represented in the dataset, with the focus on inflammatory mechanisms. The DLPFC was chosen because it is among the cortical regions reported to differ most between sexes in Alzheimer’s disease, and it accumulates amyloid early.
What was done
The project extends the trajectory tutorial (03b) of the lab’s single-cell tutorials from one donor and one lineage to microglia from the whole DLPFC cohort, and runs the tradeSeq analysis that the tutorial leaves as an optional exercise.
- Loading. Donor files were downloaded with
aws s3 syncfromPFC/RNAseq/donors_objectsand read withzellkonverterandHDF5Array, which keep the matrices on disk. Each donor was subset to microglia in a loop. - Quality control. QC metrics were computed with
scrapper. Adaptive thresholds were compared with the fixed thresholds from the tutorial and kept, leaving 34,828 nuclei and discarding 5,971. - Preprocessing.
scranpooling normalization, 2,000 highly variable genes, PCA, and UMAP. - Clustering. For the trajectory, 1,500 highly variable genes gave cleaner clusters than 2,000. PCA with 50 components, UMAP on the first 20, and graph clustering on the PCA (k = 20, Louvain) gave 11 clusters.
- Trajectory. Each cluster was scored for homeostatic and DAM marker genes. Cluster 3 (high homeostatic, low DAM) was set as the start and cluster 11 (high DAM) as the end.
slingshotreturned six lineages; lineage 1 runs from cluster 3 to cluster 11 and was taken as the trajectory of interest. It leaves 12,559 nuclei outside, in clusters that are not on that path. - Check against pathology. Pseudotime along lineage 1 was compared between donors grouped by Braak stage, Thal phase, and overall AD neuropathological change.
- Differential expression along pseudotime.
tradeSeq::fitGAM()on raw counts for the 1,500 genes, with seven knots, sex as the condition, and highest education level as a covariate. ThenassociationTest()for genes that change along lineage 1 in at least one sex, andconditionTest()with a log2 fold change threshold of 0.5 for genes whose pattern differs between sexes. Both at FDR < 0.05.

What came out
The pseudotime does not follow pathology. If lineage 1 captured disease progression, donors at later stages should sit further along it. They don’t: the distributions overlap and are multimodal at every stage, for Braak, Thal, and overall AD change alike.

Genes along the trajectory. 719 of the 1,500 genes change along lineage 1 in at least one sex. Of those, 29 also differ between sexes:
| Group | Genes |
|---|---|
| Sex-chromosome genes | TSIX, NLGN4Y, TTTY14, LINC00278 (Y-linked or X-inactivation), CYBB, TMSB4X (X-linked) |
| Microglial activation, lipid, iron, and stress response | MS4A6A, PLIN2, FTL, SIGLEC1, MT2A, NUPR1, HSPB1, SERPINB9 |
| Interferon response | IFI44L, MX2 |
| Other | IGSF21, ERC2, ARHGAP31, ANKUB1, KCNIP4, PHACTR1, ADGRB3, ANKRD22, MALAT1, RPL35, RPS15, AC120193.1, AC011933.4 |
Cristóbal singled out MS4A6A (modulates TREM2 signaling), PLIN2 (a marker of lipid-droplet-accumulating microglia), FTL (iron storage), and CYBB (NADPH oxidase) as the most interpretable. PLIN2 rises toward the end of the trajectory more in males.


His own conclusion is the right one: the gene list is only as meaningful as the trajectory under it, and it is unclear what this trajectory captures. The background on DAM as a conserved microglial state is in Cheng & Ho (2025).
Caveats
- The trajectory is not validated. It was built from marker genes described in mouse models and does not track any of the donor-level pathology measures. Genes that rise at the end of pseudotime are also expressed in nuclei off the trajectory.
- Nuclei were treated as independent samples. Sex is a property of the donor, but
tradeSeqfits one model across all nuclei and does not know which donor each came from. Thousands of nuclei from a few dozen donors make differences look far more certain than they are. This is the pseudoreplication problem described in tutorial 03a, and it is the main reason not to trust the 29 genes as they stand. - Several hits are sex-chromosome genes, which differ between sexes in every cell type and say nothing about the trajectory.
- Some genes look like they come from other cells. ERC2, KCNIP4, and ADGRB3 are neuronal genes; in microglia nuclei they are more likely ambient RNA than microglial expression. Not checked.
- Only one covariate.
fitGAM()on 1,500 genes took about nine hours on a laptop, so only education level was adjusted for. Age, post-mortem interval, and comorbidities were planned and not run. The number of knots was set to seven without runningevaluateK(), for the same reason. - Donors were not integrated. Clusters, and so the trajectory, can reflect differences between donors as well as cell states.
- Not reproducible yet. Only the
tradeSeqscript was archived. The loading, QC, clustering, andslingshotcode exists only as slides.
Next steps
If you pick this up:
- Decide first whether there is a trajectory worth testing. Integrate the donors, rebuild it, and check it against pathology again. A pseudotime that doesn’t order donors by any measure of disease is not a disease axis.
- Compare with the microglial states SEA-AD already annotated (the
Supertypecolumn) before defining new clusters. - Make the donor the unit of analysis. For example, split pseudotime into a few bins, sum counts per donor within each bin, and test sex and its interaction with the bin using the pseudobulk approach from tutorial 04.
- Keep
tradeSeqfor exploration, on a subsample of nuclei or on the cluster, where trying different covariates andevaluateK()is feasible. - Remove the sex-chromosome genes from any list before interpreting it.
Materials
The tradeSeq script, Cristóbal’s analysis plan with his dictionary of the SEA-AD metadata columns, and two slide decks (preprocessing and trajectory) are in the ipre-projects repository. Its README lists which steps have code and which are documented only in the plan and slides.