{
  "filename": "plot_4.png",
  "iteration": 2,
  "description": "Comparison of how well available mouse models reproduce Singleton-Merten syndrome 2 features",
  "timestamp": "2026-11-28 22:02:36",
  "code": "\nimport numpy as np, pandas as pd, matplotlib.pyplot as plt\nfrom matplotlib.patches import Patch\n\n# Phenotype recapitulation across models. 1 = present, 0 = tested/absent, NaN = not assessed\nfeat = [\"Constitutive\\nISG signature\",\"Psoriasiform\\nskin disease\",\"Aortic / valve\\ncalcification\",\n        \"Glaucoma /\\nraised IOP\",\"Dental\\ndysplasia\",\"Skeletal /\\nosteolysis\",\"Gut inflammation\\n(poly I:C)\"]\nmodels = {\n \"Human SMS2 patients\\n(RIGI GOF, PMIDs 25620203/30574673/33495304)\": [1,1,1,1,1,1,np.nan],\n \"RIG-I p.Glu373Ala transgenic mouse\\n(PMID 33119735)\":                 [1,1,np.nan,np.nan,np.nan,np.nan,np.nan],\n \"Rigi em1(IMPC)J knockout, homozygous\\n(IMPC, LoF)\":                   [0,0,0,0,0,0,np.nan],\n \"Human MDA5 p.Arg822Gln transgenic mouse\\n(IFIH1/SMS1, PMID 36426976)\":[1,np.nan,1,np.nan,np.nan,np.nan,1],\n}\nM=pd.DataFrame(models, index=feat).T\nfig,ax=plt.subplots(figsize=(11,4.2))\nfor i,(idx,row) in enumerate(M.iterrows()):\n    for j,f in enumerate(feat):\n        v=row[f]\n        if pd.isna(v): ax.add_patch(plt.Rectangle((j,i),1,1,color=\"#F2F3F4\",ec=\"white\",lw=2,hatch=\"//\"))\n        else: ax.add_patch(plt.Rectangle((j,i),1,1,color=\"#C0392B\" if v==1 else \"#AED6F1\",ec=\"white\",lw=2))\nax.set_xlim(0,len(feat)); ax.set_ylim(0,len(M)); ax.invert_yaxis()\nax.set_xticks(np.arange(len(feat))+0.5); ax.set_xticklabels(feat, fontsize=8)\nax.set_yticks(np.arange(len(M))+0.5); ax.set_yticklabels(M.index, fontsize=7.5)\nax.tick_params(length=0)\nfor s in ax.spines.values(): s.set_visible(False)\nax.set_title(\"Phenotype recapitulation of Singleton-Merten syndrome 2 across available models\", fontsize=11)\nax.legend(handles=[Patch(color=\"#C0392B\",label=\"present\"),Patch(color=\"#AED6F1\",label=\"assessed, absent\"),\n                   Patch(facecolor=\"#F2F3F4\",hatch=\"//\",label=\"not assessed\")],\n          loc=\"upper center\", bbox_to_anchor=(0.5,-0.12), ncol=3, fontsize=9, frameon=False)\nplt.tight_layout(); plt.show()\n",
  "plot_number": 4
}