Query ClinVar for variant pathogenicity classifications, ClinGen Variant Curation Expert Panel (VCEP) curations, and germline-vs-somatic interpretations against the ACMG/AMP framework with ClinGen SVI specifications. The skill addresses the VCV/SCV/RCV identifier hierarchy, the 2024 XML schema overhaul, star-rating override semantics, and the ClinGen Allele Registry as the canonical cross-database join key.
pip install requests cyvcf2 pandas lxml
# Local VCF (weekly snapshot; pin to monthly archive for reproducibility)
mkdir -p clinvar/$(date +%Y%m); cd clinvar/$(date +%Y%m)
wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz.tbi
# For reproducibility, use the monthly archive
wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/archive_2.0/2025/clinvar_20251101.vcf.gz
Tell the agent what to do: - "Look up the ClinVar classification for BRAF V600E and report star rating and VCEP curation status" - "Annotate my somatic VCF with germline + oncogenicity + somatic-clinical-impact classifications from ClinVar 2024 schema" - "Resolve these variants to ClinGen Allele Registry CA IDs for cross-database joining with gnomAD" - "Triangulate conflicting interpretations for this VUS: list all SCVs with submitter and star, identify the highest-confidence assertion" - "Filter my list to retain only variants with star >=2 OR ClinGen VCEP curation"
"What is the ClinVar VCV classification for chr17:43094464:G:A in BRCA1, and is there an ENIGMA-VCEP curation? Report germline classification, last evaluated date, and review status."
"Look up rs121913529 in ClinVar; show all SCV-level assertions with submitter, classification, condition, and date last evaluated."
"Resolve chr7:140453136:A:T to ClinGen Allele Registry CA ID and report the ClinVar VariationID linkage."
"For BRCA2 c.5946delT, give me the RCV-level classification for each condition rather than the VCV aggregate."
"Find all ClinVar variants in TP53 with germline Pathogenic + somatic Tier I oncogenicity classifications under the 2024 tripartite schema."
"List all conflicting-interpretation variants in BRCA1, group by submitter pair, and identify whether the conflict is P/LP vs LB/B (clinically meaningful) or P vs LP (often immaterial)."
"Filter my variant list to keep only star >=2 OR ClinGen VCEP-curated; flag stale assertions older than 36 months."
"Annotate this exome VCF with ClinVar germline + oncogenicity + somatic-clinical-impact + review status + VCEP affiliation using bcftools."
"For my 50k rare-variant cohort, batch-query ClinVar via myvariant.info with
fields=clinvar.review_status,clinvar.variant_idand merge against gnomAD grpmax FAF95."
"Resolve these 200 HGVS-g variants to CA IDs and then look each up in ClinVar, gnomAD v4 exomes, COSMIC, and MAVEdb in parallel."
CLNSIG in clinvar.vcf.gz is VCV-level (variant-level aggregate); for condition-specific classification parse RCV-level XML.<ClinVarSet> with <VariationArchive>; pipelines built before September 2024 must be re-targeted.Conflicting interpretations is 1-star (not 2-star as sometimes reported); inspect CLNSIGCONF to see whether the conflict is clinically meaningful.https://reg.clinicalgenome.org/) for any cross-database join; ClinVar VariationID was renumbered during the 2017 schema redesign.ONCDN, SCIDN) were added in 2024; pre-2024 pipelines miss them silently.clinical-databases/acmg-classification; this skill is for querying ClinVar, not classification.