primekg

Query PrimeKG to search nodes, fetch neighbors, and analyze disease context.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill primekg-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: primekg
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/primekg
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill primekg-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PrimeKG is a knowledge graph that consolidates biomedical data; this skill enables researchers to query and retrieve genes, drugs, diseases, phenotypes, and related relationships from PrimeKG to support discovery and analysis.

Core Features & Use Cases

  • Search nodes by name and type to identify genes, drugs, diseases, and phenotypes.
  • Retrieve direct neighbors and evidence to understand relationships and context.
  • Analyze local disease context and potential drug-disease paths for repurposing or mechanistic insights.

Quick Start

Run search_nodes('Alzheimer', node_type='disease') to find a disease and then call get_neighbors on its ID to see related genes and drugs.

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-disease and drug-disease relationships?

Query a biomedical knowledge graph by searching nodes by name and type, then retrieve direct neighbors to map gene-disease and drug-disease relationships. You can analyze disease contexts and potential drug repurposing paths using Python scripts.

What is the best way to analyze disease context for drug repurposing using network pharmacology?

To analyze disease context for drug repurposing, fetch disease neighbors to see related genes and drugs. This network pharmacology approach reveals mechanistic insights and potential drug-disease paths for discovery workflows.

Can I search PrimeKG for specific phenotypes and genes using Python?

You can search PrimeKG for phenotypes and genes using Python scripts. The search_nodes function filters by node name and type, allowing you to identify specific biomedical entities within the knowledge graph dataset.

Do I need pandas to retrieve multiscale biological data and relationships from a knowledge graph?

You need pandas installed to retrieve multiscale biological data and relationships from the knowledge graph. It serves as the required dependency for running the Python scripts that query and structure the dataset.

How do I find related drugs and genes after identifying a disease in a biomedical dataset?

After identifying a disease in a biomedical dataset, use the get_neighbors function on its ID to retrieve related drugs and genes. This fetches direct neighbors and evidence to help understand relationships within the local disease context.

Are there limitations when searching for biomedical insights across multiscale relationships in PrimeKG?

Limitations when searching for biomedical insights across multiscale relationships depend on the PrimeKG dataset's coverage. The skill retrieves direct neighbors and evidence, meaning analysis is constrained to the consolidated data within the knowledge graph.