Queries NCBI ClinVar via E-utilities API or FTP for clinical significance of human germline genetic variants. Searches by gene, variant, condition, or genomic position and interprets ACMG/AMP classifications and review-status star ratings.
ClinVar is NCBI's freely accessible archive of reports on relationships between human genetic variants and phenotypes, with supporting evidence. The database aggregates information about genomic variation and its relationship to human health, providing standardized variant classifications used in clinical genetics and research.
This skill should be used when:
| Scenario | Use Instead |
|---|---|
| Population allele frequency / ancestry-specific AF, gnomAD constraint | alterlab-gnomad |
| Somatic cancer mutation catalog, Cancer Gene Census, mutational signatures | alterlab-cosmic |
| How often a gene is mutated in tumor cohorts (TCGA, MSK-IMPACT) | alterlab-cbioportal |
| Pharmacogenomic gene–drug dosing (CPIC/DPWG) | alterlab-clinpgx |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-gnomad) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Three classification types (since 2024). ClinVar now keeps separate aggregate
classifications for germline pathogenicity (ACMG/AMP), somatic clinical impact
(AMP/ASCO/CAP tiers), and oncogenicity (ClinGen/CGC/VICC). APIs and files expose them
separately: esummary JSON has germline_classification, clinical_impact_classification,
and oncogenicity_classification objects (each with description and review_status;
there is no longer a clinical_significance field); the VCF has CLNSIG/CLNREVSTAT
(germline), ONC/ONCREVSTAT, and SCI/SCIREVSTAT; variant_summary.txt has
ClinicalSignificance (germline) plus SomaticClinicalImpact and Oncogenicity columns.
Search ClinVar using the web interface at https://www.ncbi.nlm.nih.gov/clinvar/
Common search patterns (field tags verified against the live einfo field list — there is no [CLNSIG] or [RVSTAT] field; using them silently falls back to [All Fields] and does NOT filter):
BRCA1[gene]clinsig_pathogenic[Properties] (also clinsig_likely_pathogenic, clinsig_benign, clinsig_likely_benign, clinsig_vus, clinsig_has_conflicts — note VUS is clinsig_vus; clinsig_uncertain matches nothing)"reviewed by expert panel"[Review status], "practice guideline"[Review status], "criteria provided, single submitter"[Review status]"breast cancer"[Disease/Phenotype]"c.1310_1313del"[Variant name]13[chr]BRCA1[gene] AND clinsig_pathogenic[Properties]Access ClinVar programmatically using NCBI's E-utilities API. Refer to references/api_reference.md for comprehensive API documentation including:
Quick example using curl:
# Search for pathogenic BRCA1 variants
curl "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=clinvar&term=BRCA1[gene]+AND+clinsig_pathogenic[Properties]&retmode=json"
Always inspect the querytranslation field in the response: if a [...] tag is unknown, NCBI rewrites it to [All Fields] and your filter is silently dropped.
Best practices:
NCBI_API_KEY raises it to 10Entrez.email when using BiopythonClinVar uses standardized terminology for variant classifications. Refer to references/clinical_significance.md for detailed interpretation guidelines.
Key germline classification terms (ACMG/AMP):
Review status (star ratings):
Critical considerations:
Download complete datasets from https://ftp.ncbi.nlm.nih.gov/pub/clinvar/ (same tree over HTTPS or FTP)
Refer to references/data_formats.md for comprehensive documentation on file formats and processing.
Update schedule:
XML files (most comprehensive; current format since 2025-08-07, with separate germline / somatic elements):
xml/ClinVarVCVRelease_YYYY-MM.xml.gz (+ _00-latest symlink) - Variant-centric aggregationxml/RCV_release/ClinVarRCVRelease_YYYY-MM.xml.gz - Variant-condition pairsClinVarVariationRelease / ClinVarFullRelease formats (single classification element) are frozen in xml/VCV_xml_old_format/ and xml/RCV_xml_old_format/ and no longer supportedVCF files (for genomic pipelines):
vcf_GRCh37/clinvar.vcf.gzvcf_GRCh38/clinvar.vcf.gzTab-delimited files (for quick analysis):
tab_delimited/variant_summary.txt.gz - Summary of all variantstab_delimited/var_citations.txt.gz - PubMed citationstab_delimited/cross_references.txt.gz - Database cross-referencesExample download:
# Download latest monthly VCV XML release
curl -O https://ftp.ncbi.nlm.nih.gov/pub/clinvar/xml/ClinVarVCVRelease_00-latest.xml.gz
# Download VCF for GRCh38
curl -O https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
Process XML files to extract variant details, classifications, and evidence.
Python example with xml.etree:
import gzip
import xml.etree.ElementTree as ET
with gzip.open('ClinVarVCVRelease_00-latest.xml.gz', 'rt') as f:
for event, elem in ET.iterparse(f, events=('end',)):
if elem.tag == 'VariationArchive':
variation_id = elem.attrib.get('VariationID')
# Aggregate germline call lives under ClassifiedRecord/Classifications
germline = elem.find('ClassifiedRecord/Classifications/GermlineClassification')
if germline is not None:
classification = germline.findtext('Description') # e.g. "Pathogenic/Likely pathogenic"
review_status = germline.findtext('ReviewStatus')
elem.clear() # Free memory
Annotate variant calls or filter by clinical significance using bcftools or Python.
Using bcftools:
# Filter pathogenic variants
bcftools view -i 'INFO/CLNSIG~"Pathogenic"' clinvar.vcf.gz
# Extract specific genes
bcftools view -i 'INFO/GENEINFO~"BRCA"' clinvar.vcf.gz
# Annotate your VCF with ClinVar
bcftools annotate -a clinvar.vcf.gz -c INFO your_variants.vcf
Using pysam in Python (the old PyVCF/import vcf package is unmaintained and breaks on Python 3.10+; use pysam or cyvcf2 instead):
import pysam
vcf = pysam.VariantFile("clinvar.vcf.gz")
for rec in vcf:
# CLNSIG is a comma/pipe-delimited string (e.g. "Pathogenic/Likely_pathogenic");
# match as substring, not equality.
clnsig = str(rec.info.get("CLNSIG", ""))
if "Pathogenic" in clnsig:
gene = rec.info.get("GENEINFO", "")
print(f"{rec.chrom}:{rec.pos} {gene} - {clnsig}")
Use pandas or command-line tools for rapid filtering and analysis.
Using pandas:
import pandas as pd
# Load variant summary (one row per variant *per assembly* — keep one build,
# or every count is doubled)
df = pd.read_csv('variant_summary.txt.gz', sep='\t', compression='gzip', low_memory=False)
df = df[df['Assembly'] == 'GRCh38']
# Filter pathogenic variants in specific gene
pathogenic_brca = df[
(df['GeneSymbol'] == 'BRCA1') &
(df['ClinicalSignificance'].str.contains('Pathogenic', na=False))
]
# Count variants by clinical significance
sig_counts = df['ClinicalSignificance'].value_counts()
Using command-line tools:
# Extract pathogenic TP53 variants (GRCh38 rows). Columns: 3 Name, 5 GeneSymbol,
# 7 ClinicalSignificance (germline), 17 Assembly, 25 ReviewStatus, 31 VariationID
zcat variant_summary.txt.gz | \
awk -F'\t' '$5=="TP53" && $7~/Pathogenic/ && $17=="GRCh38"' | \
cut -f3,5,7,25,31
When multiple submitters provide different classifications for the same variant, ClinVar reports "Conflicting classifications of pathogenicity" (renamed from "Conflicting interpretations" in 2024; VCF value Conflicting_classifications_of_pathogenicity, review status "criteria provided, conflicting classifications").
Resolution strategy:
Search query to exclude conflicts:
TP53[gene] AND clinsig_pathogenic[Properties] NOT clinsig_has_conflicts[Properties]
Variant classifications may change over time as new evidence emerges.
Why classifications change:
Best practices:
Organizations can submit variant interpretations to ClinVar.
Submission methods:
references/api_reference.mdRequirements:
Contact: [email protected] for submission account setup.
Objective: Find pathogenic variants in CFTR gene with expert panel review.
Steps:
CFTR[gene] AND clinsig_pathogenic[Properties] AND ("reviewed by expert panel"[Review status] OR "practice guideline"[Review status])
Objective: Add clinical significance annotations to variant calls.
Steps:
curl -O https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
curl -O https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz.tbi
bcftools annotate -a clinvar.vcf.gz \
-c INFO/CLNSIG,INFO/CLNDN,INFO/CLNREVSTAT \
-o annotated_variants.vcf \
your_variants.vcf
bcftools view -i 'INFO/CLNSIG~"Pathogenic"' annotated_variants.vcf
Objective: Study all variants associated with hereditary breast cancer.
Steps:
"hereditary breast cancer"[Disease/Phenotype] OR "Breast-ovarian cancer, familial"[Disease/Phenotype]
Objective: Build a local ClinVar database for analysis pipeline.
Steps:
curl -O https://ftp.ncbi.nlm.nih.gov/pub/clinvar/xml/ClinVarVCVRelease_YYYY-MM.xml.gz
# previous years' monthly files move to xml/archive/<year>/
This skill includes comprehensive reference documentation:
references/api_reference.md - Complete E-utilities API documentation with examples for esearch, esummary, efetch, and elink; includes rate limits, authentication, and Python/Biopython code samples
references/clinical_significance.md - Detailed guide to interpreting clinical significance classifications, review status star ratings, conflict resolution, and best practices for variant interpretation
references/data_formats.md - Documentation for XML, VCF, and tab-delimited file formats; FTP directory structure, processing examples, and format selection guidance
For questions about ClinVar or data submission: [email protected]
scripts/query_clinvar.py — runnable helper for ClinVar via NCBI E-utilities (no key; NCBI_API_KEY lifts the rate limit):
python scripts/query_clinvar.py search "BRCA1[gene] AND clinsig_pathogenic[Properties]" --retmax 5
python scripts/query_clinvar.py summary 12345,12346
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clinvar, genetic-variants, pathogenicity, acmg-amp, clinical-genetics
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job