alterlab-clinvar — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited alterlab-clinvar (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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:
#### Web Interface Queries
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_uncertain, clinsig_has_conflicts)"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]#### Programmatic Access via E-utilities
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:
Entrez.email when using Biopython#### Understanding Classifications
ClinVar 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:
#### Access ClinVar FTP Site
Download complete datasets from ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/
Refer to references/data_formats.md for comprehensive documentation on file formats and processing.
Update schedule:
#### Available Formats
XML files (most comprehensive):
xml/clinvar_variation/ - Variant-centric aggregationxml/RCV/ - Variant-condition pairsVCF 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 XML release
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/xml/clinvar_variation/ClinVarVariationRelease_00-latest.xml.gz
# Download VCF for GRCh38
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz#### Working with XML Files
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('ClinVarVariationRelease.xml.gz', 'rt') as f:
for event, elem in ET.iterparse(f, events=('end',)):
if elem.tag == 'VariationArchive':
variation_id = elem.attrib.get('VariationID')
# Extract clinical significance, review status, etc.
elem.clear() # Free memory#### Working with VCF Files
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.vcfUsing 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}")#### Working with Tab-Delimited Files
Use pandas or command-line tools for rapid filtering and analysis.
Using pandas:
import pandas as pd
# Load variant summary
df = pd.read_csv('variant_summary.txt.gz', sep='\t', compression='gzip')
# 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 variants for specific gene
zcat variant_summary.txt.gz | \
awk -F'\t' '$7=="TP53" && $13~"Pathogenic"' | \
cut -f1,5,7,13,14When multiple submitters provide different classifications for the same variant, ClinVar reports "Conflicting interpretations of pathogenicity."
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:
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
wget ftp://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.vcfObjective: 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:
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/xml/clinvar_variation/ClinVarVariationRelease_YYYY-MM.xml.gzThis skill includes comprehensive reference documentation:
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~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.