Single-nucleus profiling reveals a core disease signature and cell type-specific vulnerabilities in early Rett syndrome.
The 5 matches
- [1] § MATERIALS AND METHODS › Data preprocessing ↔ analysis_code/Integration_and_Preprocessing.R, lines 1–63 · score 0.85 · LogNormalize, FindClusters, FindNeighbors, dims, workflow, Seurat
- [2] § MATERIALS AND METHODS › Cell annotation ↔ analysis_code/Cell_Type_Marker_and_DEG.R, lines 1–78 · score 0.76 · logfc.threshold, FindAllMarkers, min.pct, pos, Seurat, clusters
- [3] § MATERIALS AND METHODS › Identification of DEGs in snRNA-seq ↔ analysis_code/Cell_Type_Marker_and_DEG.R, lines 1–78 · score 0.67 · FindMarkers, min.pct, MAST, Seurat, WT, clusters
- [4] § MATERIALS AND METHODS › Bootstrap consensus pseudobulk analysis ↔ analysis_code/Bootstrap_pseudobulk.R, lines 1–20 · score 0.54 · Consensus, RNA seq, Bootstrap, seeds, subsamples, pseudobulk
- [5] § MATERIALS AND METHODS › CIBERSORTx deconvolution ↔ bulkRNAseq_data.R, lines 344–394 · score 0.50 · HET_F, Null_M, subset, wt, bulk, seq
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 253 lines · 8.2 KB · no license · 2 matches
- #!/usr/bin/env Rscript
- suppressPackageStartupMessages({
- library(Seurat)
- library(MAST)
- library(presto)
- library(dplyr)
- library(tidyr)
- library(stringr)
- })
- # ============================================================
- # Purpose
- # ============================================================
- # This script does TWO things for BOTH datasets (unsorted & sorted):
- #
- # (A) Cell-type marker discovery (cluster markers):
- # JoinLayers() -> FindAllMarkers(only.pos=TRUE, min.pct=0.25, logfc.threshold=0.25)
- #
- # (B) Differential expression (DEG) with MAST, performed WITHIN each group of cells:
- # - Within each seurat cluster (and additionally within each cell_type and neu_type)
- # - For each cluster/type group: compare condition pairs using FindMarkers(test.use="MAST")
- #
- # Notes:
- # - The script assumes the integrated Seurat objects already contain metadata:
- # seurat_clusters, group, and (optionally) cell_type and neu_type.
- # - For unsorted: comparisons are Null_M vs WT_M, Het_F vs WT_F, WT_F vs WT_M
- # - For sorted: comparisons are Het-Positive vs WT, Het-Negative vs WT
- #
- # Output:
- # - Markers: one CSV for FindAllMarkers per dataset
- # - DEGs: one RDS + one long CSV per dataset (contains all clusters/types + comparisons)
- # ============================================================
- # 1) Config
- # ============================================================
- INTEGRATED_UNSORTED_RDS <- "outputs/integration/unsorted_harmony_integrated.rds"
- INTEGRATED_SORTED_RDS <- "outputs/integration/sorted_harmony_integrated.rds"
- OUT_DIR <- "outputs/deg_and_markers"
- dir.create(OUT_DIR, showWarnings = FALSE, recursive = TRUE)
- # Marker discovery parameters (must match your workflow)
- MARKER_PARAMS <- list(
- only.pos = TRUE,
- min.pct = 0.25,
- logfc.threshold = 0.25
- )
- # DEG parameters (must match your workflow intent)
- DEG_PARAMS <- list(
- assay = "RNA",
- test.use = "MAST",
- logfc.threshold = 0,
- min.pct = 0.1,
- max.cells.per.ident = Inf
- )
- # For DEG, we run within each "grouping variable"
- # You requested: seurat_clusters + cell_type + neu_type
- GROUPING_VARS <- c("seurat_clusters", "cell_type", "neu_type")
- # Dataset-specific comparisons (ident.1 vs ident.2) based on "group" metadata
- UNSORTED_COMPARISONS <- list(
- list(name = "Null_M_vs_WT_M", ident.1 = "Null_M", ident.2 = "WT_M"),
- list(name = "Het_F_vs_WT_F", ident.1 = "Het_F", ident.2 = "WT_F"),
- list(name = "WT_F_vs_WT_M", ident.1 = "WT_F", ident.2 = "WT_M")
- )
- SORTED_COMPARISONS <- list(
- list(name = "Het-Positive_vs_WT", ident.1 = "Het-Positive", ident.2 = "WT"),
- list(name = "Het-Negative_vs_WT", ident.1 = "Het-Negative", ident.2 = "WT")
- )
- # ============================================================
- # 2) Helper functions
- # ============================================================
- assert_has_meta <- function(seu, cols) {
- missing <- cols[!cols %in% colnames([email hidden])]
- if (length(missing) > 0) {
- stop("Missing required metadata columns: ", paste(missing, collapse = ", "))
- }
- }
- safe_joinlayers <- function(seu) {
- # JoinLayers is needed for Seurat v5 multi-layer assays.
- # If object is already joined or JoinLayers is unavailable, this will error.
- # For a GitHub-ready script, we keep it simple: try and move on if it fails.
- out <- tryCatch(JoinLayers(seu), error = function(e) seu)
- out
- }
- run_find_all_markers <- function(seu, out_csv, marker_params) {
- seu <- safe_joinlayers(seu)
- markers <- FindAllMarkers(
- seu,
- only.pos = marker_params$only.pos,
- min.pct = marker_params$min.pct,
- logfc.threshold = marker_params$logfc.threshold
- )
- write.csv(markers, out_csv, row.names = FALSE)
- invisible(markers)
- }
- run_deg_within_groups <- function(seu,
- grouping_var,
- comparisons,
- out_rds,
- out_csv,
- deg_params) {
- assert_has_meta(seu, c("group", grouping_var))
- # Ensure identities are set to the condition/group variable for FindMarkers
- Idents(seu) <- "group"
- group_levels <- unique([email hidden][[grouping_var]])
- group_levels <- group_levels[!is.na(group_levels)]
- all_results <- list()
- idx <- 1
- for (g in group_levels) {
- # Subset to one cluster/cell_type/neu_type group
- sub_obj <- subset(seu, subset = get(grouping_var) == g)
- # Skip if too small or missing identities (kept minimal; not over-engineered)
- present_idents <- unique(as.character(sub_obj$group))
- present_idents <- present_idents[!is.na(present_idents)]
- for (cmp in comparisons) {
- if (!(cmp$ident.1 %in% present_idents && cmp$ident.2 %in% present_idents)) next
- deg <- FindMarkers(
- sub_obj,
- ident.1 = cmp$ident.1,
- ident.2 = cmp$ident.2,
- assay = deg_params$assay,
- test.use = deg_params$test.use,
- logfc.threshold = deg_params$logfc.threshold,
- min.pct = deg_params$min.pct,
- max.cells.per.ident = deg_params$max.cells.per.ident
- )
- # Standardize to a tidy data.frame with metadata columns
- deg_df <- as.data.frame(deg)
- deg_df$gene <- rownames(deg_df)
- rownames(deg_df) <- NULL
- deg_df$grouping_var <- grouping_var
- deg_df$group_value <- as.character(g)
- deg_df$comparison <- cmp$name
- deg_df$ident.1 <- cmp$ident.1
- deg_df$ident.2 <- cmp$ident.2
- all_results[[idx]] <- deg_df
- idx <- idx + 1
- }
- }
- if (length(all_results) == 0) {
- warning("No DEG results produced for grouping_var=", grouping_var, " (no valid groups/comparisons found).")
- saveRDS(list(), out_rds)
- write.csv(data.frame(), out_csv, row.names = FALSE)
- return(invisible(data.frame()))
- }
- merged <- dplyr::bind_rows(all_results)
- saveRDS(all_results, out_rds)
- write.csv(merged, out_csv, row.names = FALSE)
- invisible(merged)
- }
- run_dataset <- function(seu,
- dataset_name,
- comparisons,
- marker_params,
- deg_params,
- grouping_vars,
- out_dir) {
- message("============================================================")
- message("Dataset: ", dataset_name)
- # ---------- (A) Cluster markers ----------
- marker_out_csv <- file.path(out_dir, paste0(dataset_name, "_FindAllMarkers.csv"))
- message("[A] Running FindAllMarkers -> ", marker_out_csv)
- run_find_all_markers(seu, marker_out_csv, marker_params)
- # ---------- (B) DEG within seurat_clusters/cell_type/neu_type ----------
- message("[B] Running DEG with MAST within grouping variables...")
- for (gv in grouping_vars) {
- # If optional annotations are missing, skip silently to keep script clean
- if (!gv %in% colnames([email hidden])) {
- message(" - Skipping ", gv, " (not found in meta.data)")
- next
- }
- out_rds <- file.path(out_dir, paste0(dataset_name, "_DEG_", gv, ".rds"))
- out_csv <- file.path(out_dir, paste0(dataset_name, "_DEG_", gv, ".csv"))
- message(" - Grouping: ", gv, " -> ", basename(out_csv))
- run_deg_within_groups(
- seu = seu,
- grouping_var = gv,
- comparisons = comparisons,
- out_rds = out_rds,
- out_csv = out_csv,
- deg_params = deg_params
- )
- }
- message("Done: ", dataset_name)
- invisible(TRUE)
- }
- # ============================================================
- # 3) Run: unsorted + sorted (same workflow)
- # ============================================================
- stopifnot(file.exists(INTEGRATED_UNSORTED_RDS))
- stopifnot(file.exists(INTEGRATED_SORTED_RDS))
- unsorted_seu <- readRDS(INTEGRATED_UNSORTED_RDS)
- sorted_seu <- readRDS(INTEGRATED_SORTED_RDS)
- # 'group' must exist for DE comparisons
- assert_has_meta(unsorted_seu, c("group", "seurat_clusters"))
- assert_has_meta(sorted_seu, c("group", "seurat_clusters"))
- run_dataset(
- seu = unsorted_seu,
- dataset_name = "unsorted",
- comparisons = UNSORTED_COMPARISONS,
- marker_params = MARKER_PARAMS,
- deg_params = DEG_PARAMS,
- grouping_vars = GROUPING_VARS,
- out_dir = OUT_DIR
- )
- run_dataset(
- seu = sorted_seu,
- dataset_name = "sorted",
- comparisons = SORTED_COMPARISONS,
- marker_params = MARKER_PARAMS,
- deg_params = DEG_PARAMS,
- grouping_vars = GROUPING_VARS,
- out_dir = OUT_DIR
- )
- message("All finished.")
Cell_Type_Marker_and_DEG.R at commit 1917bf2, no license · at the source
Overview
- Department of Molecular and Human Genetics, Baylor College of Medicine, Houston, TX, USA
- Genetics and Genomics program, Baylor College of Medicine, Houston, TX, USA
- Jan and Dan Duncan Neurological Research Institute at Texas Children’s Hospital, Houston, TX, USA
- Department of Neuroscience, Baylor College of Medicine, Houston, TX, USA
- Department of Pediatrics, Baylor College of Medicine, Houston, TX, USA
- Howard Hughes Medical Institute, Baylor College of Medicine, Houston, TX, USA
Abstract
Rett syndrome (RTT) is an X-linked neurological disorder caused by MECP2 mutations, creating distinct cellular environments in females (mosaic) versus males (nonmosaic). Despite female patients representing most cases, how mosaicism contributes molecularly to RTT pathogenesis, particularly in presymptomatic stages, remains poorly understood. To address this question, we profiled hippocampal transcriptomes of young female and male RTT mice using bulk and single-nucleus RNA sequencing. We identified a core disease signature of consistently dysregulated genes only in MeCP2− cells across RTT models. Moreover, we uncovered non–cell autonomous effects exclusively in female MeCP2+ excitatory neurons, suggesting that these circuits are more vulnerable early in the mosaic RTT environment. The single-nuclei data also revealed an underappreciated MeCP2− interneuron subtype that had the most transcriptional dysregulation in both male and female RTT hippocampi. Together, these data highlight the different effects of MeCP2 loss on excitatory and inhibitory circuits between the mosaic and nonmosaic environments in early RTT pathogenesis.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
Zenodo 18462624
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
9 files
- analysis_code/
Bootstrap_pseudobulk.R , R, 209 lines - analysis_code/
CellAuto_nonauto_analysi , R, 248 liness.R - analysis_code/
Cell_Type_Marker_and_DEG , R, 253 lines.R - analysis_code/
Integration_and_Preproce , R, 162 linesssing.R - analysis_code/
QC.R , R, 369 lines - analysis_code/
UMAP_Figure.R , R, 210 lines - analysis_code/
perform_hypergeometric_t , R, 138 linesest.R - bulkRNAseq_data.R, R, 1,078 lines
- README.md, Text, 6 lines
yanl54/mecp2_hippocampus_signature
1917bf21d2e6276e213a79a16da1ec50893463d1, 2 February 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
9 files
- analysis_code/
Bootstrap_pseudobulk.R , R, 209 lines, 1 match - analysis_code/
CellAuto_nonauto_analysi , R, 248 liness.R - analysis_code/
Cell_Type_Marker_and_DEG , R, 253 lines, 2 matches.R - analysis_code/
Integration_and_Preproce , R, 162 lines, 1 matchssing.R - analysis_code/
QC.R , R, 369 lines - analysis_code/
UMAP_Figure.R , R, 210 lines - analysis_code/
perform_hypergeometric_t , R, 138 linesest.R - bulkRNAseq_data.R, R, 1,078 lines, 1 match
- README.md, Text, 6 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 16 scripts, each with its path and the digest of its content;
- 5 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data, code, and materials availability
All data and code needed to evaluate and reproduce the results in the paper are present in the paper and/
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 14 MeSH terms, 4 funders, 79 references.
Cite
This paper
Li, Y., Anderson, A. G., Qi, G., Wu, S.-R., Revelli, J.-P., Chen, H., Liu, Z., & Zoghbi, H. Y. (2026). Single-nucleus profiling reveals a core disease signature and cell type-specific vulnerabilities in early Rett syndrome. Science advances, 12(24), eaeb4265. https://
BibTeX
@article{li2026single,
author = {Li, Yan and Anderson, Ashley G. and Qi, Guantong and Wu, Sih-Rong and Revelli, Jean-Pierre and Chen, Hu and Liu, Zhandong and Zoghbi, Huda Y.},
title = {{Single-nucleus profiling reveals a core disease signature and cell type-specific vulnerabilities in early Rett syndrome}},
journal = {Science advances},
year = {2026},
month = jun,
volume = {12},
number = {24},
pages = {eaeb4265},
publisher = {American Association for the Advancement of Science},
issn = {2375-2548},
doi = {10.1126/
url = {https://
pmid = {42268975},
pmcid = {PMC13251834}
}
RIS
TY - JOUR
AU - Li, Yan
AU - Anderson, Ashley G.
AU - Qi, Guantong
AU - Wu, Sih-Rong
AU - Revelli, Jean-Pierre
AU - Chen, Hu
AU - Liu, Zhandong
AU - Zoghbi, Huda Y.
TI - Single-nucleus profiling reveals a core disease signature and cell type-specific vulnerabilities in early Rett syndrome
T2 - Science advances
J2 - Sci Adv
PY - 2026
DA - 2026/
VL - 12
IS - 24
SP - eaeb4265
SN - 2375-2548
PB - American Association for the Advancement of Science
DO - 10.1126/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1126/
"type": "article-journal",
"title": "Single-nucleus profiling reveals a core disease signature and cell type-specific vulnerabilities in early Rett syndrome",
"container-title": "Science advances",
"author": [
{
"family": "Li",
"given": "Yan"
},
{
"family": "Anderson",
"given": "Ashley G."
},
{
"family": "Qi",
"given": "Guantong"
},
{
"family": "Wu",
"given": "Sih-Rong"
},
{
"family": "Revelli",
"given": "Jean-Pierre"
},
{
"family": "Chen",
"given": "Hu"
},
{
"family": "Liu",
"given": "Zhandong"
},
{
"family": "Zoghbi",
"given": "Huda Y."
}
],
"container-title-short":
"volume": "12",
"issue": "24",
"page": "eaeb4265",
"DOI": "10.1126/
"PMID": "42268975",
"PMCID": "PMC13251834",
"ISSN": "2375-2548",
"publisher": "American Association for the Advancement of Science",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
10
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1126/scitranslmed.adq4529 [code]
- Modulating alternative splicing of &
lt;i& gt;MECP2& lt;/ i& gt; is a potential therapeutic strategy for Rett syndrome. Journal: Science translational medicineIn common: limma, DESeq2, pheatmap, 3 other tools, other condition, mouse, 9 references, 5 authors - [2] doi:10.1002/imt2.70163 [code]
- Spatial multi-omics unveils sphingolipid metabolic reprogramming within the retinal pathological niche.Journal: iMetaIn common: Harmony, SingleCellExperiment, limma, 11 other tools, genetics / omics, mouse, cellular / molecular, 1 reference
- [3] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Harmony, SingleCellExperiment, limma, 10 other tools, genetics / omics, other condition, cellular / molecular, 2 references
- [4] doi:10.1038/s41593-026-02367-0 [code]
- A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.Journal: Nature neuroscienceIn common: Harmony, SingleCellExperiment, limma, 10 other tools, cellular / molecular, 2 references
- [5] doi:10.1038/s42003-026-10034-0 [code]
- Region- and cell type-specific changes in gene expression in the cerebellum after classical fear conditioning.Journal: Communications biologyIn common: SingleCellExperiment, limma, rstatix, 9 other tools, genetics / omics, mouse, cellular / molecular, 3 references
- [6] doi:10.1016/j.isci.2026.115573 [code]
- Female cortical cellular mosaicism underlies shared MeCP2 and PCB impacted gene pathways.Journal: iScienceIn common: SingleCellExperiment, limma, circlize, 7 other tools, mouse, cellular / molecular, 4 references
- [7] doi:10.1038/s41586-026-10214-2 [code]
- Multidimensional profiling of heterogeneity in supratentorial ependymomas.Journal: NatureIn common: Harmony, SingleCellExperiment, circlize, 9 other tools, genetics / omics, other condition, mouse, 1 reference
- [8] doi:10.1038/s41380-026-03629-w [code]
- Maternal fasting during early gestation induces epigenetic alterations and schizophrenia-related phenotypes.Journal: Molecular psychiatryIn common: Harmony, limma, circlize, 8 other tools, genetics / omics, mouse, cellular / molecular, 3 references
- [9] doi:10.1038/s41467-026-76232-w [code]
- Th17 effector cytokines induce shared and distinct microglial and endothelial cell responses in a mouse model for post-streptococcal encephalitis.Journal: Nature communicationsIn common: Harmony, SingleCellExperiment, rstatix, 8 other tools, genetics / omics, other condition, mouse, 1 other category, 2 references
- [10] doi:10.1038/s41467-026-70232-6 [code]
- Gene expression dynamics of human and mouse craniofacial development at the single-cell level.Journal: Nature communicationsIn common: Harmony, SingleCellExperiment, limma, 8 other tools, genetics / omics, mouse, cellular / molecular, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 16 scripts, and 5 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:741caf9fa2e74f7f…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
