primekg

Query PrimeKG knowledge graph for genes, drugs, diseases, and phenotypes.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill primekg-k-dense-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: primekg
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/primekg
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill primekg-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PrimeKG provides a scalable platform to query multiscale biomedical relationships across genes, drugs, diseases, phenotypes, and more, consolidating data that would otherwise require multiple sources.

Core Features & Use Cases

  • Search for nodes by name and type to discover entities and their metadata.
  • Retrieve direct neighbors and evidence for genes, drugs, diseases, and phenotypes.
  • Analyze local disease context and explore drug-disease paths for hypothesis generation.

Quick Start

Query PrimeKG for Alzheimer's disease and retrieve its direct gene and drug associations.

Frequently Asked Questions about primekg

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

FAQPage Schema
How do I query a biomedical knowledge graph for gene and drug associations with a specific disease?▼

You can query a biomedical knowledge graph using the get_disease_context function to retrieve direct gene and drug associations for a specific disease from a local PrimeKG CSV dataset.

What is PrimeKG and what multiscale biological data does it consolidate?▼

PrimeKG is a curated knowledge graph consolidating multiscale biological data across genes, drugs, diseases, and phenotypes from over 20 primary databases to support network pharmacology and hypothesis generation.

Can I use pandas to search for specific nodes and retrieve their direct neighbors in PrimeKG?▼

Yes, you can use pandas alongside the search_nodes and get_neighbors Python functions to find specific entities by name and type, and retrieve their direct neighbors with supporting evidence from the local knowledge graph dataset.

Does PrimeKG require a local CSV dataset to analyze drug-disease paths and disease context?▼

Yes, PrimeKG requires a local CSV dataset to operate. The Python functions search_nodes, get_neighbors, and get_disease_context process this local file to analyze disease context and explore drug-disease paths for hypothesis generation.

What is the best way to explore network pharmacology relationships across multiple biomedical databases?▼

The best way to explore network pharmacology relationships is using PrimeKG, which consolidates data from 20+ primary databases into a single knowledge graph. You can retrieve direct neighbors and analyze local disease context to generate hypotheses.

What limitations exist when querying phenotypes and multiscale biological data from a local PrimeKG dataset?▼

Querying multiscale biological data from a local PrimeKG dataset is limited by the scope of its 20+ integrated primary databases. Analysis is restricted to the nodes, direct neighbors, and disease context available within the local CSV file.