Shared genetic architecture between the topology of brain white matter structural connectome and fluid intelligence.
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] § Methods › Genotyping and quality control ↔ codes/samples_qc.py, lines 32–66 · score 0.81 · genetic sex, White British, aneuploidy, heterozygosity, outliers, field
- [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] § Methods › Genotyping and quality control ↔ munge_sumstats.py, lines 105–123 · score 0.52 · allele frequency, imputation quality, genotype, variants, score, SNP
- [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] § Methods › Identification of shared genetic variants ↔ runme.m, lines 1–127 · score 0.51 · discovery rate, MHC, conjunctional, conjFDR, pleiotropic, SNPs
- [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
- import pandas as pd
- import numpy as np
- from pathlib import Path
- # ==========================================
- # 1. 路径配置
- # ==========================================
- PROJECT_ROOT = Path(__file__).resolve().parent
- DATA_DIR = PROJECT_ROOT / "data" / "ukb"
- RAW_DATA_PATH = Path("E:/sample_QC/ukb676304.csv") # 外部超大原始数据路径
- # 确保输出目录存在
- DATA_DIR.mkdir(parents=True, exist_ok=True)
- # ==========================================
- # 2. 核心功能函数
- # ==========================================
- def merge_imaging_genetics(imaging_id_file, genetic_id_file):
- """合并影像数据与基因数据共有的 Sample"""
- df_imaging = pd.read_csv(imaging_id_file, header=None, names=['eid'])
- # 读取基因 ID 文件
- df_genetic = pd.read_csv(genetic_id_file, sep=' ', header=None)
- df_genetic = df_genetic.iloc[:, :2]
- df_genetic.columns = ['eid', 'iid']
- # 取交集
- df_merged = pd.merge(df_imaging, df_genetic, on='eid')
- return df_merged
- def run_sample_qc(input_df, raw_pheno_path):
- # 定义需要提取的 UKB Field ID
- target_fields = {
- 'eid': 'eid',
- '22006-0.0': 'genetic_ethnic',
- '22020-0.0': 'used_in_pca',
- '31-0.0': 'self_reported_sex',
- '22001-0.0': 'genetic_sex',
- '22019-0.0': 'sex_aneuploidy',
- '22027-0.0': 'heterozygosity_outlier',
- '22021-0.0': 'genetic_kinship'
- }
- # 仅读取必要的列以节省内存
- df_raw = pd.read_csv(raw_pheno_path, usecols=list(target_fields.keys()))
- df_raw = df_raw.rename(columns=target_fields)
- # 与待处理 ID 合并
- df_qc = pd.merge(df_raw, input_df, on='eid')
- # 筛选条件:
- # 1. 自述性别与基因性别一致
- # 2. 排除性染色体非整倍体
- # 3. 排除杂合度或缺失率异常
- # 4. 遗传背景为 Unrelated White British
- # 5. 排除亲缘关系过近者 (Ten or more third-degree relatives)
- mask = (
- (df_qc['self_reported_sex'] == df_qc['genetic_sex']) &
- (df_qc['sex_aneuploidy'].isnull()) &
- (df_qc['heterozygosity_outlier'].isnull()) &
- (df_qc['genetic_ethnic'] == df_qc['used_in_pca']) &
- (df_qc['genetic_kinship'] != 10)
- )
- return df_qc[mask]
- # ==========================================
- # 3. 执行流程
- # ==========================================
- if __name__ == "__main__":
- # A. 合并初步 ID
- merged_ids = merge_imaging_genetics(
- imaging_id_file = DATA_DIR / "id_all.csv",
- genetic_id_file = DATA_DIR / "c1.txt"
- )
- # B. 执行 QC 筛选
- final_qc_df = run_sample_qc(merged_ids, RAW_DATA_PATH)
- # C. 保存结果
- output_path = DATA_DIR / "id_qc_final.csv"
- final_qc_df.to_csv(output_path, index=None)
- print(f"Done! Final sample size: {len(final_qc_df)}")
- print(f"Result saved to: {output_path}")
samples_qc.py at commit 89402d4, no license · at the source
Overview
- State Key Laboratory of Cognitive Neuroscience and Learning & IDG/McGovern Institute for Brain Research, Beijing Normal University,Beijing, China
- College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics, the Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education,Nanjing, China
- State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences,Beijing, China
- School of Artificial Intelligence, University of Chinese Academy of Sciences,Beijing, China
- BABRI Centre, Beijing Normal University,Beijing, China
- Department of Radiology, China-Japan Friendship Hospital,Beijing, China
- Beijing Key Laboratory of Brain Imaging and Connectomics, Beijing Normal University,Beijing, 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.
Repositories
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
bulik/ldsc
2fdeeb3b44379408794154993dbd6101b8946b7e, 16 January 2026Availability: 1 check, the latest on 26 September 2026: the link answers
- 26 September 2026: the link answers
27 files
- ContinuousAnnotations/
quantile_M.pl , Perl, 241 lines - ContinuousAnnotations/
quantile_h2g.r , R, 76 lines - ldsc.py, Python, 660 lines
- ldscore/
__init__.py , Python, 1 line - ldscore/
irwls.py , Python, 196 lines - ldscore/
jackknife.py , Python, 514 lines - ldscore/
ldscore.py , Python, 415 lines - ldscore/
parse.py , Python, 292 lines - ldscore/
regressions.py , Python, 743 lines - ldscore/
sumstats.py , Python, 581 lines - make_annot.py, Python, 56 lines
- munge_sumstats.py, Python, 745 lines, 1 match
- setup.py, Python, 20 lines
- test/
parse_test/ , MATLAB, 1 linetest.l2.M - test/
parse_test/ , MATLAB, 1 linetest1.l2.M - test/
parse_test/ , MATLAB, 1 linetest2.l2.M - test/
parse_test/ , MATLAB, 1 linetest_bad.l2.M - test/
simulate.py , Python, 81 lines - test/
test_irwls.py , Python, 69 lines - test/
test_jackknife.py , Python, 267 lines - test/
test_ldscore.py , Python, 111 lines - test/
test_munge_sumstats.py , Python, 358 lines - test/
test_parse.py , Python, 129 lines - test/
test_regressions.py , Python, 342 lines - test/
test_sumstats.py , Python, 487 lines - LICENSE, License, 675 lines
- README.md, Text, 122 lines
precimed/pleiofdr
0da963cac22fe8de9030166d7aea974bcbb0a367, 3 June 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
50 files
- FastPrune.m, MATLAB, 36 lines
- GCcorrect_logpvec.m, MATLAB, 39 lines
- MultipleRunUtility.sh, Shell, 52 lines
- SparseSmooth2d.m, MATLAB, 45 lines
- TextConfig.m, MATLAB, 134 lines
- binofit_dale.m, MATLAB, 30 lines
- binofit_wrap.m, MATLAB, 7 lines
- check_sample_overlap.m, MATLAB, 17 lines
- cond_FDR_amd.m, MATLAB, 40 lines
- conj_lookup_table.m, MATLAB, 17 lines
- correct_sample_overlap.m
, MATLAB, 21 lines - filter_points_for_plotti
ng.m , MATLAB, 46 lines - fisher_comStats.m, MATLAB, 21 lines
- fuma/
cond_fuma_combined.R , R, 54 lines - fuma/
conj_fuma_combined_lead. , R, 70 linesR - fuma/
conj_fuma_combined_novel , Python, 50 linesty.py - fuma/
conj_fuma_combined_snps. , R, 67 linesR - fuma/
csv_to_excel.ipynb , Jupyter, 947 lines - ind_loci_idx.m, MATLAB, 37 lines
- is_octave.m, MATLAB, 4 lines
- load_gwas.m, MATLAB, 54 lines
- locusnumber.m, MATLAB, 44 lines
- lookup_table.m, MATLAB, 160 lines
- pleioFDR_amd.m, MATLAB, 95 lines, 1 match
- pleioOpt.m, MATLAB, 134 lines
- pleiotropy_analysis.m, MATLAB, 293 lines
- plot_Manhattan.m, MATLAB, 307 lines
- plot_enrichment_amd.m, MATLAB, 183 lines
- plot_lookup.m, MATLAB, 104 lines
- plot_qq_amd.m, MATLAB, 195 lines
- plot_qq_annot.m, MATLAB, 97 lines
- random_prune_idx_amd.m, MATLAB, 30 lines
- random_prune_idx_amd_fb.
m , MATLAB, 74 lines - ref4pleioFDR/
README.sh , Shell, 1 line - ref4pleioFDR/
toolkit/ , Python, 45 linesannot2annomat.py - ref4pleioFDR/
toolkit/ , Python, 187 linesknownGene2annot.py - ref4pleioFDR/
toolkit/ , Python, 114 linesld_informed_annot.py - ref4pleioFDR/
toolkit/ , Python, 79 linesld_informed_annot_4test. py - ref4pleioFDR/
toolkit/ , Python, 52 linessLDSC_scripts.py - ref4pleioFDR/
toolkit/ , Python, 37 linessign_replicate.py - ref4pleioFDR/
toolkit/ , Python, 66 linesuniq_annot.py - run_batch.py, Python, 43 lines
- runme.m, MATLAB, 183 lines, 1 match
- save_fdr.m, MATLAB, 51 lines
- save_figure.m, MATLAB, 20 lines
- save_to_csv.m, MATLAB, 20 lines
- save_zscore.m, MATLAB, 54 lines
- suplabel.m, MATLAB, 99 lines
- LICENSE, License, 674 lines
- README.md, Text, 195 lines
Zenodo 19436734
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
7 files
- codes/
genetic_correlation_mung , Shell, 54 linese.sh - codes/
genetic_correlation_rg.s , Shell, 61 linesh - codes/
gwas.sh , Shell, 43 lines - codes/
mediation.py , Python, 99 lines - codes/
predict.py , Python, 107 lines - codes/
samples_qc.py , Python, 87 lines - README.md, Text, 5 lines
sheeya-dong/wm_intelligence
89402d47a9f6cc93fbae53040626df643dbcc84e, 6 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
7 files
- codes/
genetic_correlation_mung , Shell, 54 lines, 1 matche.sh - codes/
genetic_correlation_rg.s , Shell, 61 linesh - codes/
gwas.sh , Shell, 43 lines - codes/
mediation.py , Python, 99 lines - codes/
predict.py , Python, 107 lines, 1 match - codes/
samples_qc.py , Python, 87 lines, 1 match - README.md, Text, 5 lines
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:
- it points to the authors' code: bulik/
ldsc , precimed/pleiofdr , Zenodo 19436734
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://
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/
url = {https://
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/
VL - 9
IS - 1
SP - 942
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "9",
"issue": "1",
"page": "942",
"DOI": "10.1038/
"PMID": "42092107",
"PMCID": "PMC13358041",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 communicationsIn 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 psychiatryIn 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 biologyIn 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 communicationsIn 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 communicationsIn 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 communicationsIn 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 behaviourIn 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 communicationsIn 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 mappingIn 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 medicineIn 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.
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: 4 repositories of the authors' code, each at its verified commit and with its license, 85 scripts, and 6 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:c4e6daacc2b9b06b…
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.
