{
  "filename": "plot_3.png",
  "iteration": 2,
  "description": "DOCK11 domain map with pathogenic truncating variant positions",
  "timestamp": "2026-11-19 03:28:13",
  "code": "\nimport matplotlib.pyplot as plt\nimport numpy as np, requests, pandas as pd, re\n\nL=2073\ndomains=[(\"PH\",165,272,\"#8e44ad\"),(\"C2 (DHR-1)\",640,818,\"#d68910\"),(\"DOCKER (DHR-2, GEF)\",1609,2036,\"#c0392b\")]\n# ClinVar P/LP DOCK11-specific alleles (from iteration 1) -> approximate protein positions\nplp=[(\"p.Ile1464fs\",\"frameshift\",1464),(\"p.Leu1299fs\",\"frameshift\",1299),(\"p.Ser1793fs\",\"frameshift\",1793),\n     (\"p.Tyr2012Ter\",\"nonsense\",2012),(\"p.Gln1252Ter (PMID 40274249)\",\"nonsense\",1252),\n     (\"c.392+1G>A (splice, ~p.131)\",\"splice\",131),(\"c.4582-1G>A (splice, ~p.1528)\",\"splice\",1528)]\ncols={\"frameshift\":\"#1f618d\",\"nonsense\":\"#922b21\",\"splice\":\"#148f77\"}\n\nfig,ax=plt.subplots(figsize=(13,4.2))\nax.add_patch(plt.Rectangle((1,-0.12),L,0.24,color=\"#d5d8dc\"))\nfor name,s,e,c in domains:\n    ax.add_patch(plt.Rectangle((s,-0.22),e-s,0.44,color=c,alpha=0.9))\n    ax.text((s+e)/2,0,name,ha=\"center\",va=\"center\",color=\"white\",fontsize=9,weight=\"bold\")\n# ARM-repeat region (N-terminal, binds activated CDC42 per cryo-EM, residues ~66-126 noted by UniProt)\nax.plot([66,126],[0.32,0.32],lw=4,color=\"#2874a6\")\nax.text(96,0.40,\"66-126: activated-CDC42\\nco-binding region\",ha=\"center\",fontsize=7,color=\"#2874a6\")\n\nfor i,(lab,kind,pos) in enumerate(sorted(plp,key=lambda x:x[2])):\n    y=-0.45-0.13*(i%3)\n    ax.plot([pos,pos],[-0.22,y+0.03],lw=1,color=cols[kind])\n    ax.plot(pos,-0.22,\"v\",color=cols[kind],ms=6)\n    ax.text(pos,y,lab,ha=\"center\",va=\"top\",fontsize=7,color=cols[kind])\n\nax.set_xlim(-60,L+60); ax.set_ylim(-1.05,0.62)\nax.set_yticks([]); ax.set_xlabel(\"DOCK11 residue (UniProt Q5JSL3, 2073 aa)\")\nax.set_title(\"DOCK11 domain architecture and ClinVar pathogenic / likely pathogenic truncating alleles\\n\"\n             \"Cryo-EM structures 22VD-22VG (PMID 42837459) show a U-shaped dimer: DOCKER binds nucleotide-free CDC42,\\n\"\n             \"activated CDC42 binds a distal armadillo-repeat site, a membrane-dependent positive feedback loop\",fontsize=9.5)\nax.spines[[\"top\",\"right\",\"left\"]].set_visible(False)\nh=[plt.Line2D([0],[0],color=v,lw=3) for v in cols.values()]\nax.legend(h,cols.keys(),fontsize=7,loc=\"lower right\",frameon=False,ncol=3)\nplt.tight_layout(); plt.show()\n",
  "plot_number": 3
}