Cellular state heterogeneity underlying sex differences in Alzheimer's disease based on single-cell transcriptome.
The 7 matches
- [1] § Materials and methods › Cell type annotation ↔ codes/01 datasets integration/01 single cell preprocess.py, lines 40–48 · score 0.99 · HLA DRA, C1QB, CAMK2A, CSF1R, CX3CR1, SLC17A7
- [2] § Materials and methods › Sex differential analysis within individual datasets ↔ codes/02 DEG calculation/03 DEG calculation.R, lines 41–122 · score 0.82 · APOE genotype, fold change, FindMarkers, Seurat, MAST, age
- [3] § Materials and methods › Identification of cell type-specific meta-programs (MPs) ↔ codes/03 MPs calculation/02-1 NMF_robust_modules.R, lines 1–27 · score 0.76 · negative matrix factorization, robust module, gene modules, threshold, ranked, NMF
- [4] § Materials and methods › Cell type annotation ↔ codes/03 MPs calculation/02-2 modules leiden clustering.py, lines 58–62 · score 0.58 · dimensionality reduction, highly variable genes, Scanpy, clustered
- [5] § Materials and methods › Identification of cell type-specific meta-programs (MPs) ↔ codes/01 datasets integration/01 single cell preprocess.py, lines 1–18 · score 0.57 · highly variable genes, Leiden clustering, selection, cell
- [6] § Results › Identification of cell type-specific meta-programs ↔ codes/03 MPs calculation/02-1 NMF_robust_modules.R, lines 1–27 · score 0.56 · negative matrix factorization, major cell, NMF, module, filtering, genes
- [7] § Materials and methods › Identification of cell type-specific meta-programs (MPs) ↔ codes/03 MPs calculation/02-2 modules leiden clustering.py, lines 58–62 · score 0.55 · highly variable genes, Leiden clustering, Scanpy, PCA, modules
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
Python · 172 lines · 5 KB · no license · 2 matches
- #!/usr/bin/env python3
- """
- Single-cell RNA-seq preprocessing pipeline
- ==========================================
- This script loads per-cell-type Loom files, merges them, performs QC,
- normalization, highly-variable gene selection, Harmony batch correction,
- Leiden clustering, UMAP visualization and marker-gene dot-plots.
- Author: wzy
- Date: 2025
- License: MIT
- """
- import os
- from typing import Dict, List
- import scanpy as sc
- import harmonypy
- # ------------------------- CONFIGURATION ------------------------- #
- # Groups and cell types to process
- GROUPS: List[str] = ["normal_F"]
- CELL_TYPES: List[str] = [
- "astrocytes",
- "excitatory neurons",
- "inhibitory neurons",
- "microglia",
- "oligodendrocytes",
- "OPCs",
- ]
- # Input / output paths
- BASE_INPUT = "/home/wzy/zyx_nmf/NC/scoreinput"
- OUTPUT_DIR = "/home/wzy/zyx_nmf/ecosystem/leiden_umap"
- INTEGRATED_DIR = "/home/wzy/zyx_nmf/ecosystem/integrated_data"
- os.makedirs(OUTPUT_DIR, exist_ok=True)
- os.makedirs(INTEGRATED_DIR, exist_ok=True)
- # Marker genes for dot-plot
- MARKER_GENES: Dict[str, List[str]] = {
- "astrocytes": ["AQP4", "SLC1A2"],
- "excitatory neurons": ["NRNG", "CAMK2A", "SLC17A7"],
- "inhibitory neurons": ["GAD1", "GAD2"],
- "microglia": ["CSF1R", "CD74", "C3", "HLA-DRA", "CX3CR1", "C1QB"],
- "oligodendrocytes": ["MBP", "MOBP", "PLP1", "MOG"],
- "OPCs": ["VCAN", "PCDH15", "MEGF11", "PDGFRA", "SOX10"],
- }
- # Sample-type mapping
- SAMPLE_TYPE_MAP = {"1": "AD", "2": "normal"}
- # ------------------------- FUNCTIONS ------------------------- #
- def load_and_concatenate(group: str) -> sc.AnnData:
- """
- Load per-cell-type Loom files and the external reference,
- then concatenate into a single AnnData object.
- """
- # Per-cell-type files
- adatas = [
- sc.read_loom(os.path.join(BASE_INPUT, f"{ct}_{group}.loom"))
- for ct in CELL_TYPES
- ]
- adata = sc.concat(adatas, join="outer")
- # External reference
- ex_path = os.path.join(BASE_INPUT, f"{group}_ROSMAP_ex.loom")
- adata_ex = sc.read_loom(ex_path)
- adata = sc.concat([adata_ex, adata], join="outer")
- return adata
- def qc_and_normalize(adata: sc.AnnData) -> None:
- """
- Basic QC, normalization, HVG selection and scaling (in-place).
- """
- sc.pp.filter_cells(adata, min_genes=200)
- sc.pp.filter_genes(adata, min_cells=3)
- sc.pp.normalize_total(adata, target_sum=1e4)
- sc.pp.log1p(adata)
- sc.pp.highly_variable_genes(
- adata, min_mean=0.0125, max_mean=3, min_disp=0.5, n_top_genes=5000
- )
- adata.raw = adata.copy()
- sc.pp.scale(adata, max_value=10)
- def harmony_correction_and_cluster(adata: sc.AnnData) -> None:
- """
- Run Harmony batch correction on 'subject', compute neighbours,
- UMAP and Leiden clustering (in-place).
- """
- sc.external.pp.harmony_integrate(adata, key="subject")
- sc.pp.neighbors(adata, use_rep="X_pca_harmony", key_added="harmony_neighbors")
- sc.tl.umap(adata, neighbors_key="harmony_neighbors")
- sc.tl.leiden(
- adata,
- resolution=1,
- key_added="clusters",
- neighbors_key="harmony_neighbors",
- flavor="igraph",
- n_iterations=2,
- directed=False,
- )
- def plot_umap(adata: sc.AnnData, group: str) -> None:
- """Save UMAP coloured by Leiden clusters."""
- sc.settings.figdir = OUTPUT_DIR
- sc.pl.umap(
- adata,
- color="clusters",
- frameon=False,
- title=f"{group} Leiden Clustering (UMAP)",
- palette="tab20",
- save=f"_{group}_clusters_1.pdf",
- )
- def plot_dotplot(adata: sc.AnnData, group: str) -> None:
- """Filter marker genes for presence and save dot-plot."""
- present_markers = {
- ct: [g for g in genes if g in adata.var_names]
- for ct, genes in MARKER_GENES.items()
- if any(g in adata.var_names for g in genes)
- }
- sc.settings.figdir = OUTPUT_DIR
- sc.pl.dotplot(
- adata,
- present_markers,
- groupby="clusters",
- dendrogram=True,
- save=f"_{group}_Dotplot_markers.pdf",
- )
- # ------------------------- MAIN PIPELINE ------------------------- #
- def main() -> None:
- for group in GROUPS:
- print(f"Processing group: {group}")
- adata = load_and_concatenate(group)
- print(adata)
- print("Data loaded")
- qc_and_normalize(adata)
- print("QC & normalization finished")
- harmony_correction_and_cluster(adata)
- print("Harmony integration & clustering finished")
- # Map sample_type to human-readable labels
- adata.obs["sample_type"] = adata.obs["sample_type"].replace(SAMPLE_TYPE_MAP)
- # Save integrated object
- integrated_path = os.path.join(INTEGRATED_DIR, f"{group}.h5ad")
- adata.write(integrated_path)
- # Visualisations
- plot_umap(adata, group)
- plot_dotplot(adata, group)
- # Memory cleanup
- del adata
- if __name__ == "__main__":
- main()
01 single cell preprocess.py at commit 2aa4cf8, no license · at the source
Overview
- College of Bioinformatics Science and Technology, Harbin Medical University,Harbin, 150081 China
- Department of Neurology, The First Affiliated Hospital of Harbin Medical University,Harbin, 150081 China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
327025640/AD-sex-difference
2aa4cf8ca799ccb2c32dcc7ce4bee7348a8e584a, 28 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
5 files
- codes/
01 datasets integration/ , Python, 172 lines, 2 matches01 single cell preprocess.py - codes/
02 DEG calculation/ , R, 256 lines, 1 match03 DEG calculation.R - codes/
03 MPs calculation/ , R, 139 lines, 2 matches02-1 NMF_robust_modules.R - codes/
03 MPs calculation/ , Python, 99 lines, 2 matches02-2 modules leiden clustering.py - codes/
03 MPs calculation/ , R, 99 lines02-3 orthogonal genes.R
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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 5 scripts, each with its path and the digest of its content;
- 7 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.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: 327025640/
AD-sex-difference
Read it in the paper: doi.org/10.1186/s13195-026-02081-w.
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 13 authors, 5 keywords, 9 MeSH terms, 1 funder, 48 references.
Cite
This paper
Wu, Z., Tan, Q., Xue, F., Jiang, Z., Zhao, H., Zhang, Y., Liu, Y., Zhang, Y., Ding, D., Chen, H., Xu, Y., Li, F., & Zhang, C. (2026). Cellular state heterogeneity underlying sex differences in Alzheimer's disease based on single-cell transcriptome. Alzheimer's research & therapy, 18(1), 158. https://
BibTeX
@article{wu2026cellular,
author = {Wu, Zhiyi and Tan, Qinglong and Xue, Fei and Jiang, Zhuotong and Zhao, Hongyu and Zhang, Yuting and Liu, Yiming and Zhang, Yu and Ding, Danli and Chen, Hongping and Xu, Yingqi and Li, Feng and Zhang, Chunlong},
title = {{Cellular state heterogeneity underlying sex differences in Alzheimer's disease based on single-cell transcriptome}},
journal = {Alzheimer's research \& therapy},
year = {2026},
month = may,
volume = {18},
number = {1},
pages = {158},
publisher = {BMC},
issn = {1758-9193},
doi = {10.1186/
url = {https://
pmid = {42135783},
pmcid = {PMC13343642}
}
RIS
TY - JOUR
AU - Wu, Zhiyi
AU - Tan, Qinglong
AU - Xue, Fei
AU - Jiang, Zhuotong
AU - Zhao, Hongyu
AU - Zhang, Yuting
AU - Liu, Yiming
AU - Zhang, Yu
AU - Ding, Danli
AU - Chen, Hongping
AU - Xu, Yingqi
AU - Li, Feng
AU - Zhang, Chunlong
TI - Cellular state heterogeneity underlying sex differences in Alzheimer's disease based on single-cell transcriptome
T2 - Alzheimer's research & therapy
J2 - Alzheimers Res Ther
PY - 2026
DA - 2026/
VL - 18
IS - 1
SP - 158
SN - 1758-9193
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Cellular state heterogeneity underlying sex differences in Alzheimer's disease based on single-cell transcriptome",
"container-title": "Alzheimer's research & therapy",
"author": [
{
"family": "Wu",
"given": "Zhiyi"
},
{
"family": "Tan",
"given": "Qinglong"
},
{
"family": "Xue",
"given": "Fei"
},
{
"family": "Jiang",
"given": "Zhuotong"
},
{
"family": "Zhao",
"given": "Hongyu"
},
{
"family": "Zhang",
"given": "Yuting"
},
{
"family": "Liu",
"given": "Yiming"
},
{
"family": "Zhang",
"given": "Yu"
},
{
"family": "Ding",
"given": "Danli"
},
{
"family": "Chen",
"given": "Hongping"
},
{
"family": "Xu",
"given": "Yingqi"
},
{
"family": "Li",
"given": "Feng"
},
{
"family": "Zhang",
"given": "Chunlong"
}
],
"container-title-short":
"volume": "18",
"issue": "1",
"page": "158",
"DOI": "10.1186/
"PMID": "42135783",
"PMCID": "PMC13343642",
"ISSN": "1758-9193",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
14
]
]
}
}
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.1093/bib/bbag411 [code]
- Screening of cell-type-specific meta-programs for drug repurposing in Alzheimer's disease.Journal: Briefings in bioinformaticsIn common: Harmony, Seurat, tidyverse, Alzheimer's / dementia, genetics / omics, 13 references
- [2] doi:10.1007/s12035-026-05859-z [code]
- Uncovering Spatiotemporal and Functional Dynamics of Long Non-coding RNAs During Alzheimer's Progression in the Human Brain at Single-Cell Resolution.Journal: Molecular neurobiologyIn common: Scanpy, Seurat, tidyverse, 3 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 7 references
- [3] doi:10.1101/gr.280436.125 [code]
- Cell type-specific gene regulatory atlas prioritizes drug targets and repurposable medicines in Alzheimer's disease.Journal: Genome researchIn common: Scanpy, Seurat, seaborn, 4 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 6 references
- [4] doi:10.1038/s41593-026-02267-3 [code]
- Spatial proteomic analysis in human Alzheimer's disease brains enables identification of microenvironment-depende
nt microglial cell states. Journal: Nature neuroscienceIn common: Harmony, Scanpy, Seurat, 4 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 4 references - [5] doi:10.1038/s41514-026-00391-9 [code]
- Region-specific transcriptional signatures of brain aging in the absence of neuropathology at the single-cell level.Journal: npj agingIn common: Harmony, Scanpy, Seurat, 5 other tools, genetics / omics, cellular / molecular, 4 references
- [6] doi:10.1038/s41467-026-73007-1 [code]
- Single-nucleus epigenomic dysregulation unmasks genetic risk-associated neurodegenerative glia states.Journal: Nature communicationsIn common: Scanpy, Seurat, tidyverse, 3 other tools, Alzheimer's / dementia, genetics / omics, cellular / molecular, 5 references
- [7] 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, Scanpy, Seurat, 5 other tools, genetics / omics, cellular / molecular, 4 references
- [8] doi:10.1038/s41467-026-74038-4 [code]
- Semaglutide attenuates neuroinflammation in male mice.Journal: Nature communicationsIn common: Scanpy, Seurat, tidyverse, 2 other tools, Alzheimer's / dementia, cellular / molecular, 6 references
- [9] doi:10.1038/s41586-026-10793-0
- Cell-type signatures of Alzheimer's disease shared across population groups.Journal: NatureIn common: Alzheimer's / dementia, genetics / omics, cellular / molecular, 9 references
- [10] doi:10.1038/s41586-026-10612-6 [code]
- Acquired genetic and cell-state changes in IDH-mutant glioma progression.Journal: NatureIn common: Harmony, Seurat, tidyverse, 2 other tools, cellular / molecular, 5 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: 1 repository of the authors' code, each at its verified commit and with its license, 5 scripts, and 7 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:c2f66d88c671bb22…
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.
