{
  "filename": "plot_4.png",
  "iteration": 2,
  "description": "Corrected structural map of UNC119A Gly22 vs experimentally observed region",
  "timestamp": "2026-11-17 22:46:41",
  "code": "\nimport requests, numpy as np, pandas as pd, matplotlib.pyplot as plt\naf = requests.get(\"https://alphafold.ebi.ac.uk/api/prediction/Q13432\", timeout=90).json()[0]\npdb = requests.get(af[\"pdbUrl\"], timeout=120).text\nrows=[{\"resi\":int(l[22:26]),\"plddt\":float(l[60:66])} for l in pdb.splitlines()\n      if l.startswith(\"ATOM\") and l[12:16].strip()==\"CA\"]\nd=pd.DataFrame(rows)\ng22=d.loc[d.resi==22,\"plddt\"].values[0]\nfig,ax=plt.subplots(figsize=(11,4.2))\nax.plot(d.resi, d.plddt, lw=1.5, color=\"#4C72B0\")\nax.axhspan(0,50,color=\"#C44E52\",alpha=0.07); ax.axhspan(90,100,color=\"#55A868\",alpha=0.07)\nax.axvspan(59,237,color=\"grey\",alpha=0.14)\nax.text(148,96,\"residues 59-237: the only region with observed density\\nin all 9 UNC119A crystal structures (4GOJ, 4GOK, 3GQQ, 3RBQ,\\n5L7K, 6H6A, 7UMO, 9GKG, 9NEM)\",ha=\"center\",va=\"top\",fontsize=8,color=\"dimgrey\")\nax.axvline(22,color=\"#C44E52\",lw=1.6,ls=\"--\")\nax.annotate(f\"Gly22, the reported ICL variant site\\npLDDT {g22:.0f} (very low confidence)\\nnever resolved experimentally\",\n            xy=(22,g22), xytext=(52,8), arrowprops=dict(arrowstyle=\"->\",color=\"#C44E52\"),\n            color=\"#C44E52\", fontsize=9)\nax.set_xlabel(\"UNC119A residue (UniProt Q13432, 240 aa)\"); ax.set_ylabel(\"AlphaFold pLDDT\")\nax.set_ylim(0,100); ax.set_xlim(1,240)\nax.set_title(\"The UNC119A site implicated in immunodeficiency 13 sits in an intrinsically disordered N-terminal arm\")\nplt.tight_layout(); plt.show()\n\nprint(\"mean pLDDT 1-50: %.1f | 59-237: %.1f | %% of 1-50 below 50: %.0f%%\" %\n      (d[d.resi<=50].plddt.mean(), d[(d.resi>=59)&(d.resi<=237)].plddt.mean(), 100*d[d.resi<=50].plddt.lt(50).mean()))\n",
  "plot_number": 4
}