Ncbi Clinvar logo

Ncbi Clinvar

Organization
ai4protein
ncbi_clinvar

Query NCBI ClinVar for variant clinical significance. Search by gene/condition/CLNSIG, interpret pathogenicity, use E-utilities or FTP; annotate VCFs. Use project tools in src.tools.database.ncbi.

Overview

Publisherai4protein
RepositoryVenusFactory2
Skill namencbi_clinvar
Stars
255
Forks
37
Bundled files
3
LicenseUnknown
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.

  • 3 bundled files

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

  • Open source

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

Installation

Install the Ncbi Clinvar 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/ai4protein/VenusFactory2/tree/main/src/agent/skills/ncbi_clinvar
  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/ai4protein/VenusFactory2.git /tmp/VenusFactory2
mkdir -p .claude/skills
cp -r /tmp/VenusFactory2/src/agent/skills/ncbi_clinvar .claude/skills/ncbi_clinvar
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ncbi Clinvar 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 Ncbi Clinvar 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 Ncbi Clinvar 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.

ClinVar Database (NCBI)

Overview

ClinVar is NCBI's archive of relationships between human genetic variants and phenotypes, with supporting evidence. In this project the agent exposes one compound download tool (download_ncbi_clinvar_variants) that searches by term, retrieves variant IDs, and saves results to JSON. For finer control, ncbi_operations.py also provides atomic ClinVar E-utilities download/query functions (esearch, esummary, efetch), and the low-level module ncbi_clinvar.py provides term builders and FTP helpers. All download/query functions return rich JSON {status, file_info/content, content_preview, biological_metadata, execution_context}.

When to Use This Skill

  • Searching for variants by gene, condition, or clinical significance
  • Interpreting clinical significance (pathogenic, benign, VUS); see references/clinical_significance.md
  • Accessing ClinVar via E-utilities (esearch, esummary, efetch) or FTP
  • Understanding review status (star ratings) and conflicting interpretations
  • Annotating variant call sets with clinical significance; see references/data_formats.md for VCF/XML/tab formats

Quick Start

The skill provides:

  1. Project modules in src/tools/database/ncbi/: ncbi_clinvar.py (atomic E-utilities, term builder, FTP), ncbi_operations.py (query/download operations); ClinVar download functions re-exported via package.
  2. References: references/api_reference.md, references/clinical_significance.md, references/data_formats.md

Agent Tools (Download Only)

Tool nameArgumentsPurpose
download_ncbi_clinvar_variantsterm, out_path, retmax (optional, default 20)Search ClinVar variants by term and save results to JSON

Also available as general NCBI tools (not ClinVar-specific but useful in ClinVar workflows):

Tool nameArgumentsPurpose
download_ncbi_sequencencbi_id, out_path, db (optional)Download NCBI sequence by accession (FASTA)
download_ncbi_metadatancbi_id, out_path, db, rettype (optional)Download NCBI metadata (GenBank/XML)
download_ncbi_blastsequence, out_path, program, database, etc.Submit BLAST search and download XML

Project Modules (Programmatic Use)

CapabilityFunctionModulePurpose
Build search termbuild_clinvar_term(gene, clinical_significance, condition, chr, variant_name, exclude_conflicting, raw_term)ncbi_clinvar.pyBuild E-utilities query string
High-level searchquery_clinvar(term, retmax, retstart, retmode, api_key)ncbi_clinvar.pySearch ClinVar, return esearch response text
Get summariesget_clinvar_summary(variation_ids, retmode, api_key)ncbi_clinvar.pyGet variant summaries by IDs
Full recordsfetch_clinvar_records(variation_ids, rettype, retmode, api_key)ncbi_clinvar.pyFetch full XML/VCV records
Parse IDsparse_esearch_ids(esearch_response_text)ncbi_clinvar.pyExtract Variation IDs from esearch JSON
Parse countparse_esearch_count(esearch_response_text)ncbi_clinvar.pyExtract total count from esearch JSON
FTP URLget_clinvar_ftp_url(key)ncbi_clinvar.pyGet FTP URL by key (variant_summary, vcf_grch38, xml_latest, etc.)
FTP downloaddownload_clinvar_ftp(url_or_key, out_dir, filename)ncbi_clinvar.pyDownload file from ClinVar FTP
Atomic esearchclinvar_esearch(term, retmax, retstart, retmode, api_key, sort)ncbi_clinvar.pyRaw esearch response text
Atomic esummaryclinvar_esummary(id_list, retmode, api_key)ncbi_clinvar.pyRaw esummary response text
Atomic efetchclinvar_efetch(id_list, rettype, retmode, api_key)ncbi_clinvar.pyRaw efetch response text
Query: esearchquery_ncbi_clinvar_esearch(term, retmax, retstart, retmode)ncbi_operations.pyReturns rich JSON in memory
Query: esummaryquery_ncbi_clinvar_esummary(id_list, retmode)ncbi_operations.pyReturns rich JSON in memory
Query: efetchquery_ncbi_clinvar_efetch(id_list, rettype, retmode)ncbi_operations.pyReturns rich JSON in memory
Query: variantsquery_ncbi_clinvar_variants(term, retmax)ncbi_operations.pyCompound: esearch → returns rich JSON
Download: esearchdownload_ncbi_clinvar_esearch(term, out_path, retmax, retstart, retmode)ncbi_operations.pySave esearch results to file
Download: esummarydownload_ncbi_clinvar_esummary(id_list, out_path, retmode)ncbi_operations.pySave esummary results to file
Download: efetchdownload_ncbi_clinvar_efetch(id_list, out_path, rettype, retmode)ncbi_operations.pySave efetch results to file
Download: variantsdownload_ncbi_clinvar_variants(term, out_path, retmax)ncbi_operations.pyCompound: esearch → save to file

Core Capabilities

1. Search ClinVar Variants (download)

python
from src.tools.database.ncbi import download_ncbi_clinvar_variants

# Simple gene search
result = download_ncbi_clinvar_variants("BRCA1[gene]", "output/clinvar_brca1.json", retmax=50)

# Pathogenic variants for a gene
result = download_ncbi_clinvar_variants(
    "BRCA1[gene] AND pathogenic[CLNSIG]",
    "output/clinvar_brca1_pathogenic.json",
    retmax=100,
)

2. Build Search Terms (programmatic)

python
from src.tools.database.ncbi.ncbi_clinvar import build_clinvar_term

# Build term with filters
term = build_clinvar_term(
    gene="BRCA1",
    clinical_significance="pathogenic",
    exclude_conflicting=True,
)
# → "BRCA1[gene] AND pathogenic[CLNSIG] NOT conflicting[RVSTAT]"

# Search by condition
term = build_clinvar_term(condition="breast cancer")
# → "breast cancer[disorder]"

3. Atomic E-utilities Workflow (programmatic)

python
from src.tools.database.ncbi.ncbi_clinvar import (
    build_clinvar_term, query_clinvar, parse_esearch_ids,
    get_clinvar_summary, fetch_clinvar_records,
)

# Step 1: Build term and search
term = build_clinvar_term(gene="BRCA1", clinical_significance="pathogenic")
esearch_result = query_clinvar(term, retmax=100)

# Step 2: Parse IDs
variation_ids = parse_esearch_ids(esearch_result)

# Step 3: Get summaries or full records
summaries = get_clinvar_summary(variation_ids)
records = fetch_clinvar_records(variation_ids, rettype="vcv")

4. Download Atomic Results

python
from src.tools.database.ncbi import (
    download_ncbi_clinvar_esearch,
    download_ncbi_clinvar_esummary,
    download_ncbi_clinvar_efetch,
)

# Save esearch results
download_ncbi_clinvar_esearch("BRCA1[gene]", "output/clinvar_esearch.json", retmax=50)

# Save summaries (need IDs from esearch first)
download_ncbi_clinvar_esummary(["12345", "67890"], "output/clinvar_esummary.json")

# Save full records
download_ncbi_clinvar_efetch(["12345", "67890"], "output/clinvar_efetch.xml")

5. FTP Bulk Downloads (programmatic)

python
from src.tools.database.ncbi.ncbi_clinvar import get_clinvar_ftp_url, download_clinvar_ftp

# Get FTP URL
url = get_clinvar_ftp_url("variant_summary")  # Or: vcf_grch37, vcf_grch38, xml_latest, var_citations, cross_references

# Download
download_clinvar_ftp("variant_summary", "output/clinvar_ftp/")
download_clinvar_ftp("vcf_grch38", "output/clinvar_ftp/")

Key Concepts

  • Search fields: [gene], [CLNSIG], [disorder], [variant name], [chr], [RVSTAT] (e.g. exclude conflicts: NOT conflicting[RVSTAT])
  • Variation ID (VCV): ClinVar variation accession; returned by esearch as UID and used in esummary/efetch
  • rettype: vcv (variant-centric) or rcv (variant–condition pair) for efetch

Important Notes

  • ClinVar data is not for direct clinical diagnosis; involve a genetics professional
  • Prefer high review status (e.g. expert panel, practice guideline) when interpreting classifications
  • Use exclude_conflicting=True in build_clinvar_term to filter out conflicting interpretations
  • Rate limits: 3 req/s without API key, 10 with key; the module applies delays automatically

Reference Documentation

  • references/api_reference.md – E-utilities (esearch, esummary, efetch, elink), parameters, rate limits, Biopython example
  • references/clinical_significance.md – Germline/somatic classifications, ACMG/AMP terms, review status, conflict resolution
  • references/data_formats.md – FTP layout, XML (VCV/RCV), VCF, tab-delimited files, processing examples

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 Ncbi Clinvar AI skill do?

Query NCBI ClinVar for variant clinical significance. Search by gene/condition/CLNSIG, interpret pathogenicity, use E-utilities or FTP; annotate VCFs. Use project tools in src.tools.database.ncbi.

Why use Ncbi Clinvar on TypingMind?

Because you install it once and use it with any model. Ncbi Clinvar 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 Ncbi Clinvar in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai4protein/VenusFactory2/tree/main/src/agent/skills/ncbi_clinvar. 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 Ncbi Clinvar?

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 Ncbi Clinvar?

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

Is the Ncbi Clinvar AI skill free?

Yes. It is published on GitHub by ai4protein under the Unknown 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 👇