Query gnomAD v4 (807k samples), v3.1.2 genomes, and v2.1.1 for allele frequencies, grpmax FAF95, LOEUF gene constraint, SV/CNV catalogs, and mtDNA frequencies. The skill emphasizes the Whiffin 2017 max-credible-AF framework, the v2/v3/v4 use-case decision matrix, bottleneck-group exclusion from grpmax, and the LOEUF v2 vs v4 distribution shift.
pip install requests myvariant pandas
# Hail for bulk queries (optional)
pip install hail
gcloud auth application-default login
Tell the agent what to do: - "What is the v4 grpmax FAF95 for this variant? Apply ACMG BS1/BA1" - "Filter my VCF to variants with grpmax FAF95 < 0.0001 using gnomAD v4 Hail Table" - "Get LOEUF for these 50 candidate disease genes; note v4 has no chrX/Y constraint" - "Compute Whiffin max-credible-AF for hypertrophic cardiomyopathy and apply BS1 to my variant list" - "Compare v2 vs v4 AF for this variant and reconcile the discrepancy"
"Look up chr17:43094464:G:A in gnomAD v4. Report exome AF, grpmax FAF95, grpmax ancestry, and apply BS1 against breast-cancer-specific max-credible-AF."
"What is the gnomAD v4 grpmax FAF95 for rs334 (HbS)? Note: this is a founder allele in AFR, so check that bottleneck groups are excluded properly."
"For BRAF V600E, give me v4 exome AF, v2 AF, and reconcile any difference."
"Pull LOEUF for these 30 candidate genes. Use v4 March 2024 release for autosomes; fall back to v2.1.1 for chrX/Y."
"Rank my candidate gene list by LOEUF decile (first decile = strongly LoF-intolerant)."
"What is the missense Z-score and missense O/E for SCN2A? Is it missense-constrained (Z > 3.09)?"
"Apply Whiffin 2017 max-credible-AF framework to these candidate variants for autosomal dominant cardiomyopathy. Disease prevalence 1/500, penetrance 0.8."
"For each variant, report whether grpmax FAF95 triggers BA1 (>5%), BS1 (>max-credible), PM2_Supporting (absent/ultra-rare), or no criterion."
"For variant chr2:165996624:T:C, compare AFs across all v4 ancestry groups. Flag if FIN/AMI/ASJ/REMAINING (bottleneck) inflate grpmax."
"Find variants where v4 AFR FAF95 is >10x higher than NFE FAF95."
"Using the gnomAD v4 exomes Hail Table at
gs://gcp-public-data--gnomad/release/4.1/ht/exomes/, filter my cohort VCF to retain only variants with grpmax FAF95 < 0.0001.""Annotate my somatic VCF with gnomAD v4 grpmax FAF95 to identify likely germline contamination."
"Look up these structural variants in gnomAD-SV v4. Report breakpoint AF and clinical relevance."
"Find rare CNVs (AF < 1%) overlapping my candidate gene panel from gnomAD-CNV v4."
"Pull mtDNA variant frequencies from gnomAD v3.1 for this Leigh syndrome candidate set."
grpmax_faf95, not raw AF, for ACMG BS1/BA1; this is the ClinGen SVI recommendation.non_v2 subset.non_ukb subset.(prevalence x heterogeneity x allelic_contribution) / (penetrance x 2). Gene-specific BS1.