~/metabolic-pptx/create_pptx.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3 x 7.5
pres.title = "Metabolic Pathways - NEET PG Quick Revision";
pres.author = "Orris Medical";
// βββ COLOUR PALETTE βββββββββββββββββββββββββββββββββββββββββββββββ
const C = {
navy: "0D1B2A", // dominant dark bg
teal: "00B4D8", // accent 1
green: "06D6A0", // accent 2
orange: "F4A261", // accent 3 / highlight
yellow: "FFD166", // high-yield tag
red: "EF233C", // warning / inhibit
white: "FFFFFF",
lightBg: "F0F4F8", // light slide bg
cardBg: "1A2E45", // card on dark
textDark:"1A1A2E",
muted: "8ECAE6",
};
// βββ HELPERS ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
function headerBar(slide, title, subtitle) {
// Dark left accent bar
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.18, h: 7.5, fill: { color: C.teal }, line: { type: "none" } });
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 13.3, h: 1.1, fill: { color: C.navy }, line: { type: "none" } });
slide.addText(title, { x: 0.3, y: 0.08, w: 9, h: 0.65, fontSize: 26, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
if (subtitle) {
slide.addText(subtitle, { x: 0.3, y: 0.72, w: 11, h: 0.35, fontSize: 13, color: C.teal, fontFace: "Calibri", margin: 0, italic: true });
}
}
function highYieldTag(slide, x, y) {
slide.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: 1.5, h: 0.32, fill: { color: C.yellow }, line: { type: "none" }, rectRadius: 0.06 });
slide.addText("β
HIGH-YIELD", { x, y, w: 1.5, h: 0.32, fontSize: 9.5, bold: true, color: C.textDark, align: "center", valign: "middle", margin: 0 });
}
function card(slide, x, y, w, h, fillColor, text, textOpts) {
slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
x, y, w, h,
fill: { color: fillColor },
line: { type: "none" },
rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.18 }
});
if (text) slide.addText(text, { x: x + 0.1, y, w: w - 0.2, h, ...textOpts });
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 1 β TITLE
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
// Decorative circles
s.addShape(pres.shapes.OVAL, { x: 10.5, y: -0.8, w: 4, h: 4, fill: { color: C.teal, transparency: 82 }, line: { type: "none" } });
s.addShape(pres.shapes.OVAL, { x: -1, y: 4.5, w: 3.5, h: 3.5, fill: { color: C.green, transparency: 82 }, line: { type: "none" } });
s.addShape(pres.shapes.OVAL, { x: 5.5, y: 5.2, w: 2, h: 2, fill: { color: C.orange, transparency: 75 }, line: { type: "none" } });
// Accent bar
s.addShape(pres.shapes.RECTANGLE, { x: 1.2, y: 1.8, w: 0.12, h: 2.0, fill: { color: C.teal }, line: { type: "none" } });
s.addText("METABOLIC PATHWAYS", {
x: 1.5, y: 1.65, w: 10, h: 1.0,
fontSize: 46, bold: true, color: C.white, fontFace: "Calibri",
charSpacing: 3, margin: 0
});
s.addText("Quick Revision for NEET PG", {
x: 1.5, y: 2.65, w: 8, h: 0.55,
fontSize: 22, color: C.teal, fontFace: "Calibri", italic: true, margin: 0
});
s.addShape(pres.shapes.RECTANGLE, { x: 1.5, y: 3.25, w: 5.0, h: 0.04, fill: { color: C.orange }, line: { type: "none" } });
s.addText("Biochemistry | Glycolysis β’ TCA β’ Gluconeogenesis β’ HMP β’ Fatty Acids β’ Glycogen", {
x: 1.5, y: 3.4, w: 10, h: 0.45,
fontSize: 13, color: C.muted, fontFace: "Calibri", margin: 0
});
// Topics chips
const topics = ["10 Core Pathways", "Rate-Limiting Enzymes", "Clinical Pearls", "MCQ Tips"];
topics.forEach((t, i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 1.5 + i * 2.7, y: 4.1, w: 2.4, h: 0.42, fill: { color: C.cardBg }, line: { color: C.teal, pt: 1 }, rectRadius: 0.08 });
s.addText(t, { x: 1.5 + i * 2.7, y: 4.1, w: 2.4, h: 0.42, fontSize: 11, color: C.teal, bold: true, align: "center", valign: "middle", margin: 0 });
});
s.addText("Sources: Lippincott Biochemistry 8e β’ Harper's Biochemistry 32e", {
x: 1.5, y: 6.9, w: 10, h: 0.35,
fontSize: 10, color: C.muted, italic: true, margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 2 β OVERVIEW MAP
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Metabolic Integration Overview", "How all pathways connect");
// Central glucose box
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.3, y: 2.2, w: 2.7, h: 0.7, fill: { color: C.teal }, line: { type: "none" }, rectRadius: 0.1 });
s.addText("GLUCOSE", { x: 5.3, y: 2.2, w: 2.7, h: 0.7, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
// Pathway boxes with arrows (drawn as shapes + text)
const pathways = [
{ label: "Glycolysis", x: 0.3, y: 1.8, color: C.navy },
{ label: "HMP Shunt", x: 0.3, y: 3.2, color: "1B4332" },
{ label: "Glycogen\nSynthesis", x: 2.8, y: 1.1, color: "023E8A" },
{ label: "Gluconeo-\ngenesis", x: 2.8, y: 3.4, color: "6A0572" },
{ label: "Pyruvate\nDH (PDH)", x: 5.4, y: 3.6, color: "B5451B" },
{ label: "TCA Cycle\n(Krebs)", x: 8.3, y: 2.0, color: "1B4332" },
{ label: "Oxidative\nPhos.", x: 10.5, y: 3.4, color: "023E8A" },
{ label: "Fatty Acid\nSynthesis", x: 8.3, y: 4.5, color: "6A0572" },
{ label: "Ketogenesis", x: 10.5, y: 1.4, color: C.navy },
{ label: "Urea Cycle", x: 5.4, y: 5.0, color: "B5451B" },
];
pathways.forEach(p => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: p.x, y: p.y, w: 2.2, h: 0.8, fill: { color: p.color }, line: { type: "none" }, rectRadius: 0.1 });
s.addText(p.label, { x: p.x, y: p.y, w: 2.2, h: 0.8, fontSize: 11, color: C.white, bold: true, align: "center", valign: "middle", margin: 0 });
});
// Acetyl-CoA central node
s.addShape(pres.shapes.OVAL, { x: 7.3, y: 3.1, w: 1.6, h: 0.6, fill: { color: C.orange }, line: { type: "none" } });
s.addText("Acetyl-CoA", { x: 7.3, y: 3.1, w: 1.6, h: 0.6, fontSize: 10, bold: true, color: C.textDark, align: "center", valign: "middle", margin: 0 });
// Legend
s.addText("Carbohydrate Lipid Amino Acid Energy", {
x: 0.3, y: 6.8, w: 9, h: 0.35, fontSize: 11, color: "555555", italic: true, margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 3 β GLYCOLYSIS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Glycolysis", "10-step pathway β’ Cytosol β’ All tissues");
highYieldTag(s, 11.5, 0.12);
// Left: Key facts
const facts = [
["Location", "Cytosol (all tissues)"],
["End product (aerobic)", "Pyruvate β Acetyl-CoA"],
["End product (anaerobic)", "Lactate (RBCs, eye, hypoxia)"],
["Net ATP (aerobic)", "2 ATP + 2 NADH"],
["Net ATP (anaerobic)", "2 ATP only"],
["Warburg Effect", "Cancer: anaerobic glycolysis even with Oβ"],
];
facts.forEach(([k, v], i) => {
const y = 1.3 + i * 0.65;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y, w: 4.5, h: 0.55, fill: { color: i % 2 === 0 ? "E8F4FD" : C.white }, line: { type: "none" }, rectRadius: 0.06 });
s.addText([{ text: k + ": ", options: { bold: true, color: C.navy } }, { text: v, options: { color: "333333" } }],
{ x: 0.45, y, w: 4.3, h: 0.55, fontSize: 11.5, valign: "middle", margin: 0 });
});
// Right: 3 Regulated steps
s.addShape(pres.shapes.RECTANGLE, { x: 5.1, y: 1.2, w: 7.9, h: 0.38, fill: { color: C.navy }, line: { type: "none" } });
s.addText("3 IRREVERSIBLE (REGULATED) STEPS", { x: 5.1, y: 1.2, w: 7.9, h: 0.38, fontSize: 13, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0 });
const steps = [
{ step: "Step 1", enzyme: "Hexokinase / Glucokinase", reaction: "Glucose β Glucose-6-P", note: "HK: inhibited by G-6-P; GK: liver/Ξ²-cells, not inhibited", color: "003566" },
{ step: "Step 3", enzyme: "PFK-1 β
RATE-LIMITING", reaction: "F-6-P β F-1,6-bisP", note: "β by AMP, F-2,6-bisP | β by ATP, citrate", color: "6A0572" },
{ step: "Step 10", enzyme: "Pyruvate Kinase", reaction: "PEP β Pyruvate", note: "β by F-1,6-bisP | β by ATP, alanine, glucagon", color: "B5451B" },
];
steps.forEach((st, i) => {
const y = 1.72 + i * 1.55;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.1, y, w: 7.9, h: 1.4, fill: { color: st.color }, line: { type: "none" }, rectRadius: 0.1 });
s.addText(st.step, { x: 5.2, y: y + 0.08, w: 1.0, h: 0.35, fontSize: 10, color: C.yellow, bold: true, margin: 0 });
s.addText(st.enzyme, { x: 5.2, y: y + 0.32, w: 7.6, h: 0.38, fontSize: 14, color: C.white, bold: true, margin: 0 });
s.addText(st.reaction, { x: 5.2, y: y + 0.68, w: 7.6, h: 0.3, fontSize: 12, color: C.teal, margin: 0 });
s.addText(st.note, { x: 5.2, y: y + 0.98, w: 7.6, h: 0.32, fontSize: 10.5, color: C.muted, italic: true, margin: 0 });
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 4 β GLUT TRANSPORTERS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "GLUT Transporters", "Glucose entry into cells β Sodium-independent facilitated diffusion");
highYieldTag(s, 11.5, 0.12);
const gluts = [
{ name: "GLUT-1", tissue: "Most tissues, RBCs, Brain barrier", feature: "Constitutive basal uptake", color: "023E8A" },
{ name: "GLUT-2", tissue: "Liver, Kidney, Pancreatic Ξ²-cells", feature: "High Km β glucose SENSOR; bidirectional", color: "1B4332" },
{ name: "GLUT-3", tissue: "Neurons (brain)", feature: "High affinity β ensures brain always gets glucose", color: "6A0572" },
{ name: "GLUT-4", tissue: "Skeletal muscle & Adipose", feature: "INSULIN-DEPENDENT β insertion into membrane", color: "B5451B" },
{ name: "GLUT-5", tissue: "Small intestine, sperm", feature: "Transports FRUCTOSE (not glucose)", color: "7B2D00" },
];
gluts.forEach((g, i) => {
const x = 0.3 + (i % 3) * 4.3;
const y = i < 3 ? 1.35 : 3.6;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: 4.0, h: 2.0, fill: { color: g.color }, line: { color: C.teal, pt: 1.5 }, rectRadius: 0.12 });
s.addText(g.name, { x: x + 0.15, y: y + 0.12, w: 3.7, h: 0.45, fontSize: 20, bold: true, color: C.yellow, margin: 0 });
s.addText(g.tissue, { x: x + 0.15, y: y + 0.55, w: 3.7, h: 0.5, fontSize: 11.5, color: C.teal, margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: x + 0.15, y: y + 1.05, w: 3.65, h: 0.03, fill: { color: C.teal, transparency: 50 }, line: { type: "none" } });
s.addText(g.feature, { x: x + 0.15, y: y + 1.1, w: 3.7, h: 0.7, fontSize: 11, color: C.white, italic: true, margin: 0 });
});
// MCQ tip
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 8.8, y: 3.6, w: 4.2, h: 2.0, fill: { color: "1A1A2E" }, line: { color: C.yellow, pt: 1.5 }, rectRadius: 0.12 });
s.addText("MCQ TIP", { x: 8.9, y: 3.68, w: 4.0, h: 0.38, fontSize: 13, bold: true, color: C.yellow, margin: 0 });
s.addText([
{ text: "β’ GLUT-4 = insulin-dependent\n", options: { color: C.white } },
{ text: "β’ GLUT-2 = glucose sensor in Ξ²-cells\n", options: { color: C.white } },
{ text: "β’ GLUT-5 = fructose (NOT glucose)\n", options: { color: C.white } },
{ text: "β’ No GLUT-4 in RBCs or neurons", options: { color: C.muted } },
], { x: 8.9, y: 4.1, w: 4.0, h: 1.4, fontSize: 11, margin: 0, lineSpacingMultiple: 1.3 });
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 5 β TCA CYCLE
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "TCA Cycle (Krebs / Citric Acid Cycle)", "Mitochondrial matrix β’ Main ATP generator");
highYieldTag(s, 11.5, 0.12);
// Steps table
const rows = [
[{ text: "Reaction", options: { bold: true, color: C.white, fill: { color: C.navy } } },
{ text: "Enzyme", options: { bold: true, color: C.white, fill: { color: C.navy } } },
{ text: "Cofactor / Note", options: { bold: true, color: C.white, fill: { color: C.navy } } }],
["Acetyl-CoA + OAA β Citrate", "Citrate synthase", "Inhibited by NADH, succinyl-CoA, ATP"],
["Citrate β Isocitrate", "Aconitase", "Fe-S cluster; fluoroacetate blocks"],
["Isocitrate β Ξ±-Ketoglutarate + COβ", "Isocitrate DH β
Rate-limiting", "NADβΊ β NADH; activated by ADP, CaΒ²βΊ"],
["Ξ±-KG β Succinyl-CoA + COβ", "Ξ±-KG dehydrogenase", "TPP, lipoate, FAD, NADβΊ, CoA (same as PDH)"],
["Succinyl-CoA β Succinate", "Succinyl-CoA synthetase", "Substrate-level: GTP formed"],
["Succinate β Fumarate", "Succinate DH (Complex II)", "FADHβ; inhibited by malonate"],
["Fumarate β Malate", "Fumarase", "β"],
["Malate β OAA", "Malate dehydrogenase", "NADβΊ β NADH; completes cycle"],
];
const rowColors = ["", "F0F8FF", "FFFFFF", "F0F8FF", "FFFFFF", "F0F8FF", "FFFFFF", "F0F8FF", "FFFFFF"];
const tableData = rows.map((row, ri) =>
row.map((cell, ci) => {
if (typeof cell === "object") return cell;
const opts = { color: C.textDark, fontSize: 10.5 };
if (ri > 0) opts.fill = { color: rowColors[ri] };
if (ci === 1 && ri > 0) opts.bold = true;
return { text: cell, options: opts };
})
);
s.addTable(tableData, {
x: 0.3, y: 1.3, w: 12.7, h: 5.5,
colW: [3.6, 3.2, 5.9],
border: { pt: 0.5, color: "CCCCCC" },
rowH: 0.55,
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 6 β TCA YIELD + VITAMINS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "TCA Cycle β ATP Yield & Vitamins", "Per acetyl-CoA turn + Anaplerosis");
// ATP yield cards
const yields = [
{ label: "3 Γ NADH", atp: "7.5 ATP", note: "(2.5 each)", color: "023E8A" },
{ label: "1 Γ FADHβ", atp: "1.5 ATP", note: "(1.5 each)", color: "1B4332" },
{ label: "1 Γ GTP", atp: "1 ATP", note: "Substrate-level", color: "6A0572" },
{ label: "TOTAL", atp: "10 ATP", note: "Per acetyl-CoA", color: "B5451B" },
];
yields.forEach((y, i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3 + i * 3.2, y: 1.3, w: 2.9, h: 1.6, fill: { color: y.color }, line: { type: "none" }, rectRadius: 0.1 });
s.addText(y.label, { x: 0.3 + i * 3.2, y: 1.38, w: 2.9, h: 0.4, fontSize: 12, color: C.teal, bold: true, align: "center", margin: 0 });
s.addText(y.atp, { x: 0.3 + i * 3.2, y: 1.78, w: 2.9, h: 0.55, fontSize: 24, color: C.yellow, bold: true, align: "center", margin: 0 });
s.addText(y.note, { x: 0.3 + i * 3.2, y: 2.33, w: 2.9, h: 0.35, fontSize: 10, color: C.muted, align: "center", italic: true, margin: 0 });
});
// Per glucose
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 3.1, w: 12.7, h: 0.55, fill: { color: C.teal, transparency: 10 }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("Per GLUCOSE β 2 acetyl-CoA β 20 ATP from TCA alone | Total oxidation of glucose β 30β32 ATP", {
x: 0.3, y: 3.1, w: 12.7, h: 0.55, fontSize: 14, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0
});
// Vitamins
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 3.85, w: 12.7, h: 0.38, fill: { color: C.cardBg }, line: { type: "none" } });
s.addText("VITAMINS IN TCA CYCLE β Mnemonic: T-L-N-F-B", { x: 0.3, y: 3.85, w: 12.7, h: 0.38, fontSize: 13, bold: true, color: C.yellow, align: "center", valign: "middle", margin: 0 });
const vits = [
{ letter: "T", name: "Thiamine (B1)", use: "PDH, Ξ±-KG DH, Transketolase", color: "023E8A" },
{ letter: "L", name: "Lipoic Acid", use: "PDH, Ξ±-KG DH", color: "1B4332" },
{ letter: "N", name: "Niacin (B3/NADβΊ)", use: "Multiple dehydrogenases", color: "6A0572" },
{ letter: "F", name: "Flavin (B2/FAD)", use: "Succinate DH, PDH", color: "B5451B" },
{ letter: "B", name: "Biotin (B7)", use: "Pyruvate carboxylase (anaplerosis)", color: "7B2D00" },
];
vits.forEach((v, i) => {
const x = 0.3 + i * 2.55;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y: 4.35, w: 2.4, h: 2.7, fill: { color: v.color }, line: { type: "none" }, rectRadius: 0.1 });
s.addText(v.letter, { x, y: 4.42, w: 2.4, h: 0.65, fontSize: 32, bold: true, color: C.yellow, align: "center", margin: 0 });
s.addText(v.name, { x: x + 0.1, y: 5.05, w: 2.2, h: 0.45, fontSize: 11.5, color: C.white, bold: true, align: "center", margin: 0 });
s.addText(v.use, { x: x + 0.1, y: 5.5, w: 2.2, h: 1.4, fontSize: 10, color: C.muted, align: "center", margin: 0, lineSpacingMultiple: 1.3 });
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 7 β PDH COMPLEX
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Pyruvate Dehydrogenase Complex (PDH)", "Bridge between glycolysis & TCA β’ Mitochondrial matrix β’ IRREVERSIBLE");
highYieldTag(s, 11.5, 0.12);
// Central reaction
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 2.0, y: 1.35, w: 9.3, h: 0.75, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.1 });
s.addText("Pyruvate β Acetyl-CoA + COβ + NADH", {
x: 2.0, y: 1.35, w: 9.3, h: 0.75, fontSize: 20, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0
});
// Cofactors
s.addText("COFACTORS (mnemonic: T-L-C-F-N)", { x: 0.3, y: 2.3, w: 6, h: 0.38, fontSize: 14, bold: true, color: C.navy, margin: 0 });
const cofs = [
{ l: "T", n: "TPP", v: "Thiamine B1" },
{ l: "L", n: "Lipoic acid", v: "Lipoamide" },
{ l: "C", n: "CoA", v: "B5 Pantothenate" },
{ l: "F", n: "FAD", v: "Riboflavin B2" },
{ l: "N", n: "NADβΊ", v: "Niacin B3" },
];
cofs.forEach((c, i) => {
const y = 2.78 + i * 0.72;
s.addShape(pres.shapes.OVAL, { x: 0.3, y: y + 0.05, w: 0.55, h: 0.55, fill: { color: C.teal }, line: { type: "none" } });
s.addText(c.l, { x: 0.3, y: y + 0.05, w: 0.55, h: 0.55, fontSize: 16, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
s.addText(c.n + " β " + c.v, { x: 1.0, y, w: 5, h: 0.65, fontSize: 13, color: C.textDark, valign: "middle", margin: 0 });
});
// Regulation
s.addShape(pres.shapes.RECTANGLE, { x: 6.5, y: 2.25, w: 6.5, h: 0.38, fill: { color: C.navy }, line: { type: "none" } });
s.addText("REGULATION", { x: 6.5, y: 2.25, w: 6.5, h: 0.38, fontSize: 13, bold: true, color: C.yellow, align: "center", valign: "middle", margin: 0 });
const activators = ["AMP", "CoA", "NADβΊ", "CaΒ²βΊ", "Insulin (via PDH phosphatase)"];
const inhibitors = ["ATP", "Acetyl-CoA", "NADH", "Fatty acids", "PDH kinase (phosphorylates β OFF)"];
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.5, y: 2.73, w: 3.0, h: 4.0, fill: { color: "E8F8F5" }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β ACTIVATORS", { x: 6.5, y: 2.8, w: 3.0, h: 0.38, fontSize: 12, bold: true, color: "1B4332", align: "center", margin: 0 });
activators.forEach((a, i) => {
s.addText("β’ " + a, { x: 6.7, y: 3.22 + i * 0.6, w: 2.7, h: 0.5, fontSize: 12, color: "1B4332", margin: 0 });
});
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 9.7, y: 2.73, w: 3.0, h: 4.0, fill: { color: "FFF0F0" }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β INHIBITORS", { x: 9.7, y: 2.8, w: 3.0, h: 0.38, fontSize: 12, bold: true, color: C.red, align: "center", margin: 0 });
inhibitors.forEach((a, i) => {
s.addText("β’ " + a, { x: 9.9, y: 3.22 + i * 0.6, w: 2.7, h: 0.5, fontSize: 12, color: C.red, margin: 0 });
});
// Clinical pearl
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 6.5, w: 5.8, h: 0.72, fill: { color: C.yellow, transparency: 15 }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β
CLINICAL: Thiamine (B1) deficiency β PDH block β pyruvate β lactate (lactic acidosis) β Wernicke's / Beriberi", {
x: 0.4, y: 6.53, w: 5.6, h: 0.65, fontSize: 11, color: C.textDark, bold: true, margin: 0, lineSpacingMultiple: 1.2
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 8 β GLUCONEOGENESIS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Gluconeogenesis", "New glucose synthesis from non-carbohydrate precursors");
highYieldTag(s, 11.5, 0.12);
// Precursors
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.3, w: 3.5, h: 0.4, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("SUBSTRATES", { x: 0.3, y: 1.3, w: 3.5, h: 0.4, fontSize: 12, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0 });
const substrates = [
["Lactate", "Cori cycle: muscle β liver", "023E8A"],
["Glycerol", "From TAG hydrolysis in adipose", "1B4332"],
["Amino acids", "All glucogenic (ALL except Leu & Lys)", "6A0572"],
["Propionate", "Odd-chain fatty acid Ξ²-oxidation", "B5451B"],
];
substrates.forEach(([k, v, col], i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.82 + i * 1.1, w: 3.5, h: 0.95, fill: { color: col }, line: { type: "none" }, rectRadius: 0.08 });
s.addText(k, { x: 0.45, y: 1.87 + i * 1.1, w: 3.2, h: 0.38, fontSize: 13, bold: true, color: C.white, margin: 0 });
s.addText(v, { x: 0.45, y: 2.22 + i * 1.1, w: 3.2, h: 0.38, fontSize: 10.5, color: C.muted, margin: 0 });
});
// Bypass enzymes
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 4.1, y: 1.3, w: 8.9, h: 0.4, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("4 UNIQUE BYPASS ENZYMES (overcome irreversible glycolytic steps)", {
x: 4.1, y: 1.3, w: 8.9, h: 0.4, fontSize: 12, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0
});
const bypasses = [
{ num: "1", enzyme: "Pyruvate Carboxylase", rxn: "Pyruvate β OAA", note: "Biotin cofactor; mitochondria; activated by acetyl-CoA", color: "023E8A" },
{ num: "2", enzyme: "PEPCK", rxn: "OAA β PEP", note: "Cytosol; GTP required; rate-limiting of gluconeogenesis", color: "1B4332" },
{ num: "3", enzyme: "Fructose-1,6-bisphosphatase", rxn: "F-1,6-bisP β F-6-P", note: "Inhibited by AMP, F-2,6-bisP; reciprocal to PFK-1", color: "6A0572" },
{ num: "4", enzyme: "Glucose-6-phosphatase", rxn: "G-6-P β Glucose", note: "ER membrane; liver & kidney only (NOT muscle/brain)", color: "B5451B" },
];
bypasses.forEach((b, i) => {
const y = 1.82 + i * 1.1;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 4.1, y, w: 8.9, h: 0.95, fill: { color: b.color }, line: { type: "none" }, rectRadius: 0.08 });
s.addShape(pres.shapes.OVAL, { x: 4.15, y: y + 0.23, w: 0.45, h: 0.45, fill: { color: C.white, transparency: 20 }, line: { type: "none" } });
s.addText(b.num, { x: 4.15, y: y + 0.23, w: 0.45, h: 0.45, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
s.addText(b.enzyme, { x: 4.7, y: y + 0.07, w: 5.5, h: 0.38, fontSize: 13, bold: true, color: C.white, margin: 0 });
s.addText(b.rxn, { x: 4.7, y: y + 0.44, w: 3.5, h: 0.32, fontSize: 11, color: C.teal, margin: 0 });
s.addText(b.note, { x: 4.7, y: y + 0.55, w: 8.0, h: 0.35, fontSize: 10, color: C.muted, italic: true, margin: 0 });
});
// Cori cycle note
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 6.38, w: 12.7, h: 0.72, fill: { color: C.yellow, transparency: 10 }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β
CORI CYCLE: Muscle (Glucose β Lactate) β Liver (Lactate β Glucose) | Cost: 4 net ATP to liver | Leucine & Lysine = purely KETOGENIC (cannot make glucose)", {
x: 0.4, y: 6.42, w: 12.5, h: 0.65, fontSize: 11, bold: true, color: C.textDark, margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 9 β GLYCOGEN METABOLISM
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "Glycogen Metabolism", "Synthesis & Breakdown β’ Liver (blood glucose) vs Muscle (fuel)");
highYieldTag(s, 11.5, 0.12);
// Synthesis side
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.3, w: 6.1, h: 0.42, fill: { color: "023E8A" }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("GLYCOGEN SYNTHESIS", { x: 0.3, y: 1.3, w: 6.1, h: 0.42, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
const syn = [
"G-6-P β G-1-P (Phosphoglucomutase)",
"G-1-P + UTP β UDP-Glucose (UDP-Glucose pyrophosphorylase)",
"UDP-Glucose + glycogen β extended chain (Glycogen synthase β
)",
"Branching enzyme creates Ξ±-1,6 branches every 8β10 residues",
];
syn.forEach((t, i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.82 + i * 0.85, w: 6.1, h: 0.72, fill: { color: C.cardBg }, line: { type: "none" }, rectRadius: 0.06 });
s.addText((i + 1) + ". " + t, { x: 0.45, y: 1.85 + i * 0.85, w: 5.8, h: 0.68, fontSize: 11, color: C.white, valign: "middle", margin: 0 });
});
// Breakdown side
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.8, y: 1.3, w: 6.2, h: 0.42, fill: { color: "B5451B" }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("GLYCOGEN BREAKDOWN", { x: 6.8, y: 1.3, w: 6.2, h: 0.42, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
const brk = [
"Glycogen phosphorylase cleaves Ξ±-1,4 bonds β G-1-P",
"Debranching enzyme handles Ξ±-1,6 branches β free glucose",
"G-1-P β G-6-P β Glucose (liver via G-6-Pase); Muscle uses G-6-P for glycolysis",
];
brk.forEach((t, i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.8, y: 1.82 + i * 0.85, w: 6.2, h: 0.72, fill: { color: C.cardBg }, line: { type: "none" }, rectRadius: 0.06 });
s.addText((i + 1) + ". " + t, { x: 6.95, y: 1.85 + i * 0.85, w: 6.0, h: 0.68, fontSize: 11, color: C.white, valign: "middle", margin: 0 });
});
// GSD table header
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 4.62, w: 12.7, h: 0.38, fill: { color: C.teal }, line: { type: "none" } });
s.addText("GLYCOGEN STORAGE DISEASES (GSDs) β Frequently Tested!", {
x: 0.3, y: 4.62, w: 12.7, h: 0.38, fontSize: 13, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0
});
const gsds = [
["Type I β Von Gierke", "Glucose-6-phosphatase", "Liver, Kidney", "Hypoglycemia, β lactate, hepatomegaly"],
["Type II β Pompe", "Acid maltase (lysosomal)", "Heart, Muscle", "Cardiomegaly, hypotonia; ONLY lysosomal GSD"],
["Type III β Cori", "Debranching enzyme", "Liver, Muscle", "Milder Von Gierke-like features"],
["Type V β McArdle", "Muscle phosphorylase", "Muscle only", "No lactate β in ischemic exercise test"],
];
const gsdRows = [
[{ text: "Disease", options: { bold: true, color: C.white, fill: { color: C.navy } } },
{ text: "Enzyme Deficient", options: { bold: true, color: C.white, fill: { color: C.navy } } },
{ text: "Organ", options: { bold: true, color: C.white, fill: { color: C.navy } } },
{ text: "Key Feature", options: { bold: true, color: C.white, fill: { color: C.navy } } }],
...gsds.map((row, i) => row.map(cell => ({ text: cell, options: { color: C.textDark, fill: { color: i % 2 === 0 ? "E8F4FD" : C.white }, fontSize: 10.5 } })))
];
s.addTable(gsdRows, { x: 0.3, y: 5.08, w: 12.7, h: 2.1, colW: [3.2, 3.2, 2.2, 4.1], border: { pt: 0.5, color: "CCCCCC" }, rowH: 0.48 });
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 10 β HMP SHUNT
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "HMP Shunt (Pentose Phosphate Pathway)", "Cytosol β’ Produces NADPH + Ribose-5-P β’ No ATP directly");
highYieldTag(s, 11.5, 0.12);
// Phase cards
const phases = [
{
title: "OXIDATIVE PHASE (Irreversible)",
color: "023E8A",
items: [
"G-6-P β 6-Phosphogluconolactone (G6PD β
rate-limiting)",
"6-Phosphogluconate β Ribulose-5-P + COβ",
"Generates 2 NADPH per glucose",
]
},
{
title: "NON-OXIDATIVE PHASE (Reversible)",
color: "1B4332",
items: [
"Interconverts sugar phosphates (C3βC7)",
"Transketolase β needs Thiamine (TPP)",
"Transaldolase β no cofactor",
]
}
];
phases.forEach((p, i) => {
const x = 0.3 + i * 6.5;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y: 1.3, w: 6.2, h: 0.42, fill: { color: p.color }, line: { type: "none" }, rectRadius: 0.07 });
s.addText(p.title, { x, y: 1.3, w: 6.2, h: 0.42, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
p.items.forEach((it, j) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y: 1.82 + j * 0.78, w: 6.2, h: 0.66, fill: { color: j % 2 === 0 ? C.cardBg : "1A2035" }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("β’ " + it, { x: x + 0.15, y: 1.85 + j * 0.78, w: 5.9, h: 0.62, fontSize: 12, color: C.white, valign: "middle", margin: 0 });
});
});
// NADPH functions
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 4.22, w: 12.7, h: 0.4, fill: { color: C.navy }, line: { type: "none" } });
s.addText("FUNCTIONS OF NADPH", { x: 0.3, y: 4.22, w: 12.7, h: 0.4, fontSize: 13, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0 });
const fns = [
["Antioxidant", "Regenerates reduced glutathione β protects RBCs from oxidative damage"],
["Fatty acid synthesis", "Required by fatty acid synthase"],
["Cholesterol synthesis", "HMG-CoA reductase pathway"],
["Cytochrome P450", "Drug metabolism in liver"],
["Respiratory burst", "NADPH oxidase in neutrophils β superoxide β kills bacteria"],
];
fns.forEach(([k, v], i) => {
const x = 0.3 + (i % 3) * 4.3;
const y = i < 3 ? 4.75 : 5.95;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: 4.0, h: 1.0, fill: { color: C.cardBg }, line: { color: C.teal, pt: 1 }, rectRadius: 0.08 });
s.addText(k, { x: x + 0.12, y: y + 0.06, w: 3.76, h: 0.38, fontSize: 12, bold: true, color: C.teal, margin: 0 });
s.addText(v, { x: x + 0.12, y: y + 0.42, w: 3.76, h: 0.52, fontSize: 10, color: C.white, margin: 0 });
});
// G6PD deficiency box
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 8.9, y: 4.75, w: 4.1, h: 2.2, fill: { color: C.red, transparency: 10 }, line: { type: "none" }, rectRadius: 0.1 });
s.addText("G6PD DEFICIENCY", { x: 8.9, y: 4.83, w: 4.1, h: 0.4, fontSize: 13, bold: true, color: C.white, align: "center", margin: 0 });
s.addText([
{ text: "β’ X-linked; most common enzyme deficiency\n", options: { color: C.white } },
{ text: "β’ Triggers: Primaquine, dapsone, sulfa drugs, fava beans\n", options: { color: C.white } },
{ text: "β’ Result: Hemolysis β Heinz bodies + bite cells\n", options: { color: C.white } },
{ text: "β’ Mechanism: β NADPH β β GSH β RBC oxidative damage", options: { color: C.muted } },
], { x: 9.05, y: 5.28, w: 3.85, h: 1.6, fontSize: 10.5, margin: 0, lineSpacingMultiple: 1.35 });
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 11 β FATTY ACID METABOLISM
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "Fatty Acid Metabolism", "Ξ²-Oxidation β’ Ketogenesis β’ Fatty Acid Synthesis");
highYieldTag(s, 11.5, 0.12);
// Beta-oxidation
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.3, w: 6.1, h: 0.4, fill: { color: "023E8A" }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("Ξ²-OXIDATION (Mitochondrial matrix)", { x: 0.3, y: 1.3, w: 6.1, h: 0.4, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
const betaItems = [
["Activation", "FA + CoA β Acyl-CoA (outer mitochondrial membrane; costs 2 ATP equivalents)"],
["Transport", "CPT-I β
Rate-limiting β carnitine shuttle; inhibited by malonyl-CoA"],
["Per cycle", "Acyl-CoA β (shorter by 2C) + Acetyl-CoA + FADHβ + NADH"],
["Palmitate (C16)", "7 cycles β 8 acetyl-CoA + 7 FADHβ + 7 NADH β ~106 net ATP"],
["Odd-chain FA", "β Propionyl-CoA β Succinyl-CoA (gluconeogenic via B12 pathway)"],
];
betaItems.forEach(([k, v], i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.82 + i * 0.78, w: 6.1, h: 0.68, fill: { color: C.cardBg }, line: { type: "none" }, rectRadius: 0.06 });
s.addText(k + ": ", { x: 0.45, y: 1.87 + i * 0.78, w: 1.5, h: 0.6, fontSize: 11, bold: true, color: C.teal, valign: "middle", margin: 0 });
s.addText(v, { x: 1.75, y: 1.87 + i * 0.78, w: 4.5, h: 0.6, fontSize: 10.5, color: C.white, valign: "middle", margin: 0 });
});
// Ketogenesis
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.7, y: 1.3, w: 6.3, h: 0.4, fill: { color: "B5451B" }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("KETOGENESIS β Liver mitochondria only", { x: 6.7, y: 1.3, w: 6.3, h: 0.4, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
const ketoItems = [
"Occurs in: Fasting, starvation, uncontrolled T1DM",
"2 Acetyl-CoA β Acetoacetyl-CoA β HMG-CoA β Acetoacetate",
"Rate-limiting enzyme: HMG-CoA synthase (mitochondrial)",
"Products: Acetoacetate, Ξ²-hydroxybutyrate, acetone",
"Liver CANNOT use ketones (lacks succinyl-CoA transferase)",
"Brain uses ketones after 2β3 days of fasting (spares glucose)",
"Used by: Heart, muscle, brain (starvation), kidney cortex",
];
ketoItems.forEach((it, i) => {
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.7, y: 1.82 + i * 0.65, w: 6.3, h: 0.56, fill: { color: i % 2 === 0 ? C.cardBg : "1A1020" }, line: { type: "none" }, rectRadius: 0.05 });
s.addText("β’ " + it, { x: 6.85, y: 1.85 + i * 0.65, w: 6.1, h: 0.52, fontSize: 10.5, color: C.white, valign: "middle", margin: 0 });
});
// Malonyl-CoA key note
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 6.4, w: 12.7, h: 0.72, fill: { color: C.yellow, transparency: 10 }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β
MALONYL-CoA (first committed step of FA synthesis by ACC) inhibits CPT-I β prevents FA transport into mitochondria β prevents Ξ²-oxidation when synthesizing FA", {
x: 0.4, y: 6.43, w: 12.5, h: 0.65, fontSize: 11, bold: true, color: C.textDark, margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 12 β UREA CYCLE + ETC
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Urea Cycle & Electron Transport Chain", "Nitrogen disposal + ATP generation");
// Urea Cycle
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.3, w: 6.0, h: 0.42, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("UREA CYCLE (Liver: mitochondria + cytosol)", { x: 0.3, y: 1.3, w: 6.0, h: 0.42, fontSize: 13, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0 });
const ureaCycle = [
{ step: "1", rxn: "NHβ + COβ β Carbamoyl-P", note: "CPS-I; mitochondria; N-acetylglutamate (NAG) activator", color: "023E8A" },
{ step: "2", rxn: "Carbamoyl-P + Ornithine β Citrulline", note: "Ornithine transcarbamoylase; exits to cytosol", color: "1B4332" },
{ step: "3", rxn: "Citrulline + Aspartate β Argininosuccinate", note: "Argininosuccinate synthetase; ATP used", color: "6A0572" },
{ step: "4", rxn: "Argininosuccinate β Arginine + Fumarate", note: "Fumarate enters TCA cycle (anaplerosis)", color: "B5451B" },
{ step: "5", rxn: "Arginine β Ornithine + Urea", note: "Arginase; ornithine recycled back into mitochondria", color: "7B2D00" },
];
ureaCycle.forEach((u, i) => {
const y = 1.82 + i * 0.88;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y, w: 6.0, h: 0.78, fill: { color: u.color }, line: { type: "none" }, rectRadius: 0.08 });
s.addShape(pres.shapes.OVAL, { x: 0.35, y: y + 0.17, w: 0.4, h: 0.4, fill: { color: C.white, transparency: 20 }, line: { type: "none" } });
s.addText(u.step, { x: 0.35, y: y + 0.17, w: 0.4, h: 0.4, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
s.addText(u.rxn, { x: 0.88, y: y + 0.05, w: 5.3, h: 0.36, fontSize: 11.5, bold: true, color: C.white, margin: 0 });
s.addText(u.note, { x: 0.88, y: y + 0.4, w: 5.3, h: 0.3, fontSize: 9.5, color: C.muted, italic: true, margin: 0 });
});
// ETC
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.6, y: 1.3, w: 6.4, h: 0.42, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("ELECTRON TRANSPORT CHAIN (ETC)", { x: 6.6, y: 1.3, w: 6.4, h: 0.42, fontSize: 13, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0 });
const etc = [
{ cx: "I", name: "NADH Dehydrogenase", carrier: "NADH β CoQ", inh: "Rotenone, Amobarbital", color: "023E8A" },
{ cx: "II", name: "Succinate DH", carrier: "FADHβ β CoQ", inh: "Malonate", color: "1B4332" },
{ cx: "III", name: "CoQ-Cyt c reductase", carrier: "CoQ β Cyt c", inh: "Antimycin A", color: "6A0572" },
{ cx: "IV", name: "Cytochrome c oxidase", carrier: "Cyt c β Oβ", inh: "Cyanide, CO, Azide β
", color: "B5451B" },
{ cx: "V", name: "ATP Synthase", carrier: "HβΊ gradient β ATP", inh: "Oligomycin", color: "7B2D00" },
];
etc.forEach((e, i) => {
const y = 1.82 + i * 0.88;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.6, y, w: 6.4, h: 0.78, fill: { color: e.color }, line: { type: "none" }, rectRadius: 0.08 });
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.65, y: y + 0.16, w: 0.55, h: 0.42, fill: { color: C.white, transparency: 20 }, line: { type: "none" }, rectRadius: 0.05 });
s.addText("CX " + e.cx, { x: 6.65, y: y + 0.16, w: 0.55, h: 0.42, fontSize: 8, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
s.addText(e.name, { x: 7.3, y: y + 0.05, w: 4.0, h: 0.36, fontSize: 11.5, bold: true, color: C.white, margin: 0 });
s.addText(e.carrier, { x: 7.3, y: y + 0.4, w: 2.5, h: 0.28, fontSize: 10, color: C.teal, margin: 0 });
s.addText("Inhibitor: " + e.inh, { x: 10.0, y: y + 0.38, w: 2.9, h: 0.32, fontSize: 10, color: C.red, italic: true, margin: 0 });
});
// Uncoupler note
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 6.38, w: 12.7, h: 0.75, fill: { color: C.yellow, transparency: 10 }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("β
UNCOUPLERS: Dissipate HβΊ gradient without ATP synthesis β heat. Examples: DNP (2,4-dinitrophenol), Thermogenin/UCP-1 (brown fat), Aspirin OD | NAG activates CPS-I β essential for urea cycle start", {
x: 0.4, y: 6.42, w: 12.5, h: 0.65, fontSize: 11, bold: true, color: C.textDark, margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 13 β MASTER TABLE: RATE-LIMITING ENZYMES
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "Rate-Limiting Enzymes β Master Summary", "Most commonly tested in NEET PG MCQs");
highYieldTag(s, 11.5, 0.12);
const rle = [
["Glycolysis", "PFK-1 (Phosphofructokinase-1)", "β AMP, F-2,6-bisP | β ATP, citrate", "023E8A"],
["TCA Cycle", "Isocitrate dehydrogenase", "β ADP, CaΒ²βΊ | β ATP, NADH", "1B4332"],
["Gluconeogenesis", "PEPCK (rate-limiting step)", "β glucagon | β insulin", "6A0572"],
["Glycogen synthesis", "Glycogen synthase", "β insulin, G-6-P | β glucagon, PKA", "7B2D00"],
["Glycogenolysis", "Glycogen phosphorylase", "β glucagon, epi, AMP | β insulin", "B5451B"],
["FA synthesis", "Acetyl-CoA carboxylase (ACC)", "β insulin, citrate | β glucagon, fatty acids", "023E8A"],
["Ξ²-Oxidation", "CPT-I (carnitine shuttle)", "Inhibited by malonyl-CoA (FA synthesis active)", "1B4332"],
["Ketogenesis", "HMG-CoA synthase (mitochondrial)", "β fasting, T1DM | β insulin", "6A0572"],
["HMP Shunt", "G6PD (Glucose-6-P DH)", "β NADPβΊ | X-linked; deficiency = hemolysis", "7B2D00"],
["Cholesterol synthesis", "HMG-CoA reductase", "β insulin | β glucagon, statins, cholesterol", "B5451B"],
["Urea cycle", "CPS-I (Carbamoyl phosphate synthetase I)", "β N-acetylglutamate (NAG)", "023E8A"],
["Pyrimidine synthesis", "Carbamoyl phosphate synthetase II", "Cytosol (diff from CPS-I which is mitochondrial)", "1B4332"],
];
const tableRows = [
[
{ text: "Pathway", options: { bold: true, color: C.white, fill: { color: C.teal, transparency: 10 } } },
{ text: "Rate-Limiting Enzyme", options: { bold: true, color: C.white, fill: { color: C.teal, transparency: 10 } } },
{ text: "Regulation", options: { bold: true, color: C.white, fill: { color: C.teal, transparency: 10 } } },
],
...rle.map((row, i) => row.slice(0, 3).map((cell, ci) => ({
text: cell,
options: {
color: ci === 1 ? C.teal : C.white,
bold: ci === 1,
fill: { color: i % 2 === 0 ? C.cardBg : "0F1E30" },
fontSize: 10.5
}
})))
];
s.addTable(tableRows, {
x: 0.3, y: 1.3, w: 12.7, h: 5.9,
colW: [2.6, 4.5, 5.6],
border: { pt: 0.5, color: "334455" },
rowH: 0.44,
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 14 β HORMONAL REGULATION
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.lightBg };
headerBar(s, "Hormonal Regulation of Metabolism", "Insulin vs Glucagon β The master switch");
highYieldTag(s, 11.5, 0.12);
const insulin = [
"β Glycolysis (β PFK-1, β PK)",
"β Glycogen synthesis (β Glycogen synthase)",
"β Fatty acid synthesis (β ACC, β FA synthase)",
"β Protein synthesis",
"β Gluconeogenesis (β PEPCK)",
"β Glycogenolysis",
"β Ketogenesis",
"β GLUT-4 insertion (muscle, adipose)",
];
const glucagon = [
"β Gluconeogenesis (β PEPCK)",
"β Glycogenolysis (β Glycogen phosphorylase)",
"β Ketogenesis (β HMG-CoA synthase)",
"β Fatty acid mobilization",
"β Glycolysis (β PFK-1, β PK via phosphorylation)",
"β Glycogen synthesis",
"β Fatty acid synthesis (β ACC)",
"Acts via cAMP β PKA cascade",
];
// Insulin panel
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.35, w: 6.1, h: 0.5, fill: { color: "023E8A" }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("INSULIN (Fed state / post-meal)", { x: 0.3, y: 1.35, w: 6.1, h: 0.5, fontSize: 15, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
insulin.forEach((item, i) => {
const isUp = item.startsWith("β");
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 1.98 + i * 0.6, w: 6.1, h: 0.52, fill: { color: i % 2 === 0 ? "E8F4FD" : C.white }, line: { type: "none" }, rectRadius: 0.05 });
s.addText(item, { x: 0.45, y: 2.01 + i * 0.6, w: 5.8, h: 0.48, fontSize: 12, color: isUp ? "023E8A" : C.red, bold: isUp, valign: "middle", margin: 0 });
});
// Glucagon panel
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.9, y: 1.35, w: 6.1, h: 0.5, fill: { color: "B5451B" }, line: { type: "none" }, rectRadius: 0.08 });
s.addText("GLUCAGON (Fasting / starvation)", { x: 6.9, y: 1.35, w: 6.1, h: 0.5, fontSize: 15, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
glucagon.forEach((item, i) => {
const isUp = item.startsWith("β");
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.9, y: 1.98 + i * 0.6, w: 6.1, h: 0.52, fill: { color: i % 2 === 0 ? "FFF0E8" : C.white }, line: { type: "none" }, rectRadius: 0.05 });
s.addText(item, { x: 7.05, y: 2.01 + i * 0.6, w: 5.8, h: 0.48, fontSize: 12, color: isUp ? "B5451B" : "023E8A", bold: isUp, valign: "middle", margin: 0 });
});
// F-2,6-bisP note
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 6.85, w: 6.1, h: 0.5, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("F-2,6-bisP: β PFK-1 (glycolysis) AND β FBPase-1 (gluconeogenesis)", {
x: 0.3, y: 6.85, w: 6.1, h: 0.5, fontSize: 11, bold: true, color: C.teal, align: "center", valign: "middle", margin: 0
});
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.9, y: 6.85, w: 6.1, h: 0.5, fill: { color: C.navy }, line: { type: "none" }, rectRadius: 0.06 });
s.addText("Glucagon β β cAMP β β PKA β phosphorylation inactivates glycolytic enzymes", {
x: 6.9, y: 6.85, w: 6.1, h: 0.5, fontSize: 11, bold: true, color: C.orange, align: "center", valign: "middle", margin: 0
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 15 β NEET PG MUST-KNOW FACTS
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
headerBar(s, "NEET PG Must-Know Facts & MCQ Tips", "Quick revision before exam");
highYieldTag(s, 11.5, 0.12);
const facts = [
{ num: "1", fact: "PDH reaction is IRREVERSIBLE β fat cannot make glucose (Acetyl-CoA cannot enter gluconeogenesis)", color: "023E8A" },
{ num: "2", fact: "Only purely KETOGENIC AAs = Leucine & Lysine ('LL' β no glucose from these)", color: "1B4332" },
{ num: "3", fact: "Muscle has NO Glucose-6-phosphatase β muscle glycogen CANNOT contribute to blood glucose", color: "6A0572" },
{ num: "4", fact: "Hexokinase (tissues) vs Glucokinase (liver/Ξ²-cells): GK not inhibited by G-6-P, induced by insulin", color: "B5451B" },
{ num: "5", fact: "Pompe disease (Type II GSD) = ONLY lysosomal GSD; cardiomegaly; acid maltase deficiency", color: "7B2D00" },
{ num: "6", fact: "McArdle disease (Type V GSD) = muscle phosphorylase; NO lactate rise with ischemic exercise test", color: "023E8A" },
{ num: "7", fact: "Cyanide/CO β inhibit Complex IV β histotoxic hypoxia (cells cannot use Oβ)", color: "B5451B" },
{ num: "8", fact: "Thiamine B1 deficiency β blocks PDH + Ξ±-KG DH + Transketolase β lactic acidosis, Wernicke's", color: "1B4332" },
{ num: "9", fact: "G6PD deficiency triggers: Primaquine, dapsone, sulfonamides, fava beans, infections", color: "6A0572" },
{ num: "10", fact: "Malonyl-CoA (FA synthesis) inhibits CPT-I β prevents futile FA synthesis + oxidation cycle", color: "7B2D00" },
];
facts.forEach((f, i) => {
const col = i < 5 ? 0 : 1;
const row = i % 5;
const x = 0.3 + col * 6.5;
const y = 1.35 + row * 1.12;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: 6.2, h: 1.0, fill: { color: f.color }, line: { type: "none" }, rectRadius: 0.1 });
s.addShape(pres.shapes.OVAL, { x: x + 0.1, y: y + 0.25, w: 0.48, h: 0.48, fill: { color: C.yellow }, line: { type: "none" } });
s.addText(f.num, { x: x + 0.1, y: y + 0.25, w: 0.48, h: 0.48, fontSize: 14, bold: true, color: C.textDark, align: "center", valign: "middle", margin: 0 });
s.addText(f.fact, { x: x + 0.7, y, w: 5.4, h: 1.0, fontSize: 11, color: C.white, valign: "middle", margin: 0, lineSpacingMultiple: 1.2 });
});
}
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// SLIDE 16 β END / THANK YOU
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
{
const s = pres.addSlide();
s.background = { color: C.navy };
s.addShape(pres.shapes.OVAL, { x: 9.5, y: -1, w: 5, h: 5, fill: { color: C.teal, transparency: 85 }, line: { type: "none" } });
s.addShape(pres.shapes.OVAL, { x: -1.5, y: 4.0, w: 4.5, h: 4.5, fill: { color: C.green, transparency: 85 }, line: { type: "none" } });
s.addShape(pres.shapes.RECTANGLE, { x: 1.5, y: 2.2, w: 0.12, h: 2.5, fill: { color: C.teal }, line: { type: "none" } });
s.addText("Best of Luck!", { x: 1.75, y: 2.0, w: 10, h: 1.0, fontSize: 42, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText("Metabolic Pathways β NEET PG Quick Revision", { x: 1.75, y: 2.95, w: 10, h: 0.55, fontSize: 18, color: C.teal, italic: true, margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: 1.75, y: 3.55, w: 6.0, h: 0.05, fill: { color: C.orange }, line: { type: "none" } });
s.addText("Slides covered: Glycolysis β’ TCA Cycle β’ PDH β’ Gluconeogenesis β’ Glycogen\nHMP Shunt β’ Fatty Acids β’ Ketogenesis β’ Urea Cycle β’ ETC", {
x: 1.75, y: 3.7, w: 10, h: 0.9, fontSize: 13, color: C.muted, margin: 0, lineSpacingMultiple: 1.4
});
s.addText("Sources: Lippincott Illustrated Reviews: Biochemistry 8e | Harper's Illustrated Biochemistry 32e", {
x: 1.75, y: 6.9, w: 11, h: 0.35, fontSize: 10, color: C.muted, italic: true, margin: 0
});
}
// βββ WRITE FILE ββββββββββββββββββββββββββββββββββββββββββββββββββββ
pres.writeFile({ fileName: "/home/daytona/workspace/metabolic-pptx/Metabolic_Pathways_NEET_PG.pptx" })
.then(() => console.log("DONE: Metabolic_Pathways_NEET_PG.pptx created successfully"))
.catch(err => { console.error("ERROR:", err); process.exit(1); });