{
  "filename": "plot_6.png",
  "iteration": 3,
  "description": "Cross-species phenotype concordance between human congenital pancreatic lipase deficiency and the Pnlip-null mouse",
  "timestamp": "2026-11-29 00:09:54",
  "code": "\nimport pandas as pd, numpy as np, matplotlib.pyplot as plt, requests\n# Cross-species phenotype concordance: human HPO (OMIM:614338) vs mouse MP (Alliance, Pnlip MGI:97722)\nhuman = {\n \"Steatorrhea (HP:0002570)\": \"present 2/2\",\n \"Fat malabsorption (HP:0002630)\": \"present 2/2\",\n \"Hypocholesterolemia (HP:0003146)\": \"present 2/2\",\n \"Elevated sweat chloride (HP:0012236)\": \"absent 0/2\",\n \"Normal growth / weight\": \"present (Behar 2014, Kamal 2022)\",\n \"Fat-soluble vitamin deficiency\": \"present (Curry 2025)\",\n}\nmouse = [\"abnormal intestinal lipid absorption\",\"decreased intestinal cholesterol absorption\",\n \"increased feces cholesterol level\",\"decreased circulating cholesterol level\",\"abnormal bile salt homeostasis\",\n \"decreased percent body fat/body weight\",\"increased lean body mass\",\"decreased susceptibility to diet-induced obesity\",\n \"decreased liver weight\",\"decreased circulating insulin level\",\"insulin resistance\"]\n\nconcordance = pd.DataFrame([\n (\"Triglyceride malabsorption / steatorrhea\",\"present in human (2/2, HP:0002570)\",\"ABSENT in Pnlip-/- mouse (fecal fat equal to WT)\",\"discordant\"),\n (\"Cholesterol malabsorption\",\"not routinely measured in patients\",\"present (75% lower plasma 14C-chol at 4 h, p<0.0005; 45% more fecal 14C-chol, p<0.0004)\",\"mouse-only\"),\n (\"Low circulating cholesterol\",\"present (HP:0003146, 2/2)\",\"present (decreased circulating cholesterol level)\",\"CONCORDANT\"),\n (\"Normal growth and body weight\",\"present (Behar 2014, Kamal 2022)\",\"present (PTL-/- grew normally, same body weight as PTL+/+)\",\"CONCORDANT\"),\n (\"Bile salt handling\",\"not reported\",\"abnormal bile salt homeostasis\",\"mouse-only\"),\n (\"Body composition / insulin\",\"not reported\",\"decreased body fat, increased lean mass, insulin resistance\",\"mouse-only\"),\n])\nconcordance.columns=[\"Feature\",\"Human (OMIM:614338)\",\"Mouse Pnlip-/- (PMID 12915407 + MGI)\",\"Verdict\"]\nprint(concordance.to_string(index=False))\nn_conc=(concordance.Verdict==\"CONCORDANT\").sum()\nprint(f\"\\nConcordant {n_conc}/6, discordant 1/6 (the defining human phenotype), mouse-only 3/6\")\n\nfig,ax=plt.subplots(figsize=(11,4.2))\ncmap={\"CONCORDANT\":\"#55A868\",\"discordant\":\"#C44E52\",\"mouse-only\":\"#9AA0A6\"}\ny=np.arange(len(concordance))[::-1]\nfor i,(f,h,m,v) in enumerate(concordance.itertuples(index=False)):\n    ax.barh(y[i],1,left=0,color=cmap[v],alpha=.85,height=.6)\n    ax.text(0.02,y[i],f,va=\"center\",fontsize=10,color=\"white\",fontweight=\"bold\")\n    ax.text(1.05,y[i],f\"human: {h}\",va=\"center\",fontsize=8)\n    ax.text(1.05,y[i]-0.26,f\"mouse: {m}\",va=\"center\",fontsize=8,color=\"#444\")\nax.set_xlim(0,3.6); ax.set_yticks([]); ax.set_xticks([])\nfor s in ax.spines.values(): s.set_visible(False)\nax.set_title(\"Pnlip-/- mouse reproduces the cholesterol and growth phenotypes of human PNLIP deficiency\\nbut not the steatorrhea (green concordant, red discordant, grey mouse-only)\",fontsize=11)\nplt.tight_layout(); plt.show()\n",
  "plot_number": 6
}