Biocontext Knowledge Queriesのロゴ

Biocontext Knowledge Queries

組織
omicverse
biocontext-knowledge-queries

BioContext knowledge: UniProt, AlphaFold, STRING, Reactome, GO, PanglaoDB, PubMed, OpenTargets queries via ov.biocontext for gene annotation.

概要

公開者omicverse
リポジトリomicclaw
スキル名biocontext-knowledge-queries
スター
33
フォーク
5
同梱ファイル
1
ライセンスGPL-3.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    omicverseがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルBiocontext Knowledge QueriesをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/biocontext-knowledge
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/omicverse/omicclaw.git /tmp/omicclaw
mkdir -p .claude/skills
cp -r /tmp/omicclaw/src/omicverse_skills/skills/biocontext-knowledge .claude/skills/biocontext-knowledge-queries
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBiocontext Knowledge Queriesを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にBiocontext Knowledge Queriesを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Biocontext Knowledge Queriesは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

BioContext Knowledge Queries

Use this skill when the user wants to look up gene/protein annotations, query pathway databases, find cell type markers, search biomedical literature, or explore drug-disease associations. BioContext provides programmatic access to 49 biomedical databases through a unified Python API.

This is a knowledge integration layer — use it to annotate analysis results (e.g., annotate DEG lists with protein function, find pathways for gene clusters, validate marker genes against PanglaoDB).

Available Functions by Category

Protein & Genomics

FunctionDatabaseReturns
query_uniprot(gene_symbol, species)UniProtProtein function, domains, GO terms, references
get_uniprot_id(protein_symbol, species)UniProtUniProt accession ID
query_alphafold(protein_symbol, species)AlphaFoldPredicted 3D structure, confidence scores
get_ensembl_id(gene_symbol, species)EnsemblEnsembl gene ID (ENSG...)
query_interpro(protein_id, source_db)InterProProtein domains, families, structural info
search_interpro(query, entry_type)InterProDomain search by keyword
query_string(protein_symbol, species, min_score)STRINGProtein-protein interactions
query_hpa(gene_symbol)Human Protein AtlasTissue expression, subcellular localization

Pathways & Functional

FunctionDatabaseReturns
query_reactome(identifier, species)ReactomePathway membership, reactions, disease links
query_go(gene_name, size)Gene OntologyGO term associations (BP, MF, CC)

Cell Biology

FunctionDatabaseReturns
query_panglaodb(species, cell_type, organ)PanglaoDBCell type marker genes with sensitivity/specificity

Literature

FunctionDatabaseReturns
search_literature(query, sort_by, page_size)Europe PMCPublications matching keywords
search_preprints(server, days, category)bioRxiv/medRxivRecent preprints
get_fulltext(pmc_id)PubMed CentralFull-text article content

Drug & Clinical

FunctionDatabaseReturns
query_opentargets(query_string, variables)OpenTargetsGene-disease-drug associations
search_clinical_trials(condition, status)ClinicalTrials.govActive/completed trials
search_drugs(brand_name, generic_name)openFDADrug information, approval status

Ontology

FunctionDatabaseReturns
query_efo(disease_name, size, exact_match)EFOExperimental Factor Ontology terms
query_chebi(chemical_name, size)ChEBIChemical entities, small molecules
query_cell_ontology(cell_type, size)Cell OntologyStandardized cell type hierarchy

Proteomics

FunctionDatabaseReturns
search_pride(keyword, page_size)PRIDEMass spectrometry proteomics datasets

Generic Access

python
# List all 49 available tools with parameters
ov.biocontext.list_tools()

# Call any tool directly by name
result = ov.biocontext.call_tool("tool_name", param1=value1, ...)

Usage Patterns

Single gene lookup

python
import omicverse as ov

# Get protein function and domains
info = ov.biocontext.query_uniprot(gene_symbol='TP53', species='9606')

# Get pathway membership
pathways = ov.biocontext.query_reactome(identifier='TP53', species='Homo sapiens')

# Get GO terms
go_terms = ov.biocontext.query_go(gene_name='TP53', size=20)

Annotate a DEG list

python
# After differential expression: annotate top genes with biological context
deg_genes = ['TP53', 'BRCA1', 'MYC', 'EGFR', 'KRAS']
annotations = {}
for gene in deg_genes:
    annotations[gene] = {
        'uniprot': ov.biocontext.query_uniprot(gene_symbol=gene),
        'pathways': ov.biocontext.query_reactome(identifier=gene),
        'go': ov.biocontext.query_go(gene_name=gene, size=5),
    }

Find cell type markers

python
# Get known markers for a cell type
markers = ov.biocontext.query_panglaodb(
    species='Hs',           # 'Hs' (human), 'Mm' (mouse), 'Dr' (zebrafish)
    cell_type='T cells',
    organ='Blood',
    min_sensitivity=0.5,
)
# Returns: DataFrame with gene symbols, sensitivity, specificity scores

Drug target exploration

python
# Find drugs targeting a gene
targets = ov.biocontext.query_opentargets(
    query_string='{ target(ensemblId: "ENSG00000141510") { associatedDiseases { rows { disease { name } score } } } }'
)

# Search clinical trials
trials = ov.biocontext.search_clinical_trials(condition='breast cancer', status='RECRUITING')

Literature search

python
# Search for papers
results = ov.biocontext.search_literature(
    query='single-cell RNA-seq BRCA1',
    sort_by='RELEVANCE',
    page_size=5,
)

# Get full text of a specific paper
text = ov.biocontext.get_fulltext(pmc_id='PMC1234567')

Species Codes

Different databases use different species identifiers:

SpeciesNCBI Taxon IDEnsemblPanglaoDB
Human9606homo_sapiensHs
Mouse10090mus_musculusMm
Zebrafish7955danio_rerioDr
Rat10116rattus_norvegicusRn

Most functions default to human (9606 or homo_sapiens).

Critical API Reference

query_uniprot accepts multiple identifier types

python
# By gene symbol (most common)
ov.biocontext.query_uniprot(gene_symbol='TP53')

# By UniProt accession
ov.biocontext.query_uniprot(protein_id='P04637')

# By protein name
ov.biocontext.query_uniprot(protein_name='Cellular tumor antigen p53')

query_opentargets uses GraphQL

python
# OpenTargets requires GraphQL query strings
# See OpenTargets Platform API docs for query syntax
result = ov.biocontext.query_opentargets(
    query_string='{ search(queryString: "BRCA1") { total hits { id name } } }'
)

Troubleshooting

  • Empty results for a known gene: Check species parameter. Default is human (9606) — pass species='10090' for mouse genes.
  • Timeout on large queries: External API calls have network latency. For batch annotation, add small delays between calls to avoid rate limiting.
  • ConnectionError: Requires internet access. BioContext queries external databases in real-time.
  • Gene symbol not found: Some databases are case-sensitive. Human genes should be uppercase (TP53), mouse mixed-case (Tp53).
  • OpenTargets query fails: GraphQL syntax must be exact. Use ov.biocontext.list_tools() to see available OpenTargets tool variants with example queries.

Examples

  • "Look up the protein function and pathways for my top 10 DEGs."
  • "Find known T-cell markers from PanglaoDB for my annotation."
  • "Search for recent papers about spatial transcriptomics and BRCA1."
  • "What drugs target EGFR? Check clinical trials status."

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Biocontext Knowledge Queries」では何ができますか?

BioContext knowledge: UniProt, AlphaFold, STRING, Reactome, GO, PanglaoDB, PubMed, OpenTargets queries via ov.biocontext for gene annotation.

TypingMindでBiocontext Knowledge Queriesを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Biocontext Knowledge Queriesはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBiocontext Knowledge Queriesをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/biocontext-knowledgeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Biocontext Knowledge Queriesを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Biocontext Knowledge Queriesは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBiocontext Knowledge Queriesを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Biocontext Knowledge Queries」は無料ですか?

はい。omicverseがGitHubでGPL-3.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇