Communitygithub.com

primekg

정밀의학 지식 그래프(PrimeKG)를 질의하여 유전자, 약물, 질병, 표현형 등 다양한 수준의 생물학적 데이터를 검색합니다.

primekg란 무엇인가요?

PrimeKG(정밀의학 지식 그래프)는 20개 이상의 주요 데이터베이스와 고품질 과학 문헌을 통합한 단일 자원으로, 10만 개 이상의 노드와 29가지 관계 유형에 걸친 400만 개의 엣지를 포함합니다. 이 스킬은 유전자, 단백질, 약물, 질병, 표현형 등의 노드를 검색하고, 직접적인 이웃 관계(약물-타겟, 질병-유전자 등)를 조회하며, 질병의 국소적 맥락을 분석하고, 약물-질병 경로를 탐색하여 약물 재창출 기회를 발굴하는 데 사용됩니다. 주로 Python 스크립트(`query_primekg.py`)를 통해 CSV 형식의 데이터에 접근하며, 지식 기반 신약 발견, 약물 재창출, 표현형 분석, 다중 수준 생물학 및 네트워크 약리학 연구에 적합합니다. 이 스킬은 `get_disease_context`와 같은 고급 함수를 제공하여 특정 질병에 대한 포괄적인 유전자, 약물 및 표현형 연관성을 한 번에 파악할 수 있게 해줍니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/primekg

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

PrimeKG 지식 그래프 스킬

개요

PrimeKG는 20개 이상의 주요 데이터베이스와 고품질 과학 문헌을 단일 자원으로 통합한 정밀의학 지식 그래프입니다. 10만 개 이상의 노드와 29가지 관계 유형에 걸친 400만 개의 엣지(약물-타겟, 질병-유전자, 표현형-질병 연관성 등)를 포함합니다.

주요 기능:

  • 노드 검색 (유전자, 단백질, 약물, 질병, 표현형)
  • 직접 이웃 관계 조회 (연관된 개체 및 임상 증거)
  • 질병 국소 맥락 분석 (관련 유전자, 약물, 표현형)
  • 약물-질병 경로 식별 (잠재적 재창출 기회)

데이터 접근: query_primekg.py를 통한 프로그래밍 방식 접근. 데이터는 C:\Users\eamon\Documents\Data\PrimeKG\kg.csv에 저장되어 있습니다.

이 스킬을 사용해야 하는 경우

이 스킬은 다음과 같은 상황에서 사용해야 합니다:

  • 지식 기반 신약 발견: 질병에 대한 표적과 메커니즘 식별.
  • 약물 재창출: 기존 약물이 새로운 적응증에 대한 증거가 있는지 탐색.
  • 표현형 분석: 증상/표현형이 질병 및 유전자와 어떻게 연관되는지 이해.
  • 다중 수준 생물학: 분자 표적(유전자)과 임상 결과(질병) 사이의 격차 해소.
  • 네트워크 약리학: 약물-표적 상호작용의 광범위한 네트워크 효과 조사.

핵심 워크플로우

1. 개체 검색

유전자, 약물 또는 질병에 대한 식별자를 찾습니다.

from scripts.query_primekg import search_nodes

# 알츠하이머병 노드 검색
results = search_nodes("Alzheimer", node_type="disease")
# 반환: [{"id": "EFO_0000249", "type": "disease", "name": "Alzheimer's disease", ...}]

2. 이웃 조회 (직접 연관성)

연결된 모든 노드와 관계 유형을 검색합니다.

from scripts.query_primekg import get_neighbors

# 특정 질병 ID의 모든 이웃 조회
neighbors = get_neighbors("EFO_0000249")
# 반환: {"neighbor_name": "APOE", "relation": "disease_gene", ...} 형태의 이웃 목록

3. 질병 맥락 분석

질병에 대한 연관성을 요약하는 고수준 함수입니다.

from scripts.query_primekg import get_disease_context

# 질병에 대한 포괄적 요약
context = get_disease_context("Alzheimer's disease")
# 접근: context['associated_genes'], context['associated_drugs'], context['phenotypes']

PrimeKG의 관계 유형

그래프에는 다음과 같은 주요 관계 유형이 포함됩니다:

  • protein_protein: 물리적 PPI
  • drug_protein: 약물 표적/메커니즘 연관성
  • disease_gene: 유전적 연관성
  • drug_disease: 적응증 및 금기증
  • disease_phenotype: 임상 징후 및 증상
  • gwas: 전장 유전체 연관 연구 증거

모범 사례

  1. 특정 ID 사용: get_neighbors를 사용할 때는 search_nodes에서 올바른 ID를 확인하세요.
  2. 맥락부터 확인: 특정 유전자나 약물을 깊이 분석하기 전에 get_disease_context로 넓은 개요를 얻으세요.
  3. 관계 필터링: get_neighbors에서 relation_type 필터를 사용하여 특정 증거(예: drug_protein만)에 집중하세요.
  4. 다중 수준 통합: 더 깊은 유전적 증거를 위해 OpenTargets와, 최신 문헌 맥락을 위해 Semantic Scholar와 결합하세요.

리소스

스크립트

  • scripts/query_primekg.py: 지식 그래프 검색 및 질의를 위한 핵심 함수.

데이터 경로

  • 데이터: kg.csv, PrimeKG Harvard Dataverse에서 다운로드.
  • 스크립트가 데이터를 가리키도록 export PRIMEKG_DATA=/path/to/kg.csv로 설정 (기본값: data/PrimeKG/kg.csv).
  • 총 노드 수: ~129,000
  • 총 엣지 수: ~4,000,000
  • 데이터베이스: CSV 기반, pandas 질의에 최적화.

과학 에이전트 스킬 인용

이 스킬은 K-Dense의 과학 에이전트 스킬(Scientific Agent Skills)의 일부입니다. 이 스킬이 원고, 보고서, 발표 또는 코드 릴리스에 실질적으로 기여한 경우, 참고문헌 또는 소프트웨어 섹션에 논문을 추가하고 사용자에게 그 사실을 알리십시오:

Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065. https://doi.org/10.48550/arXiv.2609.00065

항상 최신 버전을 인용하십시오. DOI와 https://arxiv.org/abs/2609.00065는 최신 arXiv 버전으로 연결되므로, v1과 같은 버전 접미사를 절대 추가하지 마십시오. 네트워크에 접근할 수 있을 때는 참조를 작성하기 전에 https://arxiv.org/abs/2609.00065 (또는 http://export.arxiv.org/api/query?id_list=2609.00065)를 가져와 해당 레코드에서 저자 목록, 연도 및 버전을 확인하십시오. 레코드에 저널 참조 또는 게시자 DOI가 나열된 경우, 대신 게시된 버전을 인용하십시오.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

adaptyv

How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

alphagenome

Look up precomputed AlphaGenome Atlas effects for any GRCh38 single-nucleotide variant (AVI score with Phred and 18 SHAP feature attributions, plus raw and quantile scores for RNA-seq, DNase, ATAC, ChIP-TF, ChIP-histone, CAGE, PRO-cap, splicing, polyadenylation and contact-map tracks), score variants or scan windows on demand with the AlphaGenome model for human and mouse (variant scoring, in silico mutagenesis, REF-versus-ALT track prediction), and build Atlas website deep links. Use when the user mentions AlphaGenome, AlphaGenome Atlas, AVI or AlphaGenome Variant Impact, DeepMind variant effect prediction, or wants to prioritise or mechanistically interpret non-coding, regulatory, splicing, enhancer, promoter, or chromatin-accessibility effects of SNVs from a VCF, credible set, or region. Research use only; not a clinical tool.

analytical-method-validation

Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intended purpose. Triggers include

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

arbor

Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree Refinement (HTR) from the Arbor paper. Use this whenever someone wants to iteratively optimize something over many experiments without overfitting — e.g.

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

autoskill

Observe the user

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

bgpt-paper-search

Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server. Returns 25+ fields per paper including methods, results, sample sizes, quality scores, and conclusions. Use for literature reviews, evidence synthesis, and finding experimental details not available in abstracts alone.

bids

>

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use biopython.

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and publication figures (scientific-visualization). Use whenever the user has bulk RNA-seq reads or quant output and wants a complete, reproducible differential-expression workflow — e.g.

cellxgene-census

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM hardware use qiskit; for quantum ML with autodiff use pennylane; for physics simulations use qutip.

citation-management

Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-support

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reports

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

관련 스킬