A prototype-augmented graph representation learning framework for identifying brain disorder-associated genes and facilitating drug repurposing.
The 4 matches
- [1] § Methods › Data source and processing ↔ Tutorial.ipynb, lines 1–27 · score 0.87 · Parietal Lobe, Occipital Lobe, Temporal Lobe, Frontal Lobe, multi omics, SNP interaction
- [2] § Methods › Data source and processing ↔ data_preprocess_cv.py, lines 174–207 · score 0.83 · Parietal Lobe, Occipital Lobe, Temporal Lobe, Frontal Lobe, preprocessing, Cerebellum
- [3] § Methods › Training the model ↔ main.py, lines 50–96 · score 0.69 · Focal loss, training mask, neighbors, epochs, unlabeled, batch
- [4] § Methods › Transformer-based gene prediction model for brain disorders ↔ model.py, lines 25–112 · score 0.59 · layer normalization, dropout, linear, max, transformer, graph
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
Jupyter notebook · 141 lines · 5.8 KB · no license · 1 match
- # %% [markdown]
- # # Tutorial
- # This tutorial demonstrates how to use MOGT functions with a demo dataset (SCZ as an example). Once you are familiar with SCZ’s workflow, please replace the demo data with your own data to begin your analysis.
- #
- # ## How to prepare input data
- #
- # We recommend getting started with SCZ using the provided demo dataset. When you want to apply SCZ to your own multi-omics dataset, please refer to the following tutorials to learn how to prepare input data.
- #
- # Overall, the input data consists of two parts: the graph, constructed from SNP-SNP interaction and the node feature including DE, EPI, and gene expression in five brain regions(Parietal Lobe, Frontal Lobe, Temporal Lobe, Cerebellum, and Occipital Lobe)in adolescents and adults.
- #
- # If you are unfamiliar with MOGT, you may start with our data used in the paper to save your time. For SCZ, the input data as well as the label information are uploaded [here](https://github.com/NBStarry/CGMega/tree/main/data). If you start with this data, you can skip the _step 1_ about _How to prepare input data_.
- #
- # > The labels should be collected yourself if you choose analyze your own data.
- # %% [markdown]
- # ### Import default params and set constants
- # %% [markdown]
- # ### load omics data
- # The input demo data as well as the label information are uploaded [here](https://github.com/JiafangLi/MOGT/tree/main/data), put it into DATA_DIR, and run:
- # %%
- node_feat, pos = get_node_feat(disease=disease)
- feat_cols = ["de","brain_cp","brain_gz","neuron_count","oligo_count","micro_count","adolescence_parietal.lobe","adolescence_frontal.lobe","adolescence_temporal.lobe","adolescence_cerebellum","adolescence_occipital.lobe","adulthood_parietal.lobe","adulthood_frontal.lobe","adulthood_temporal.lobe","adulthood_cerebellum","adulthood_occipital.lobe"]
- feat_df = pd.DataFrame(data=node_feat, columns=feat_cols)
- feat_df = pd.concat([GENE_LIST, feat_df], axis=1)
- feat_df[:10]
- # %% [markdown]
- # ### SNP-SNP interaction construction
- # Then, we read the SNP-SNP interaction data (SNP-SNP interaction from [Zenodo]()) and transform it into a graph through the following commands:
- # %%
- snp_mat = get_snp_mat(disease=disease)
- snp_mat[20:30, 20:30]
- # %% [markdown]
- # ### Load gene labels
- # %%
- node_lab, labeled_idx = get_label(disease=disease )
- labeled_lab = [node_lab[i][1] for i in labeled_idx]
- print(f"Positive samples: {sum(node_lab)[1]} Negative samples: {sum(node_lab)[0]} Unlabeled samples: {len(node_lab) - len(labeled_idx)}")
- print(node_lab)
- # %% [markdown]
- # ### Build PyG Data instance
- # %%
- from data_preprocess_cv import build_pyg_data
- edge_threshhold = configs["edge_threshhold"]
- random = configs["random"]
- data = build_pyg_data(GENE_LIST,node_feat, node_lab, snp_mat, pos,edge_threshhold,random)
- data
- # %% [markdown]
- # ### Do train-test split
- #
- # 25% for test set, 75% for a 10-fold train-valid spilt.
- # %%
- from data_preprocess_cv import split_data
- train_idx_list,valid_idx_list,test_idx = split_data(CV_FOLDS,labeled_idx,labeled_lab)
- # %% [markdown]
- # ### Create CancerDataset and Save
- # %%
- import pickle
- cv_dataset = create_cv_dataset(train_idx_list.copy(), valid_idx_list.copy(), test_idx.copy(), data=data)
- print(cv_dataset[0])
- dataset_dir = "data/" + configs["disease"] + "/"+ configs["disease"]+ "_dataset.pkl"
- print(f'Finished! Saving dataset to {dataset_dir} ......')
- with open(dataset_dir, 'wb') as f:
- pickle.dump(cv_dataset, f)
- # %% [markdown]
- # ### Load data and Train model <div id="load-data-and-train-model"></div>
- #
- # A 5-fold training.
- # %%
- from main import get_training_modules, train_model, predict, calculate_metrics, pred_to_df,test
- from data_preprocess_cv import scale_data
- configs['stable'] = True
- # set to 'cuda' to use GPU.
- configs['device'] = 'cuda'
- # Set log_name and logfile to suit your needs, and you will see training details in logfile.
- configs['log_name'] = configs["disease"]
- configs['logfile'] = os.path.join(configs["log_dir"], configs["log_name"] + ".txt")
- dataset = get_data(configs,disease)
- def calculate_confidence_interval(scores):
- mean = np.mean(scores)
- std = np.std(scores)
- n = len(scores)
- z = 1.96 # Z-value at 95% confidence level
- bound = (z * std / np.sqrt(n))
- return bound
- sum_auprc, sum_auc, sum_acc, sum_f1, sum_tp, train_result = [], [], [], [], [], []
- for i in range(CV_FOLDS):
- head_info = True if i == 0 else False
- configs['fold'] = i
- data = dataset
- data = scale_data(data,i)
- modules = get_training_modules(configs, data)
- auprc, auc, acc, f1, tp, new_ckpt,cutoff = train_model(modules, configs, configs['log_name'], i, head_info,)
- y_score, y_pred, y_true, y_index, genes = predict(modules['model'], modules['test_loader_list'], configs, new_ckpt)
- acc, cf_matrix, auprc, f1, auc, test_cutoff = calculate_metrics(y_true, y_pred, y_score)
- #save test result
- y = pd.DataFrame({'y_true': y_true, 'y_score': y_score,"y_pred":y_pred,"cutoff":cutoff})
- result = pd.concat([genes,y], axis=1)
- result.to_csv(configs["out_dir"]+"/"+disease +"/"+disease+"_"+"test"+"_"+str(i)+".csv",index_label=False)
- tp = cf_matrix[1, 1]
- sum_auprc.append(auprc)
- sum_auc.append(auc)
- sum_acc.append(acc)
- sum_f1.append(f1)
- sum_tp.append(tp)
- with open(configs['logfile'], 'a') as f:
- print("Test AUPRC:{:.4f}, AUROC:{:.4f}, ACC:{:.4f}, F1:{:.4f}, TP:{:.1f},cutoff:{:.4f}"
- .format(auprc, auc, acc, f1, tp,test_cutoff), file=f, flush=True)
- train_result = pred_to_df(i, train_result, y_index, y_true, y_score)
- auc_ci = calculate_confidence_interval(sum_auc)
- auprc_ci = calculate_confidence_interval(sum_auprc)
- avg_auc = sum(sum_auc) / len(sum_auc)
- avg_Auprc = sum(sum_auprc) / len(sum_auprc)
- avg_fi = sum(sum_f1) / len(sum_f1)
- with open(configs['logfile'], 'a') as f:
- print(f"{CV_FOLDS}-folds AUPRC:{avg_Auprc:.4f}+{auprc_ci}, AUROC:{avg_auc:.4f}+{auc_ci}, F1:{avg_fi:.4f}",
- file=f, flush=True)
Tutorial.ipynb at commit 25ff432, no license · at the source
Overview
- Department of Medical Research Center, Sun Yat-Sen Memorial Hospital, Sun Yat-Sen University, Guangzhou, Guangdong, China
- Guangdong Provincial Key Laboratory of Malignant Tumor Epigenetics and Gene Regulation, Guangzhou, Guangdong, China
- School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou, Guangdong, China
Abstract
Many genetic loci were identified as associated with neuropsychiatric disorders and neurodegenerative disorders by Genome-wide association studies (GWAS). How these loci impact these diseases is unclear. Advances in deep-learning approaches and multi-omics data have the potential to link GWAS findings with disease mechanisms. Here, we proposed the Multi-omics Graph Transformer Network (MOGT), a semi-supervised graph neural network that leverages graph representation learning to model biological networks derived from multi-omics data to predict disease-associated genes. MOGT outperforms the current approaches in disease gene prediction for two psychiatric disorders and three neurodegenerative/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
biomed-AI/MOGT
25ff432d66dc01849c119f0d4acc1d3802dfc7b2, 22 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
7 files
- Tutorial.ipynb, Jupyter, 141 lines, 1 match
- config/
config_load.py , Python, 53 lines - data_preprocess_cv.py, Python, 266 lines, 1 match
- main.py, Python, 496 lines, 1 match
- model.py, Python, 136 lines, 1 match
- utils.py, Python, 20 lines
- README.md, Text, 86 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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 6 scripts, each with its path and the digest of its content;
- 4 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
Datasets cited
- geo:GSE7621, at NCBI GEO; found in the text, “Expression correlation analysis”
Data Availability
All relevant data supporting the key findings of this study are available within the article and its Supplementary Material. In this study, we collected data from public databases. Genes related to brain disorders were obtained from four databases, Human Phenotype Ontology (HPO, https://
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 2, 28 September 2026
- Funding: added National Natural Science Foundation of China: 82371482; Natural Science Foundation of Guangdong Province: 2024A1515011363; National Key Research and Development Program of China: 2023YFF1204902
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 10 MeSH terms, 79 references.
Cite
This paper
Li, J., Li, Y., Lin, S., Rao, J., & Zhao, H. (2026). A prototype-augmented graph representation learning framework for identifying brain disorder-associated genes and facilitating drug repurposing. PLoS computational biology, 22(5), e1014323. https://
BibTeX
@article{li2026prototype
author = {Li, Jiafang and Li, Yifei and Lin, Siying and Rao, Jiahua and Zhao, Huiying},
title = {{A prototype-augmented graph representation learning framework for identifying brain disorder-associated genes and facilitating drug repurposing}},
journal = {PLoS computational biology},
year = {2026},
month = may,
volume = {22},
number = {5},
pages = {e1014323},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/
url = {https://
pmid = {42213730},
pmcid = {PMC13221074}
}
RIS
TY - JOUR
AU - Li, Jiafang
AU - Li, Yifei
AU - Lin, Siying
AU - Rao, Jiahua
AU - Zhao, Huiying
TI - A prototype-augmented graph representation learning framework for identifying brain disorder-associated genes and facilitating drug repurposing
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/
VL - 22
IS - 5
SP - e1014323
SN - 1553-734X
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "A prototype-augmented graph representation learning framework for identifying brain disorder-associated genes and facilitating drug repurposing",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Li",
"given": "Jiafang"
},
{
"family": "Li",
"given": "Yifei"
},
{
"family": "Lin",
"given": "Siying"
},
{
"family": "Rao",
"given": "Jiahua"
},
{
"family": "Zhao",
"given": "Huiying"
}
],
"container-title-short":
"volume": "22",
"issue": "5",
"page": "e1014323",
"DOI": "10.1371/
"PMID": "42213730",
"PMCID": "PMC13221074",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
29
]
]
}
}
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/s41588-026-02646-3 [code]
- Co-expression-based models improve eQTL predictions for transcriptome-wide association studies and highlight new schizophrenia-associated
genes. Journal: Nature geneticsIn common: pandas, NumPy, genetics / omics, cellular / molecular, 6 references - [2] doi:10.3389/fnagi.2026.1806505 [code]
- ALDH1A1-dopaminergic gene co-expression in human substantia nigra: meta-analysis of disease-associated correlation changes across seven independent Parkinson's disease datasets.Journal: Frontiers in aging neuroscienceIn common: pandas, Matplotlib, NumPy, NCBI GEO GSE7621, Parkinson's, cellular / molecular, 1 reference
- [3] doi:10.3389/fnmol.2026.1844705 [code]
- Risperidone regulates the expression of schizophrenia-related genes in the forebrain of adult male mice.Journal: Frontiers in molecular neuroscienceIn common: PyTorch, scikit-learn, pandas, 2 other tools, genetics / omics, cellular / molecular, 3 references
- [4] 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: PyTorch, scikit-learn, pandas, 2 other tools, genetics / omics, cellular / molecular, 3 references
- [5] doi:10.34133/csbj.0036 [code]
- HYG-mol: An Interpretable Multimodal Hypergraph Framework for Molecular Property Prediction.Journal: Computational and structural biotechnology journalIn common: PyTorch Geometric, Hugging Face Transformers, PyTorch, 4 other tools, cellular / molecular
- [6] doi:10.1371/journal.pone.0351872 [code]
- Decoding visual object recognition from EEG signals.Journal: PloS oneIn common: PyTorch Geometric, Hugging Face Transformers, PyTorch, 4 other tools
- [7] doi:10.1038/s41467-026-71267-5 [code]
- Human-like cognitive generalization for large models via mental representation-guided supervision.Journal: Nature communicationsIn common: PyTorch Geometric, Hugging Face Transformers, PyTorch, 4 other tools
- [8] doi:10.1038/s41467-026-75722-1 [code]
- Single-nucleus analysis of the adult human olfactory epithelium uncovers shared neurogenesis programs with the brain.Journal: Nature communicationsIn common: scikit-learn, pandas, Matplotlib, 1 other tool, genetics / omics, 4 references
- [9] doi:10.1002/advs.77003 [code]
- SemanticST: A Scalable Multi-Contextual Graph Learning Framework for Uncovering Spatial Niches and Robust Multi-Sample Integration in Spatial Transcriptomics.Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)In common: PyTorch Geometric, PyTorch, scikit-learn, 3 other tools, genetics / omics, 1 reference
- [10] doi:10.1371/journal.pone.0345854 [code]
- Shedding light on neural learning to rank models for anticancer drug prioritization.Journal: PloS oneIn common: PyTorch Geometric, PyTorch, scikit-learn, 3 other tools, 1 reference
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, 6 scripts, and 4 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:3c8585bcbbc6e2d3…
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.
