Query the BioThings myvariant.info aggregator for ClinVar, gnomAD, dbSNP, dbNSFP (which contains AlphaMissense, REVEL, CADD, SpliceAI, BayesDel, and 40+ predictors), COSMIC, CIViC, and other clinical variant annotations in a single batched API call. The skill addresses dbNSFP version drift (the dominant staleness vector for in-silico predictors), Pejaver 2022 calibrated PP3/BP4 thresholds, and the reproducibility pattern of recording _meta.src versions alongside results.
pip install myvariant requests pandas
Tell the agent what to do:
- "Annotate these 500 variants with ClinVar + gnomAD grpmax FAF95 + AlphaMissense + REVEL + SpliceAI in one batch"
- "Search myvariant for all ClinVar Pathogenic variants in BRCA1 with star >= 2"
- "Record _meta.src versions for each source alongside my results for reproducibility"
- "Find variants in chr17:43000000-44000000 with CADD phred > 25 and ClinVar P/LP"
- "Batch convert these 200 HGVS strings to canonical IDs and pull aggregated annotations"
"For these 100 HGVS-g variants, pull ClinVar significance, ClinVar review status, gnomAD v4 grpmax FAF95, AlphaMissense score, REVEL score, CADD phred, SpliceAI DS_max, and COSMIC IDs. Return as a pandas DataFrame and record source versions."
"Annotate my 50k-variant cohort with ClinVar + gnomAD in batches of 1000 with rate-limit-safe sleeping; merge results into the input table."
"Search myvariant for all variants in TP53 with ClinVar Pathogenic AND CADD phred > 25; return top 500."
"Find variants in chr17:43044294-43125483 (BRCA1 region) with AlphaMissense score > 0.564 OR REVEL > 0.7."
"Search for ClinVar VCEP-curated variants (review_status:reviewed_by_expert_panel) in cardiac sarcomere genes."
"Run my annotation pipeline and record per-source versions in the output JSON sidecar: dbnsfp.version, clinvar.version, gnomad_exome.version, cadd.version."
"Compare my last analysis (dbNSFP v4.5) to today's results; report which AlphaMissense scores changed due to dbNSFP version drift."
"Pull all dbNSFP fields for this variant: REVEL, BayesDel, AlphaMissense, EVE, ESM1b, PrimateAI-3D, MetaRNN, VEST4, MutPred. Apply Pejaver 2022 PP3/BP4 calibration to REVEL." (Defer Pejaver calibration logic to acmg-classification.)
"For 100 rare missense variants, batch-query myvariant for all in-silico predictors and report the top-3 most concordant tools."
MyVariantInfo() client; canonicalize input IDs (HGVS preferred over rsID for unambiguous matching).getvariants(list, fields=...) call with explicit field selection._meta in fields for version tracking..get('source', {}) rather than direct key access).clinical-databases/acmg-classification.chr7:g.140453136A>T) for unambiguous matching; rsID is multi-allelic for ~6-8% of variants._meta.src.<source>.version is the canonical version field; record alongside results for reproducibility.print(mv.getvariant(test_id)) first.acmg-classification for classification.