OSCR

Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 6 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Genotyping and quality control ↔ codes/samples_qc.py, lines 32–66 · score 0.81 · genetic sex, White British, aneuploidy, heterozygosity, outliers, field
  2. [2] § Methods › Identification of shared genetic variants ↔ pleioFDR_amd.m, the whole file · a weak match · score 0.65 · linkage disequilibrium, discovery rate, conjunctional, conjFDR, pleiotropic, variants
  3. [3] § Methods › Genotyping and quality control ↔ munge_sumstats.py, lines 105–123 · score 0.52 · allele frequency, imputation quality, genotype, variants, score, SNP
  4. [4] § Methods › Phenotypic and genetic correlation estimation ↔ codes/genetic_correlation_munge.sh, the whole file · a weak match · score 0.51 · LD score regression, genetic correlations, GWAS
  5. [5] § Methods › Identification of shared genetic variants ↔ runme.m, lines 1–127 · score 0.51 · discovery rate, MHC, conjunctional, conjFDR, pleiotropic, SNPs
  6. [6] § Methods › Prediction analysis ↔ codes/predict.py, lines 22–50 · score 0.51 · CV, training, prediction, Pearson, fold, components

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 · 87 lines · 2.9 KB · no license · 1 match

  1. import pandas as pd
  2. import numpy as np
  3. from pathlib import Path
  4. # ==========================================
  5. # 1. 路径配置
  6. # ==========================================
  7. PROJECT_ROOT = Path(__file__).resolve().parent
  8. DATA_DIR = PROJECT_ROOT / "data" / "ukb"
  9. RAW_DATA_PATH = Path("E:/sample_QC/ukb676304.csv") # 外部超大原始数据路径
  10. # 确保输出目录存在
  11. DATA_DIR.mkdir(parents=True, exist_ok=True)
  12. # ==========================================
  13. # 2. 核心功能函数
  14. # ==========================================
  15. def merge_imaging_genetics(imaging_id_file, genetic_id_file):
  16. """合并影像数据与基因数据共有的 Sample"""
  17. df_imaging = pd.read_csv(imaging_id_file, header=None, names=['eid'])
  18. # 读取基因 ID 文件
  19. df_genetic = pd.read_csv(genetic_id_file, sep=' ', header=None)
  20. df_genetic = df_genetic.iloc[:, :2]
  21. df_genetic.columns = ['eid', 'iid']
  22. # 取交集
  23. df_merged = pd.merge(df_imaging, df_genetic, on='eid')
  24. return df_merged
  25. def run_sample_qc(input_df, raw_pheno_path):
  26. # 定义需要提取的 UKB Field ID
  27. target_fields = {
  28. 'eid': 'eid',
  29. '22006-0.0': 'genetic_ethnic',
  30. '22020-0.0': 'used_in_pca',
  31. '31-0.0': 'self_reported_sex',
  32. '22001-0.0': 'genetic_sex',
  33. '22019-0.0': 'sex_aneuploidy',
  34. '22027-0.0': 'heterozygosity_outlier',
  35. '22021-0.0': 'genetic_kinship'
  36. }
  37. # 仅读取必要的列以节省内存
  38. df_raw = pd.read_csv(raw_pheno_path, usecols=list(target_fields.keys()))
  39. df_raw = df_raw.rename(columns=target_fields)
  40. # 与待处理 ID 合并
  41. df_qc = pd.merge(df_raw, input_df, on='eid')
  42. # 筛选条件:
  43. # 1. 自述性别与基因性别一致
  44. # 2. 排除性染色体非整倍体
  45. # 3. 排除杂合度或缺失率异常
  46. # 4. 遗传背景为 Unrelated White British
  47. # 5. 排除亲缘关系过近者 (Ten or more third-degree relatives)
  48. mask = (
  49. (df_qc['self_reported_sex'] == df_qc['genetic_sex']) &
  50. (df_qc['sex_aneuploidy'].isnull()) &
  51. (df_qc['heterozygosity_outlier'].isnull()) &
  52. (df_qc['genetic_ethnic'] == df_qc['used_in_pca']) &
  53. (df_qc['genetic_kinship'] != 10)
  54. )
  55. return df_qc[mask]
  56. # ==========================================
  57. # 3. 执行流程
  58. # ==========================================
  59. if __name__ == "__main__":
  60. # A. 合并初步 ID
  61. merged_ids = merge_imaging_genetics(
  62. imaging_id_file = DATA_DIR / "id_all.csv",
  63. genetic_id_file = DATA_DIR / "c1.txt"
  64. )
  65. # B. 执行 QC 筛选
  66. final_qc_df = run_sample_qc(merged_ids, RAW_DATA_PATH)
  67. # C. 保存结果
  68. output_path = DATA_DIR / "id_qc_final.csv"
  69. final_qc_df.to_csv(output_path, index=None)
  70. print(f"Done! Final sample size: {len(final_qc_df)}")
  71. print(f"Result saved to: {output_path}")

samples_qc.py at commit 89402d4, no license · at the source

Overview

Authors: Xinyi Dong1, Weijie Huang2, Hao-Jie Chen1, Yunhao Zhang3,4, Bing Liu1, Daoqiang Zhang2, Zhanjun Zhang1,5, Guolin Ma6, Ni Shu1,5,7
  1. State Key Laboratory of Cognitive Neuroscience and Learning & IDG/McGovern Institute for Brain Research, Beijing Normal University,Beijing, China
  2. College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics, the Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education,Nanjing, China
  3. State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences,Beijing, China
  4. School of Artificial Intelligence, University of Chinese Academy of Sciences,Beijing, China
  5. BABRI Centre, Beijing Normal University,Beijing, China
  6. Department of Radiology, China-Japan Friendship Hospital,Beijing, China
  7. Beijing Key Laboratory of Brain Imaging and Connectomics, Beijing Normal University,Beijing, China
Journal: Communications biology, volume 9, issue 1, article 942
Dates: received 2 July 2025; accepted 15 April 2026; published online 6 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s42003-026-10131-0 · PMID 42092107 · PMCID PMC13358041 · OpenAlex W7160405124
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), structural MRI / diffusion (modality), human (organism)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Graphs, fMRI & imaging
Keywords: Intelligence, Genome-wide association studies
MeSH: Brain*, Connectome*, Intelligence*, White Matter*, Diffusion Magnetic Resonance Imaging, Female, Genome-Wide Association Study, Humans, Male, Middle Aged, Polymorphism, Single Nucleotide (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Natural Science Foundation of China (National Science Foundation of China) (82301608, 32271145, 81871425, 210510238); Beijing Natural Science Foundation (L252087); Brain Science and Brain-like Intelligence Technology - National Science and Technology Major Project (2022ZD0213300), Open Research Fund of the State Key Laboratory of Cognitive Neuroscience and Learning (CNLZD2101, CNLZD2303), Fundamental Research Funds for the Central Universities (2017XTCX04), the Key Research and Development Program of Hebei Province of China (223777112D), Science and Technology Research and Development Plan of Chengde City of China (202109A057), Government Funded Outstanding Talent Project of Hebei Province
Citations: not cited yet (Europe PMC); 96 references in the paper

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.

Repositories

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

bulik/ldsc

License: GPL-3.0
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: 2fdeeb3b44379408794154993dbd6101b8946b7e, 16 January 2026
Languages: Python (19), MATLAB (4), Perl (1), R (1)
Size: 1,093 files, 25 scripts
Software Heritage: archived
Found in: “Code availability”
Holds: README, license file, environment (environment.yml, requirements.txt, setup.py), tests
Not found: CITATION.cff, continuous integration, documentation
Tools: NumPy (18 files), pandas (11 files), SciPy (5 files), BEDTools (2 files)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
27 files
At the source: github.com/bulik/ldsc/

precimed/pleiofdr

License: GPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 0da963cac22fe8de9030166d7aea974bcbb0a367, 3 June 2025
Languages: MATLAB (33), Python (9), R (3), Shell (2), Jupyter (1)
Size: 55 files, 48 scripts
Software Heritage: archived
Found in: “Code availability”
Holds: README, license file, 1 notebook
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (8 files), pandas (8 files), Statistics and Machine Learning Toolbox (6 files), data.table (3 files), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
50 files

Zenodo 19436734

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (3 files), pandas (3 files), Pingouin (1 file), scikit-learn (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
7 files
At the source:

sheeya-dong/wm_intelligence

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 89402d47a9f6cc93fbae53040626df643dbcc84e, 6 April 2026
Languages: Shell (3), Python (3)
Size: 7 files, 6 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (3 files), pandas (3 files), Pingouin (1 file), scikit-learn (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
7 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s42003-026-10131-0.

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:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 85 scripts, each with its path and the digest of its content;
  • 6 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 availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s42003-026-10131-0.

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, 9 authors, 2 keywords, 11 MeSH terms, 3 funders, 93 references.

Cite

This paper

Dong, X., Huang, W., Chen, H.-J., Zhang, Y., Liu, B., Zhang, D., Zhang, Z., Ma, G., & Shu, N. (2026). Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence. Communications biology, 9(1), 942. https://doi.org/10.1038/s42003-026-10131-0

BibTeX

@article{dong2026shared,
author = {Dong, Xinyi and Huang, Weijie and Chen, Hao-Jie and Zhang, Yunhao and Liu, Bing and Zhang, Daoqiang and Zhang, Zhanjun and Ma, Guolin and Shu, Ni},
title = {{Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence}},
journal = {Communications biology},
year = {2026},
month = may,
volume = {9},
number = {1},
pages = {942},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-10131-0},
url = {https://doi.org/10.1038/s42003-026-10131-0},
pmid = {42092107},
pmcid = {PMC13358041}
}

RIS

TY - JOUR
AU - Dong, Xinyi
AU - Huang, Weijie
AU - Chen, Hao-Jie
AU - Zhang, Yunhao
AU - Liu, Bing
AU - Zhang, Daoqiang
AU - Zhang, Zhanjun
AU - Ma, Guolin
AU - Shu, Ni
TI - Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/05/06
VL - 9
IS - 1
SP - 942
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-10131-0
UR - https://doi.org/10.1038/s42003-026-10131-0
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-10131-0",
"type": "article-journal",
"title": "Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence",
"container-title": "Communications biology",
"author": [
{
"family": "Dong",
"given": "Xinyi"
},
{
"family": "Huang",
"given": "Weijie"
},
{
"family": "Chen",
"given": "Hao-Jie"
},
{
"family": "Zhang",
"given": "Yunhao"
},
{
"family": "Liu",
"given": "Bing"
},
{
"family": "Zhang",
"given": "Daoqiang"
},
{
"family": "Zhang",
"given": "Zhanjun"
},
{
"family": "Ma",
"given": "Guolin"
},
{
"family": "Shu",
"given": "Ni"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "942",
"DOI": "10.1038/s42003-026-10131-0",
"PMID": "42092107",
"PMCID": "PMC13358041",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-10131-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
6
]
]
}
}

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.1038/s41467-026-73996-z [code]
Genetic architecture of white matter microstructure captured by unsupervised deep representation learning of fractional anisotropy maps.
Journal: Nature communications
In common: scikit-learn, pandas, SciPy, 1 other tool, structural MRI / diffusion, genetics / omics, 15 references
[2] doi:10.1038/s41398-026-04081-8 [code]
Functional system-specific brain aging across the Alzheimer's disease continuum.
Journal: Translational psychiatry
In common: Pingouin, scikit-learn, pandas, 2 other tools, structural MRI / diffusion, 3 authors
[3] doi:10.1371/journal.pcbi.1014422 [code]
Deciphering cell type-specific causal genetic effects on brain imaging-derived phenotypes and disorders with single-cell Mendelian randomization.
Journal: PLoS computational biology
In common: data.table, genetics / omics, 13 references
[4] doi:10.1038/s41467-026-73428-y [code]
Regional heterogeneity in phenotypic and genetic associations between bone and brain in humans.
Journal: Nature communications
In common: BEDTools, data.table, pandas, 2 other tools, genetics / omics, 11 references
[5] doi:10.1038/s41467-026-71682-8 [code]
GWAS meta-analysis of cerebrospinal fluid Alzheimer's biomarkers reveals loci regulating lipids, brain volume and autophagy.
Journal: Nature communications
In common: BEDTools, data.table, scikit-learn, 3 other tools, structural MRI / diffusion, genetics / omics, 8 references
[6] doi:10.1038/s41467-026-73714-9 [code]
The genetic architecture of cortical similarity networks.
Journal: Nature communications
In common: pandas, SciPy, NumPy, structural MRI / diffusion, genetics / omics, 10 references
[7] doi:10.1038/s41562-026-02486-5 [code]
Genome-wide association studies of infant and toddler temperament in European and multi-ancestry populations.
Journal: Nature human behaviour
In common: data.table, pandas, SciPy, 1 other tool, genetics / omics, 8 references
[8] doi:10.1038/s41467-026-72164-7 [code]
Multivariate genetic analysis reveals three distinct pathological dimensions in musculoskeletal disorders.
Journal: Nature communications
In common: BEDTools, data.table, scikit-learn, 3 other tools, genetics / omics, 6 references
[9] doi:10.1002/hbm.70635 [code]
Cerebral Cortical Structural Variation and General Cognitive Ability: Evidence From Mendelian Randomization.
Journal: Human brain mapping
In common: structural MRI / diffusion, genetics / omics, 8 references
[10] doi:10.1038/s43856-026-01510-z [code]
Mapping genetic convergence across brain structure, mental health, and cardiometabolic disease.
Journal: Communications medicine
In common: BEDTools, data.table, Statistics and Machine Learning Toolbox, 3 other tools, genetics / omics, 4 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.

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.