Zum Inhalt springen
Skillpedia
Analyse & Tabellen51k · #3532

primekg

Was er macht

Dieser Agent durchsucht für dich eine Datenbank namens PrimeKG. Er kann Verbindungen zwischen Genen, Medikamenten, Krankheiten und Merkmalen finden und dir Details zu diesen Beziehungen zeigen.

Wann du ihn nutzt

  • ✓Um bekannte Verbindungen zwischen Genen und Krankheiten zu prüfen.
  • ✓Um Medikamente zu finden, die mit einer bestimmten Krankheit in Verbindung stehen.
  • ✓Um Merkmale zu erkunden, die mit einer medizinischen Erkrankung zusammenhängen.

Link zum Skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/primekg/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/primekg/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Welche Gene stehen mit der Alzheimer-Krankheit in Verbindung?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Du gibst einen Begriff ein, etwa eine Krankheit oder einen Gennamen, und der Agent durchsucht die PrimeKG-Datenbank nach passenden Informationen. Er liefert direkte Verbindungen und zusätzlich Pfade mit bis zu zwei Schritten, damit du die Zusammenhänge besser verstehst.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

PrimeKG Knowledge Graph

When to use

Use for reproducing PrimeKG analyses, resolving entities in a specific graph artifact, or exploring recorded gene, drug, disease, phenotype, anatomy, and pathway associations. A path supports a research hypothesis; it does not establish causality, treatment efficacy, a prescribing recommendation, or a diagnostic conclusion.

PrimeKG upstream now recommends OptimusKG for new work. This skill remains scoped to PrimeKG CSVs; the helper is not an OptimusKG client. Published PrimeKG integrates 20 resources, with approximately 129,000 nodes and 4.05 million undirected relationships. CSVs contain reverse rows, so row counts differ from distinct undirected relationship counts. Count the actual pinned artifact.

1. Pin and verify the input

The official dataset remained V2.1, published 2022-05-02, at the 2026-10-01 review. Its kg.csv has Dataverse file ID 6180620, size 981751236 bytes, and provider MD5 aac8191d4fbc5bf09cdf8c3c78b4e75f. The record declares CC0 1.0; upstream construction code is MIT. These are distinct from this skill's retained license declaration and from terms of individual source resources used in a rebuild.

Use the artifact and API reference to obtain metadata, verify the file checksum, or distinguish kg.csv, kg_grouped.csv, features, and PyTDC. The 2023 construction/OMIM updates in GitHub do not make the published 2022 artifact a 2023 dataset. Record DOI, version, filename, file ID, checksum, retrieval date, and any subset/rebuild steps with every result.

The helper makes no remote graph queries. Download the CSV deliberately after checking storage and RAM. This full-download example is illustrative; validation used small HTTP byte ranges and synthetic data, not the 982 MB file:

curl --fail --location --output kg.csv \
  'https://dataverse.harvard.edu/api/access/datafile/6180620'
export PRIMEKG_DATA="$PWD/kg.csv"

PRIMEKG_DATA is read when the module is imported; the default is data/PrimeKG/kg.csv. The module reads the whole CSV for each public query. low_memory parsing is not a bounded-memory graph engine. For many queries or limited RAM, build an indexed local store from the pinned file and validate its node keys, edge multiplicities, and counts.

2. Resolve a typed entity before traversal

Run from this skill's directory with pandas installed, so scripts.query_primekg is importable. The following is an illustrative real-data query; no disease result or ID is promised without inspecting the pinned file:

from scripts.query_primekg import search_nodes, get_neighbors

candidates = search_nodes("Alzheimer", node_type="disease", limit=None)
for node in candidates:
    print(node)  # id, type, name, source, and index when present

# Review the candidates and select the intended disease before calling:
# get_neighbors(selected["id"], node_type=selected["type"],
#               node_source=selected["source"])

Search is literal, case insensitive, and returns at most 20 matches by default; limit=None removes that cap. Preserve IDs as strings, including numeric-looking and underscore-joined IDs. Drug nodes use DrugBank identifiers; diseases can use MONDO or MONDO_grouped, including IDs joining multiple diseases. Do not invent EFO, ChEMBL, Wikidata, or prefixed MONDO IDs from labels. x_index/y_index are local release indexes, not ontology accessions and not stable across rebuilds.

The helper identifies a node by (id, type, source) and rejects ambiguous bare IDs or a key mapping to multiple release indexes. Supply node_type and node_source from the search result. Equal numeric IDs from different namespaces are different nodes.

3. Retrieve associations without losing their meaning

get_neighbors(node_id, relation_type=None, *, node_type=None, node_source=None) collects both stored orientations. Reverse rows are consolidated into one adjacency per neighboring identity/name, relation, and display_relation; all original rows remain in edge_rows. Extra CSV evidence columns and release indexes are preserved. Do not multiply evidence counts by the number of reverse copies.

Use exact stored relation names. Common published relations include:

relation Interpretation to retain

…

Häufige Fragen

Was ist PrimeKG?

PrimeKG ist eine große Datenbank, die Informationen über Gene, Medikamente, Krankheiten und Merkmale ordnet und zeigt, wie sie miteinander zusammenhängen.

Kann mir dieser Agent sagen, ob eine Behandlung wirkt?

Nein, der Agent zeigt nur die Zusammenhänge, die in der Datenbank erfasst sind. Er kann die Wirksamkeit einer Behandlung nicht bestätigen und gibt keine Empfehlungen.

Muss ich eine Datei herunterladen?

Ja, um diesen Agenten zu nutzen, musst du eine bestimmte Datei aus der PrimeKG-Datenbank herunterladen. Der Agent durchsucht das Internet nicht in Echtzeit.

Details

Originalbeschreibung des Autors

Queries a pinned Precision Medicine Knowledge Graph (PrimeKG) CSV for typed gene, drug, disease, and phenotype nodes, direct associations, disease context, and one- or two-hop paths. Use for PrimeKG reproducibility, biological association lookup, and hypothesis generation with relation and data provenance preserved.

repo: K-Dense-AI/scientific-agent-skills

Beliebtheit

GitHub-Sterne
51k
Platz im Ranking
#3532
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills