{
  "filename": "gnal_variant_spectrum.png",
  "iteration": 3,
  "description": "Summarize and visualize the reported GNAL (DYT25) pathogenic variant spectrum by type",
  "timestamp": "2026-10-20 19:37:25",
  "code": "\nimport matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\n# Curated reported GNAL pathogenic/likely-pathogenic variants from primary literature\nvariants = [\n    (\"p.Ser293*\",      \"nonsense\",   \"Fuchs 2013 (23222958)\"),\n    (\"p.Val137Met\",    \"missense\",   \"Fuchs 2013 (23222958)\"),\n    (\"p.Val228Phe\",    \"missense\",   \"Vemula 2013 (23449625)\"),\n    (\"p.Arg198Thrfs*13\",\"frameshift\", \"Vemula 2013 (23449625)\"),\n    (\"p.Arg245*\",      \"nonsense\",   \"Vemula 2013 (23449625)\"),\n    (\"p.Met1?\",        \"start-loss\", \"Vemula 2013 (23449625)\"),\n    (\"p.Asp210Asn\",    \"missense\",   \"Carecchio 2016 (26725140)\"),\n    (\"p.Val354Ala\",    \"missense\",   \"Dobricic 2014 (24729450) de novo\"),\n    (\"p.Ser95*\",       \"nonsense\",   \"Miao 2013 (23759320)\"),\n    (\"c.932-7T>G\",     \"splice\",     \"Miao 2013 (23759320)\"),\n]\ndf = pd.DataFrame(variants, columns=[\"variant\",\"type\",\"source\"])\ncounts = df[\"type\"].value_counts()\nprint(\"GNAL variant class distribution (representative literature set):\")\nprint(counts.to_string())\nprint(\"\\nTruncating (nonsense+frameshift+start-loss+splice):\",\n      sum(counts.get(t,0) for t in [\"nonsense\",\"frameshift\",\"start-loss\",\"splice\"]),\n      \"| missense:\", counts.get(\"missense\",0))\n\nfig, ax = plt.subplots(figsize=(7,4))\ncolors = {\"missense\":\"#4C72B0\",\"nonsense\":\"#C44E52\",\"frameshift\":\"#DD8452\",\n          \"start-loss\":\"#8172B3\",\"splice\":\"#937860\"}\ncounts.plot(kind=\"bar\", ax=ax, color=[colors[t] for t in counts.index])\nax.set_ylabel(\"Number of reported variants\")\nax.set_title(\"DYT25 / GNAL pathogenic variant spectrum (representative set)\")\nax.set_xlabel(\"Variant class\")\nplt.xticks(rotation=20, ha=\"right\")\nplt.tight_layout()\nplt.savefig(\"gnal_variant_spectrum.png\", dpi=120)\nprint(\"\\nInterpretation: Mix of truncating (LOF) and missense variants is consistent with\")\nprint(\"haploinsufficiency as the disease mechanism for DYT25.\")\n"
}