KR4SL
KR4SL is a machine learning method that leverages knowledge graph reasoning to predict synthetic lethality (SL) partners for a given primary gene, capturing the structural semantics of a knowledge graph by efficiently constructing and learning from relational digraphs.
Install / Use
/learn @JieZheng-ShanghaiTech/KR4SLREADME
KR4SL
Knowledge Graph Reasoning for Explainable Prediction of Synthetic Lethality <img src="framework.jpg" alt="framework" style="zoom:200%;" />
Dataset description
We have provided the processed dataset. The SL gene pairs we used are derived from SynLethDB-v2.0. To construct a knowledge graph containing more relation types, we first use the knowledge about genes and their functions SynLethKG, i.e. five types of entities include Gene, Pathway and three types of GO terms (biological processes (BP), molecular functions (MF) and cellular components (CC)). Four types of relations are included to describe if a gene is involved in a pathway or annotated with a GO term, namely, Participate_in_PW, Participate_in_BP, Participate_in_MF, and Participate_in_CC. We then expand the relation types of gene-GO and GO-GO, using the data from [OntoProtein] (https://github.com/zjunlp/OntoProtein). See kg.txt in data folder for the complete KG.
To utilize the pre-trained textual embedding, one can take all_entities.txt in data folder as the input and use the pre-trained BERT model named CODER to get textual embeddings for each entity.
Running
Extract textual embeddings
python extract_pretrain_emb.py
For transductive reasoning
cd transductive
python -W ignore train.py --suffix trans_reason
For inductive reasoning
cd inductive
python -W ignore train.py --suffix ind_reason
Requirements
python36
torch 1.11.0
torch scatter 2.0.9
transformers 4.23.1
Acknowledgement
Partial code is adapted from Zhang and Yao 2022 with the repository https://github.com/AutoML-Research/RED-GNN.
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
20.0kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
