alterlab-primekg

Extract biological entity context from PrimeKG for gene, drug, disease, and phenotype relationships.

58|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-primekg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alterlab-primekg
Source: https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/cheminformatics/alterlab-primekg
Command: npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-primekg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, and includes scripts (resource) components.

What problem does it solve?

Researchers need an integrated view of biomedical data bridging genes, drugs, diseases, and phenotypes. PrimeKG provides a unified graph to discover connections that inform target identification and repurposing efforts.

Core Features & Use Cases

  • Search for nodes (genes, proteins, drugs, diseases, phenotypes) to locate relevant entities quickly.
  • Retrieve direct neighbors and clinical evidence to understand immediate relationships.
  • Analyze local disease context by summarizing associated genes, drugs, and phenotypes for a disease.
  • Identify drug-disease paths for potential repurposing opportunities and mechanistic insights.

Quick Start

Run the script to search for a disease or gene and retrieve its connected context from PrimeKG.

Frequently Asked Questions about alterlab-primekg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query a biomedical knowledge graph for drug repurposing and target discovery?

Query a biomedical knowledge graph by searching for specific nodes like genes or diseases and retrieving their direct neighbors to identify drug repurposing opportunities and explore underlying biological mechanisms.

Can I use PrimeKG to find relationships between genes, drugs, diseases, and phenotypes?

Yes, you can use PrimeKG to unify and find direct relationships between genes, drugs, diseases, and phenotypes by retrieving node neighbors and summarizing clinical evidence from the biomedical graph.

How does disease context analysis work when exploring a biomedical graph?

Disease context analysis works by summarizing associated genes, drugs, and phenotypes for a specific disease, allowing you to extract local biomedical insights and identify potential paths from the graph data.

What do I need to retrieve connected context from the PrimeKG CSV store?

You need the pandas library and the query_primekg.py script to read data from the PrimeKG CSV store, perform node searches, retrieve neighbors, and execute disease-context analysis.

What is the best way to identify drug-disease paths for mechanistic insights?

The best way to identify drug-disease paths is to query the unified PrimeKG graph to retrieve direct neighbors and clinical evidence, revealing immediate biological relationships for mechanistic insights.

Does this PrimeKG query skill support searching for specific biological entities like proteins?

Yes, the skill supports searching for specific biological entities including genes, proteins, drugs, diseases, and phenotypes to quickly locate relevant nodes within the biomedical knowledge graph.