Biocontext Knowledge Queries logo

Biocontext Knowledge Queries

Organization
omicverse
biocontext-knowledge-queries

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

Overview

Publisheromicverse
Repositoryomicclaw
Skill namebiocontext-knowledge-queries
Stars
33
Forks
5
Bundled files
1
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by omicverse on GitHub. Read the source before you install it.

Installation

Install the Biocontext Knowledge Queries AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/biocontext-knowledge
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Biocontext Knowledge Queries in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Biocontext Knowledge Queries on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Biocontext Knowledge Queries is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Biocontext Knowledge Queries AI skill do?

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

Why use Biocontext Knowledge Queries on TypingMind?

Because you install it once and use it with any model. Biocontext Knowledge Queries is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Biocontext Knowledge Queries in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/biocontext-knowledge. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Biocontext Knowledge Queries?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Biocontext Knowledge Queries?

As many as you like. As long as a model supports skills, you can use Biocontext Knowledge Queries with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Biocontext Knowledge Queries AI skill free?

Yes. It is published on GitHub by omicverse under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇