Skip to content

About

Distinct transcriptomic responses to amyloid-beta plaques, neurofibrillary tangles, and APOE genotype in Alzheimer's disease.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Distinct transcriptomic responses to Aβ plaques, neurofibrillary tangles, and APOE in Alzheimer's disease

This repository contains R/R Markdown analysis code for the study "Distinct transcriptomic responses to Aβ plaques, neurofibrillary tangles, and APOE in Alzheimer's disease."

The study uses laser capture microdissection (LCM) RNA-seq from human superior temporal gyrus cortex to compare transcriptomic responses across Alzheimer's disease (AD) lesion microenvironments and APOE genotypes. Regions analyzed include Thioflavin-S-positive amyloid-beta plaques, peri-plaque halos, neurofibrillary tangles, areas distant from plaques/tangles, and control cortex.

Study Overview

The analyses test three main questions:

  1. Whether transcriptomic differences between AD and control cortex are strongest near plaques and tangles.
  2. Whether amyloid-beta plaques and neurofibrillary tangles are associated with distinct transcriptional programs.
  3. Whether APOE genotype modifies lesion-associated transcriptomic responses in AD cortex.

The manuscript reports that plaque-associated regions show the strongest transcriptomic changes, with upregulation of microglial/neuroinflammatory programs and downregulation of neuronal, synaptic, and energy metabolism genes. APOE4 further amplifies lesion-associated transcriptional responses, especially microglial/APOE-TREM2-TYROBP-related programs.

Repository Contents

File or directory Description
preprocessing v2.Rmd Input formatting, QC plots, age/sex residual adjustment, low-expression filtering, and processed expression output.
model_A v3.Rmd AD lesion-location models versus control cortex, plaque versus tangle comparison, DEG summaries, volcano plots, Venn diagrams, and cell-type enrichment figures.
model_B v2.Rmd APOE-by-location interaction models with repeated donor measurements handled by limma::duplicateCorrelation; heatmaps and APOE-associated DEG summaries.
model_C.Rmd APOE4 versus APOE3 comparisons within each AD cortical location and related plots/GSEA summaries.
GSEA_clustering.Rmd Clustering and annotation of GSEA pathway results.
GSEA_clustering moodelA.1.2.Rmd Alternate/legacy GSEA clustering notebook for model A.1.2.
Plots v5.Rmd Final GSEA pathway heatmaps/dot plots and leading-edge gene expression plots.
modelA.1.2 Figures.Rmd Additional plaque-versus-tangle leading-edge gene and representative gene expression figures.
functions.R Shared helper functions for limma top-table handling, DEG extraction, plotting, GSEA parsing, and workbook output.
.gitignore Excludes local data, generated results, RStudio session files, and large manuscript/figure binaries from version control.

Required Data

Data files and generated results are intentionally not tracked in this GitHub repository. To run the analysis, place the required local input files under data/ and restore any needed GSEA outputs under results/.

Downstream scripts expect processed data objects such as:

  • data/adj_logCPM_adj.by.sex.age_remove.low.exp.genes.Rdata
  • data/LCM_genes.csv
  • data/20210617_LCM_genes.csv
  • data/Glia_APOE_genes.csv
  • results/baress_cell.type.genes_gt.1.5.times.second.largest.Rdata

The preprocessing notebook expects additional raw/source files:

  • 20210617_LCM_logCPM.csv
  • 20210617_LCM_metadata.xlsx
  • 20210331_LCM RNA_final QC summary.xlsx
  • GMT files and GSEA output directories used for pathway analyses

If starting from the included processed expression object, begin with the model notebooks rather than the preprocessing notebook.

Analysis Workflow

Recommended execution order:

  1. preprocessing v2.Rmd

    • Reads raw logCPM, gene annotation, metadata, and sequencing QC files.
    • Removes reference samples.
    • Regresses out age and sex from logCPM expression.
    • Filters genes with logCPM > 0 in at least 50% of samples.
    • Writes adj_logCPM_adj.by.sex.age_remove.low.exp.genes.Rdata and LCM_genes.csv.
  2. model_A v3.Rmd

    • Model A.1: AD cortical locations versus control cortex.
    • Model A.1.2: plaque versus tangle within AD donors.
    • Model A.2: AD versus control in white matter.
    • Uses limma with empirical Bayes moderation and generates DEG tables and manuscript figures.
  3. model_B v2.Rmd

    • Tests APOE-by-location effects in AD samples.
    • Uses duplicateCorrelation to account for repeated measurements from the same donor.
    • Generates APOE interaction DEG summaries and heatmaps.
  4. model_C.Rmd

    • Tests APOE4 versus APOE3 within each AD cortical location.
    • Generates APOE genotype DEG summaries, Venn diagrams, volcano plots, and GSEA summaries.
  5. GSEA_clustering.Rmd and Plots v5.Rmd

    • Parse and cluster GSEA results.
    • Generate pathway-level heatmaps, dot plots, and leading-edge gene expression plots.
  6. modelA.1.2 Figures.Rmd

    • Generates additional figure panels for plaque-versus-tangle leading-edge genes and representative genes.

R Dependencies

The scripts use R Markdown plus CRAN/Bioconductor packages including:

  • data.table
  • limma
  • readxl
  • openxlsx
  • ggplot2
  • ggpubr
  • ggprism
  • ggthemes
  • ggVennDiagram
  • ggrepel
  • ggnewscale
  • ggforce
  • ggbeeswarm
  • ComplexHeatmap
  • RColorBrewer
  • qusage
  • purrr
  • magrittr
  • tibble
  • rmdformats
  • brainstorm

Example installation commands:

install.packages(c(
  "data.table", "readxl", "openxlsx", "ggplot2", "ggpubr",
  "ggprism", "ggthemes", "ggVennDiagram", "ggrepel", "ggnewscale",
  "ggforce", "ggbeeswarm", "RColorBrewer", "purrr", "magrittr",
  "tibble", "rmdformats"
))

if (!requireNamespace("BiocManager", quietly = TRUE)) {
  install.packages("BiocManager")
}
BiocManager::install(c("limma", "ComplexHeatmap", "qusage"))

# Required by the GSEA clustering notebook:
# devtools::install_github("ayushnoori/brainstorm")

Path Notes

These notebooks were written as project-analysis scripts and contain some legacy relative paths. Some files use data/ and results/, while others use ../data/ and ../results/. If running the notebooks from the repository root, update the directory variables at the top of each notebook or mirror the original directory layout.

The main directory variables are usually defined near the setup chunk:

data_dir <- file.path("data")
results_dir <- file.path("results")
p_dir <- file.path(results_dir, "Plots")
limma_dir <- file.path(results_dir, "limma")

Outputs

Depending on which notebooks are run and which source files are available, outputs include:

  • limma differential expression tables in CSV/XLSX format
  • Venn diagrams of differentially expressed genes
  • volcano plots for lesion and APOE contrasts
  • cell-type enrichment proportion plots
  • APOE-associated heatmaps
  • GSEA pathway summaries, clustered pathway workbooks, and pathway-level figures
  • leading-edge gene expression plots for selected pathways

Generated figure outputs are written under results/Plots/ when the notebooks are run locally. The results/ directory is ignored by git.

Citation

If you use this repository, please cite the accompanying manuscript/publication:

Das S, Li Z, Wachter A, Alla S, Noori A, Abdourahman A, Tamm JA, Woodbury ME, Talanian RV, Biber K, Karran EH, Hyman BT, Serrano-Pozo A. Distinct transcriptomic responses to Aβ plaques, neurofibrillary tangles, and APOE in Alzheimer's disease.

Notes

This repository is intended to document the analysis code used for the manuscript. Raw data, processed expression objects, intermediate GSEA folders, generated figures, and manuscript supplement outputs need to be restored from the original analysis environment to fully rerun every notebook from scratch.

About

Distinct transcriptomic responses to amyloid-beta plaques, neurofibrillary tangles, and APOE genotype in Alzheimer's disease.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages