Communitygithub.com

primekg

Precision Medicine Knowledge Graph(PrimeKG)から遺伝子、薬剤、疾患、表現型など、マルチスケールの生物学的データを検索します。

primekg とは?

PrimeKGは、20以上の主要データベースと高品質な科学文献を統合した精密医療知識グラフであり、10万以上のノードと400万以上のエッジ(29種類の関係タイプ)から構成されています。このスキルは、遺伝子、タンパク質、薬剤、疾患、表現型などのエンティティ検索、直接的な近傍ノード(関連エンティティと臨床エビデンス)の取得、疾患の局所的コンテキスト分析(関連遺伝子、薬剤、表現型)、および薬剤-疾患間のパス探索(ドラッグリパーパシングの機会)を可能にします。データはCSV形式で保存されており、Pandasによる効率的なクエリが可能です。主な関係タイプには、タンパク質間相互作用、薬剤-標的、疾患-遺伝子、薬剤-疾患、疾患-表現型などが含まれます。また、OpenTargetsやSemantic Scholarなどの他のリソースと組み合わせて、より深い遺伝的エビデンスや最新の文献情報を得ることも推奨されます。このスキルは、知識ベースの創薬、ドラッグリパーパシング、表現型分析、マルチスケール生物学、ネットワーク薬理学の研究に特に有用です。

対応~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以上の一次データベースと高品質な科学文献を統合した精密医療知識グラフです。100,000以上のノードと400万以上のエッジを29種類の関係タイプ(薬剤-標的、疾患-遺伝子、表現型-疾患関連など)で構成しています。

主な機能:

  • ノードの検索(遺伝子、タンパク質、薬剤、疾患、表現型)
  • 直接近傍ノードの取得(関連エンティティと臨床エビデンス)
  • 局所的な疾患コンテキストの分析(関連遺伝子、薬剤、表現型)
  • 薬剤-疾患パスの特定(ドラッグリパーパシングの機会)

データアクセス: 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クエリに最適化。

Scientific Agent Skillsの引用

このスキルは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.

関連スキル