inflammation pathology ppt

Reading File
Reading File
Reading File
Finding Sources
I can see Robbins & Kumar Basic Pathology has inflammation content - that's the key pathology textbook. Let me pull content from it and other relevant sections.
Finding Sources
Finding Sources
Now let me read the key inflammation content from Robbins Basic Pathology:
Reading File
Finding Sources
Reading File
Reading File
Reading File
I have enough content to build a comprehensive, high-quality PPT. Let me now create it.
Running Command

mkdir -p /home/daytona/workspace/inflammation-ppt && ls /home/daytona/workspace/inflammation-ppt

Writing File

~/inflammation-ppt/create_ppt.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Inflammation - Pathology";
pres.author = "Orris Medical";

// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const C = {
  bg_dark:   "12213A",   // deep navy – title / section dividers
  bg_mid:    "1A3057",   // mid-navy
  bg_light:  "F4F7FB",   // near-white – content slides
  accent1:   "E84545",   // red – inflammatory highlights
  accent2:   "F5A623",   // amber – warnings / outcomes
  accent3:   "2EC4B6",   // teal – chronic / resolution
  white:     "FFFFFF",
  text_dark: "1A1A2E",
  text_mid:  "2D3561",
  text_light:"B8C9E1",
  green:     "27AE60",
  purple:    "8E44AD",
};

// ─── HELPERS ────────────────────────────────────────────────────────────────
function titleSlide(pres) {
  const s = pres.addSlide();
  // dark full-bleed background
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_dark} });
  // red accent bar
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.08, h:"100%", fill:{color: C.accent1} });
  // subtle grid lines
  for(let i=1;i<6;i++) s.addShape(pres.ShapeType.rect, { x:0, y:i*0.94, w:"100%", h:0.005, fill:{color:"1D3560"}, line:{color:"1D3560"} });

  s.addText("INFLAMMATION", {
    x:0.5, y:1.0, w:9, h:1.4,
    fontSize:60, bold:true, color:C.white,
    fontFace:"Calibri", align:"left", charSpacing:8
  });
  s.addText("PATHOLOGY", {
    x:0.5, y:2.3, w:6, h:0.7,
    fontSize:28, bold:false, color:C.accent1,
    fontFace:"Calibri", align:"left", charSpacing:6
  });
  s.addShape(pres.ShapeType.rect, { x:0.5, y:3.1, w:5, h:0.04, fill:{color:C.accent2} });
  s.addText("A response of vascularized tissues to infection and damage\nthat mobilises host defence to eliminate offending agents.", {
    x:0.5, y:3.25, w:8.5, h:0.9,
    fontSize:16, color:C.text_light, italic:true, fontFace:"Calibri", align:"left"
  });
  s.addText("Source: Robbins & Kumar Basic Pathology", {
    x:0.5, y:5.1, w:8, h:0.3,
    fontSize:11, color:"4A6D9A", fontFace:"Calibri", align:"left"
  });
}

function sectionDivider(pres, number, title, subtitle) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_mid} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.08, fill:{color: C.accent1} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:2.6, h:"100%", fill:{color:"162A4A"} });
  s.addText(number, {
    x:0.1, y:1.8, w:2.4, h:2.0,
    fontSize:90, bold:true, color:C.accent1,
    fontFace:"Calibri", align:"center", valign:"middle"
  });
  s.addText(title, {
    x:2.9, y:1.5, w:6.8, h:1.3,
    fontSize:36, bold:true, color:C.white,
    fontFace:"Calibri", align:"left"
  });
  s.addText(subtitle, {
    x:2.9, y:2.8, w:6.8, h:1.2,
    fontSize:18, color:C.text_light, italic:true,
    fontFace:"Calibri", align:"left"
  });
}

function contentSlide(pres, title, bullets, opts={}) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  // top bar
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.04, fill:{color: opts.accent||C.accent1} });
  s.addText(title, {
    x:0.4, y:0.05, w:9.2, h:0.62,
    fontSize:22, bold:true, color:C.white,
    fontFace:"Calibri", align:"left", valign:"middle", margin:0
  });
  // bullet items
  const items = bullets.map((b, i) => {
    if(typeof b === "string") return { text: b, options:{ bullet:{type:"bullet"}, breakLine: i<bullets.length-1, fontSize:17, color:C.text_dark, fontFace:"Calibri" } };
    return { text: b.text, options:{ bullet:{type:"bullet"}, breakLine: i<bullets.length-1, fontSize: b.size||17, color: b.color||C.text_dark, bold: b.bold||false, fontFace:"Calibri", indentLevel: b.indent||0 } };
  });
  s.addText(items, { x:0.5, y:0.9, w:9, h:4.55, valign:"top" });
  return s;
}

function twoColumnSlide(pres, title, leftTitle, leftItems, rightTitle, rightItems, accentL, accentR) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.04, fill:{color: accentL||C.accent1} });
  s.addText(title, { x:0.4, y:0.05, w:9.2, h:0.62, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });

  // left column
  s.addShape(pres.ShapeType.rect, { x:0.3, y:0.95, w:4.4, h:4.5, fill:{color:C.white}, line:{color:"D0DCF0",pt:1} });
  s.addShape(pres.ShapeType.rect, { x:0.3, y:0.95, w:4.4, h:0.42, fill:{color: accentL||C.accent1} });
  s.addText(leftTitle, { x:0.35, y:0.97, w:4.3, h:0.38, fontSize:15, bold:true, color:C.white, fontFace:"Calibri", margin:4 });
  const lItems = leftItems.map((b,i)=>({ text:b.text||b, options:{ bullet:{type:"bullet"}, breakLine:i<leftItems.length-1, fontSize:15, color:C.text_dark, fontFace:"Calibri", bold:b.bold||false } }));
  s.addText(lItems, { x:0.35, y:1.42, w:4.3, h:3.9, valign:"top" });

  // right column
  s.addShape(pres.ShapeType.rect, { x:5.3, y:0.95, w:4.4, h:4.5, fill:{color:C.white}, line:{color:"D0DCF0",pt:1} });
  s.addShape(pres.ShapeType.rect, { x:5.3, y:0.95, w:4.4, h:0.42, fill:{color: accentR||C.accent2} });
  s.addText(rightTitle, { x:5.35, y:0.97, w:4.3, h:0.38, fontSize:15, bold:true, color:C.white, fontFace:"Calibri", margin:4 });
  const rItems = rightItems.map((b,i)=>({ text:b.text||b, options:{ bullet:{type:"bullet"}, breakLine:i<rightItems.length-1, fontSize:15, color:C.text_dark, fontFace:"Calibri", bold:b.bold||false } }));
  s.addText(rItems, { x:5.35, y:1.42, w:4.3, h:3.9, valign:"top" });
}

function imageSlide(pres, title, imageUrl, caption, notes) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:"0F1B2D"} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.62, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.62, w:"100%", h:0.04, fill:{color:C.accent1} });
  s.addText(title, { x:0.4, y:0.05, w:9.2, h:0.56, fontSize:20, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });
  // image
  s.addImage({ path: imageUrl, x:2.5, y:0.8, w:5, h:3.5 });
  s.addText(caption, { x:0.4, y:4.45, w:9.2, h:0.9, fontSize:14, color:C.text_light, italic:true, fontFace:"Calibri", align:"center" });
  if(notes) s.addNotes(notes);
  return s;
}

function tableSlide(pres, title, headers, rows, accent) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.04, fill:{color: accent||C.accent3} });
  s.addText(title, { x:0.4, y:0.05, w:9.2, h:0.62, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });

  const tableRows = [
    headers.map(h => ({ text: h, options: { bold:true, color:C.white, fill: accent||C.accent3, align:"center", fontSize:14 } })),
    ...rows.map(row => row.map(cell => ({ text: cell, options: { color:C.text_dark, fontSize:13, align:"left" } })))
  ];
  s.addTable(tableRows, { x:0.3, y:0.88, w:9.4, colW: headers.map(()=>9.4/headers.length), rowH:0.45, border:{pt:0.5, color:"C8D8F0"}, fill:{color:C.white}, fontFace:"Calibri" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE CREATION
// ═══════════════════════════════════════════════════════════════════════════

// 1. TITLE SLIDE
titleSlide(pres);

// 2. OVERVIEW / AGENDA
contentSlide(pres, "Overview", [
  { text:"01  Introduction & Definition of Inflammation", bold:true, color:C.accent1 },
  "02  Acute Inflammation",
  { text:"     • Vascular changes  •  Leukocyte recruitment  •  Phagocytosis", indent:1, color:"555555" },
  { text:"03  Mediators of Inflammation", bold:true, color:C.accent1 },
  "     • Vasoactive amines  •  Arachidonic acid metabolites  •  Cytokines  •  Complement",
  { text:"04  Morphologic Patterns of Acute Inflammation", bold:true, color:C.accent1 },
  "05  Outcomes of Acute Inflammation",
  { text:"06  Chronic Inflammation & Granulomatous Inflammation", bold:true, color:C.accent3 },
  "07  Systemic Effects of Inflammation",
  { text:"08  Summary & Key Points", bold:true, color:C.accent2 },
], { accent: C.accent2 });

// ─── SECTION 1: INTRODUCTION ─────────────────────────────────────────────
sectionDivider(pres, "01", "Introduction", "Definition, purpose, and cardinal signs of inflammation");

contentSlide(pres, "What is Inflammation?", [
  { text:"Definition (Robbins & Kumar):", bold:true, color:C.accent1 },
  '"A response of vascularized tissues to infections and tissue damage that brings cells and molecules of host defence from the circulation to the sites where they are needed."',
  "",
  { text:"Purpose:", bold:true, color:C.text_mid },
  "Eliminate the offending agent (microbe, toxin, necrotic tissue)",
  "Contain and confine the damage",
  "Set the stage for tissue repair",
  "",
  { text:"Two forms:", bold:true, color:C.text_mid },
  { text:"Acute inflammation  – rapid onset (min to days), neutrophil-predominant", color:C.accent1 },
  { text:"Chronic inflammation – slower onset (days to years), lymphocytes & macrophages", color:C.accent3 },
]);

contentSlide(pres, "Cardinal Signs of Inflammation (Celsus & Virchow)", [
  { text:"Rubor   – Redness", bold:true, color:C.accent1 },
  "  Caused by vasodilation and increased blood flow",
  { text:"Calor   – Heat", bold:true, color:C.accent2 },
  "  Due to vasodilation and hyperaemia",
  { text:"Tumor   – Swelling", bold:true, color:C.text_mid },
  "  Due to increased vascular permeability and oedema",
  { text:"Dolor   – Pain", bold:true, color:C.purple },
  "  Mediated by prostaglandins, bradykinin acting on nerve endings",
  { text:"Functio laesa – Loss of function", bold:true, color:C.text_mid },
  "  Consequence of pain and swelling (added by Virchow)",
], { accent: C.accent2 });

// ─── SECTION 2: ACUTE INFLAMMATION ──────────────────────────────────────
sectionDivider(pres, "02", "Acute Inflammation", "Vascular reactions, leukocyte recruitment, and phagocytosis");

contentSlide(pres, "Acute Inflammation – Three Major Components", [
  { text:"1.  Dilation of small vessels", bold:true, color:C.accent1 },
  "    → leads to increased blood flow (erythema and warmth)",
  "",
  { text:"2.  Increased permeability of microvasculature", bold:true, color:C.accent1 },
  "    → plasma proteins escape → oedema (exudate formation)",
  "    → Exudate: high protein, cellular debris (implies increased permeability)",
  "    → Transudate: low protein, osmotic/hydrostatic imbalance (no inflammation)",
  "",
  { text:"3.  Emigration of leukocytes from microcirculation", bold:true, color:C.accent1 },
  "    → especially neutrophils in early phase",
  "    → Reactions occur mainly in postcapillary venules",
]);

contentSlide(pres, "Vascular Changes in Acute Inflammation", [
  { text:"Vasodilation:", bold:true, color:C.accent1 },
  "• Earliest reaction; produces redness (rubor) and warmth (calor)",
  "• Key mediator: Histamine (from mast cells)",
  "• Also mediated by NO, bradykinin, prostaglandins",
  "",
  { text:"Increased Vascular Permeability:", bold:true, color:C.accent2 },
  "• Principal mechanism: contraction of endothelial cells → interendothelial gaps",
  "• Histamine, bradykinin, leukotrienes, substance P responsible",
  "• Occurs rapidly (15-30 min) after mediator exposure",
  "• Burns: direct endothelial injury → sustained leakage",
  "",
  { text:"Result: Exudate formation, oedema, increased blood viscosity (stasis)", color:C.text_mid, bold:true },
]);

contentSlide(pres, "Leukocyte Recruitment – Steps", [
  { text:"1. Margination", bold:true, color:C.accent1 },
  "   Leukocytes move to periphery of vessel (due to slowing of blood flow)",
  { text:"2. Rolling", bold:true, color:C.accent1 },
  "   Mediated by selectins (P-selectin, E-selectin on endothelium; L-selectin on leukocytes)",
  { text:"3. Adhesion", bold:true, color:C.accent1 },
  "   Firm adhesion via integrins (LFA-1, Mac-1) binding to ICAM-1 on endothelium",
  "   TNF & IL-1 upregulate ICAM-1 and E-selectin",
  { text:"4. Transmigration (Diapedesis)", bold:true, color:C.accent1 },
  "   Leukocytes crawl and squeeze between endothelial cells (PECAM-1 / CD31)",
  { text:"5. Chemotaxis", bold:true, color:C.accent1 },
  "   Movement along a chemical gradient toward site of injury",
  "   Chemotactic agents: bacterial products, C5a, LTB4, IL-8 (CXCL8)",
]);

contentSlide(pres, "Phagocytosis & Killing", [
  { text:"Recognition & Attachment:", bold:true, color:C.accent1 },
  "• Enhanced by opsonisation – coating with IgG, C3b",
  "• Receptors: Fc receptors (for IgG), complement receptors (CR1, CR3)",
  "",
  { text:"Engulfment:", bold:true, color:C.accent2 },
  "• Cytoplasmic pseudopods extend around particle",
  "• Phagosome formed → fuses with lysosome → phagolysosome",
  "",
  { text:"Killing & Degradation:", bold:true, color:C.accent3 },
  "• Oxygen-dependent: Reactive oxygen species (ROS) via NADPH oxidase",
  "  – Superoxide (O₂⁻) → H₂O₂ → HOCl (via myeloperoxidase)",
  "• Oxygen-independent: Lysozyme, defensins, lactoferrin, elastase (in granules)",
  "",
  { text:"Leukocyte-mediated tissue injury: bystander damage by ROS and lysosomal enzymes", color:C.accent1, bold:true },
]);

// ─── SECTION 3: MEDIATORS ────────────────────────────────────────────────
sectionDivider(pres, "03", "Mediators of Inflammation", "Chemical signals that orchestrate the inflammatory response");

contentSlide(pres, "Vasoactive Amines & Arachidonic Acid Metabolites", [
  { text:"Histamine (mast cells, basophils, platelets):", bold:true, color:C.accent1 },
  "• Causes vasodilation and increased vascular permeability",
  "• First mediator released in acute inflammation",
  "",
  { text:"Serotonin (5-HT) – platelets:", bold:true, color:C.accent2 },
  "• Similar effects to histamine",
  "",
  { text:"Arachidonic Acid (AA) pathway:", bold:true, color:C.text_mid },
  "• COX pathway → Prostaglandins (PGE2, PGI2) + Thromboxane A2",
  "  – PGE2 & PGI2: vasodilation, increased permeability, pain, fever",
  "  – TxA2: vasoconstriction, platelet aggregation",
  "• Lipoxygenase pathway → Leukotrienes",
  "  – LTB4: potent neutrophil chemotaxis",
  "  – LTC4, LTD4, LTE4: bronchospasm, vasoconstriction (important in asthma)",
  "  – Lipoxins: anti-inflammatory (inhibit neutrophil recruitment)",
  "• NSAIDs → inhibit COX; Corticosteroids → inhibit phospholipase A2",
], { accent: C.accent2 });

contentSlide(pres, "Cytokines, Chemokines & Complement", [
  { text:"TNF and IL-1 (key pro-inflammatory cytokines):", bold:true, color:C.accent1 },
  "• Produced by macrophages, dendritic cells, mast cells, T cells",
  "• Upregulate endothelial adhesion molecules (E-selectin, ICAM-1, VCAM-1)",
  "• Induce fever via hypothalamus (PGE2 as second messenger)",
  "• Stimulate acute-phase protein synthesis in liver",
  "",
  { text:"Chemokines (IL-8/CXCL8, MCP-1):", bold:true, color:C.accent2 },
  "• Stimulate leukocyte migration along concentration gradients",
  "• CXC chemokines act mainly on neutrophils; CC chemokines on monocytes/lymphocytes",
  "",
  { text:"Complement System:", bold:true, color:C.accent3 },
  "• C3a, C5a (anaphylatoxins): mast cell degranulation, increased permeability",
  "• C5a: potent chemotaxis for neutrophils; activates macrophages",
  "• C3b: opsonin for phagocytosis",
  "• MAC (C5b-9): direct lysis of microbes",
]);

tableSlide(pres, "Key Inflammatory Mediators – Summary",
  ["Mediator", "Source", "Key Actions"],
  [
    ["Histamine", "Mast cells, basophils", "Vasodilation, ↑ permeability"],
    ["PGE2 / PGI2", "Arachidonic acid (COX)", "Vasodilation, pain, fever"],
    ["TxA2", "Platelets (AA-COX)", "Vasoconstriction, platelet aggregation"],
    ["LTB4", "Neutrophils, macrophages (lipoxygenase)", "Neutrophil chemotaxis"],
    ["LTC4/D4/E4", "Mast cells (lipoxygenase)", "Bronchospasm, ↑ permeability"],
    ["TNF & IL-1", "Macrophages, mast cells", "Adhesion molecules, fever, acute phase"],
    ["IL-8 (CXCL8)", "Macrophages, endothelium", "Neutrophil chemotaxis"],
    ["C3b", "Complement", "Opsonisation"],
    ["C3a / C5a", "Complement", "Mast cell degranulation, chemotaxis"],
    ["C5b-9 (MAC)", "Complement", "Microbial lysis"],
  ],
  C.accent3
);

// ─── SECTION 4: MORPHOLOGIC PATTERNS ────────────────────────────────────
sectionDivider(pres, "04", "Morphologic Patterns", "Serous, fibrinous, purulent, and ulcerative inflammation");

twoColumnSlide(pres,
  "Morphologic Patterns of Acute Inflammation",
  "Serous Inflammation",
  [
    { text:"Watery, protein-poor effusion", bold:false },
    "Derived from plasma or mesothelial secretion",
    "Example: blister fluid (skin burn)",
    "Example: pleural effusion in early TB",
    "No significant cellular infiltrate",
    "Reversible with treatment",
  ],
  "Fibrinous Inflammation",
  [
    { text:"Large molecules (fibrinogen) escape → fibrin deposits", bold:false },
    "Indicates severe vascular injury",
    "Example: fibrinous pericarditis ('bread-and-butter' pericarditis)",
    "Example: fibrinous pleuritis",
    "Resolution: fibrinolysis OR organisation → scarring",
    "Organisation can obliterate pericardial space",
  ],
  C.accent2, C.accent1
);

contentSlide(pres, "Purulent (Suppurative) Inflammation & Abscess", [
  { text:"Purulent Inflammation:", bold:true, color:C.accent1 },
  "• Production of pus: neutrophils + liquefied necrotic cells + oedema fluid",
  "• Caused by pyogenic bacteria (e.g., Staphylococcus, Streptococcus)",
  "• Example: Acute appendicitis, bacterial pneumonia",
  "",
  { text:"Abscess:", bold:true, color:C.accent1 },
  "• Localised collection of pus within a tissue/organ/confined space",
  "• Central region: necrotic leukocytes and tissue cells",
  "• Rim: preserved neutrophils (inner), vascular congestion + fibroblasts (outer)",
  "• Walled off by connective tissue over time",
  "",
  { text:"Ulcer:", bold:true, color:C.accent2 },
  "• Local defect/excavation of surface epithelium or organ surface",
  "• Caused by sloughing of necrotic tissue",
  "• Example: peptic ulcer, diabetic foot ulcer",
]);

// ─── SECTION 5: OUTCOMES ─────────────────────────────────────────────────
sectionDivider(pres, "05", "Outcomes of Acute Inflammation", "Resolution, abscess, fibrosis, or progression to chronic");

contentSlide(pres, "Outcomes of Acute Inflammation", [
  { text:"1. Resolution (Complete Restoration):", bold:true, color:C.green },
  "   • Occurs when injury is limited and the tissue can regenerate",
  "   • Oedema resorbed via lymphatics; neutrophils undergo apoptosis",
  "   • Macrophages clear debris → normal architecture restored",
  "",
  { text:"2. Healing by Fibrosis (Scarring):", bold:true, color:C.accent2 },
  "   • Occurs when injury is severe or tissue cannot regenerate",
  "   • Fibroblast proliferation + collagen deposition → scar",
  "",
  { text:"3. Abscess Formation:", bold:true, color:C.accent1 },
  "   • Pyogenic infections → loculated pus cavity",
  "",
  { text:"4. Progression to Chronic Inflammation:", bold:true, color:C.accent3 },
  "   • Offending agent not eliminated (e.g., TB, parasites, autoimmune)",
  "   • Shift from neutrophils to macrophages/lymphocytes",
], { accent: C.green });

// ─── SECTION 6: CHRONIC INFLAMMATION ────────────────────────────────────
sectionDivider(pres, "06", "Chronic Inflammation", "Cells, causes, and granulomatous inflammation");

contentSlide(pres, "Chronic Inflammation – Overview & Causes", [
  { text:"Definition:", bold:true, color:C.accent3 },
  "Inflammation of prolonged duration (weeks to years) in which active inflammation, tissue destruction, and healing occur simultaneously.",
  "",
  { text:"Causes:", bold:true, color:C.accent3 },
  "1. Persistent infections – organisms resistant to phagocytosis (TB, fungi, parasites)",
  "2. Immune-mediated diseases – autoimmune (RA, SLE, IBD, MS)",
  "3. Prolonged exposure to toxic agents – silica (silicosis), cigarette smoke, atherosclerosis",
  "",
  { text:"Key cells of chronic inflammation:", bold:true, color:C.text_mid },
  "• Macrophages (dominant) – produce cytokines (TNF, IL-1, IL-12), ROS, tissue factors",
  "• Lymphocytes – T cells activate macrophages; B cells produce antibodies",
  "• Plasma cells – antibody production",
  "• Eosinophils – parasitic infections and IgE-mediated allergic reactions",
  "• Mast cells – in connective tissue, IgE-mediated responses",
], { accent: C.accent3 });

contentSlide(pres, "Role of Macrophages in Chronic Inflammation", [
  { text:"Central cell of chronic inflammation", bold:true, color:C.accent3 },
  "• Derived from blood monocytes (circulate 1-3 days, then enter tissues)",
  "• Activated by: IFN-γ (from Th1 cells), microbial products, foreign substances",
  "",
  { text:"Products of activated macrophages:", bold:true, color:C.text_mid },
  "• Proteases (collagenase, elastase) → tissue destruction",
  "• ROS, NO → microbial killing (and bystander injury)",
  "• Growth factors (TGF-β, VEGF, PDGF) → tissue repair & fibrosis",
  "• Cytokines (TNF, IL-1, IL-6, IL-12, IFN-α/β) → perpetuate inflammation",
  "• Arachidonic acid metabolites → vasoactive effects",
  "",
  { text:"M1 macrophages:", bold:true, color:C.accent1 },
  "  Classically activated; microbicidal; pro-inflammatory",
  { text:"M2 macrophages:", bold:true, color:C.accent3 },
  "  Alternatively activated; anti-inflammatory; promote repair",
], { accent: C.accent3 });

contentSlide(pres, "Granulomatous Inflammation", [
  { text:"Definition:", bold:true, color:C.accent3 },
  "A pattern of chronic inflammation characterised by aggregates of activated macrophages (epithelioid macrophages) ± multinucleated giant cells.",
  "",
  { text:"Formation:", bold:true, color:C.text_mid },
  "• Occurs when macrophages fail to eliminate the inciting agent",
  "• Macrophages → epithelioid cells (flattened, pale cytoplasm)",
  "• Epithelioid cells fuse → Langhans giant cells (nuclei at periphery)",
  "",
  { text:"Types of granulomas:", bold:true, color:C.accent2 },
  { text:"Caseating granuloma (TB):", bold:true, color:C.accent1 },
  "  Necrotic centre resembling cheese; indicates T-cell mediated immunity",
  { text:"Non-caseating granuloma (Sarcoidosis, Crohn's):", bold:true, color:C.accent3 },
  "  No central necrosis",
  "",
  { text:"Common causes: TB, leprosy, syphilis, sarcoidosis, Crohn's disease, fungal infections, schistosomiasis, foreign body reaction", color:C.text_mid },
], { accent: C.accent3 });

// ─── SECTION 7: SYSTEMIC EFFECTS ────────────────────────────────────────
sectionDivider(pres, "07", "Systemic Effects", "Fever, acute-phase proteins, and leukocytosis");

contentSlide(pres, "Systemic Effects of Inflammation (Acute-Phase Response)", [
  { text:"Fever:", bold:true, color:C.accent1 },
  "• Induced by exogenous pyrogens (LPS) → macrophages release IL-1, TNF, IL-6",
  "• These cytokines stimulate PGE2 production in hypothalamus → raises temperature set point",
  "• NSAIDs reduce fever by blocking COX and PGE2 synthesis",
  "",
  { text:"Acute-Phase Proteins (liver synthesis stimulated by IL-6, IL-1, TNF):", bold:true, color:C.accent2 },
  "• C-Reactive Protein (CRP): opsonin; activates complement",
  "• Fibrinogen: ↑ ESR (causes RBC rouleaux formation)",
  "• Serum Amyloid A (SAA): replaces HDL apoprotein",
  "• Complement proteins, hepcidin",
  "",
  { text:"Other systemic effects:", bold:true, color:C.text_mid },
  "• Leukocytosis: neutrophilia (bacterial infection), lymphocytosis (viral), eosinophilia (allergy/parasites)",
  "• Leukemoid reaction: extreme leukocytosis (>40,000/µL)",
  "• Tachycardia, hypertension, decreased sweating",
  "• Severe/prolonged: septic shock, anorexia, somnolence, IL-6 → cachexia",
], { accent: C.accent2 });

// ─── SECTION 8: SUMMARY ──────────────────────────────────────────────────
sectionDivider(pres, "08", "Summary & Key Points", "High-yield revision for exams");

contentSlide(pres, "High-Yield Summary – Acute Inflammation", [
  { text:"REDNESS + HEAT + SWELLING + PAIN + LOSS OF FUNCTION", bold:true, color:C.accent1 },
  "",
  "• Vascular events: vasodilation → erythema/warmth; ↑ permeability → oedema/exudate",
  "• Main early cell: NEUTROPHIL (polymorphonuclear leukocyte)",
  "• Chemotaxis: C5a, LTB4, IL-8, bacterial products",
  "• Opsonins: IgG (Fc receptor), C3b (complement receptor)",
  "• Killing: ROS (NADPH oxidase), HOCl (myeloperoxidase), defensins",
  "",
  { text:"Key mediators:", bold:true, color:C.accent2 },
  "• Histamine – immediate vasodilation/permeability",
  "• PGE2 – pain + fever; inhibited by NSAIDs",
  "• LTB4 – neutrophil chemotaxis",
  "• TNF + IL-1 – adhesion molecules + fever + acute-phase response",
  "• C5a – chemotaxis + anaphylatoxin",
], { accent: C.accent1 });

contentSlide(pres, "High-Yield Summary – Chronic & Granulomatous Inflammation", [
  { text:"Main cell of chronic inflammation: MACROPHAGE", bold:true, color:C.accent3 },
  "  Activated by IFN-γ (Th1 cells)",
  "",
  { text:"Main cell of granuloma: EPITHELIOID MACROPHAGE (+ Langhans giant cells)", bold:true, color:C.accent3 },
  "",
  { text:"Caseating granuloma → TB (classic)", bold:true, color:C.accent1 },
  { text:"Non-caseating granuloma → Sarcoidosis, Crohn's disease, foreign body", bold:true, color:C.accent2 },
  "",
  { text:"Systemic features:", bold:true, color:C.text_mid },
  "• Fever: IL-1, TNF, IL-6 → PGE2 → hypothalamus reset",
  "• CRP, fibrinogen ↑ → useful clinical markers",
  "• Leukocytosis: neutrophilia (bacteria), lymphocytosis (virus)",
  "",
  { text:"Outcomes of acute inflammation: Resolution → Abscess → Fibrosis → Chronic", bold:true, color:C.accent2 },
], { accent: C.accent3 });

// CLOSING SLIDE
const closing = pres.addSlide();
closing.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_dark} });
closing.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.08, h:"100%", fill:{color: C.accent3} });
closing.addShape(pres.ShapeType.rect, { x:0, y:5.3, w:"100%", h:0.325, fill:{color:"0D1A2E"} });
closing.addText("Thank You", {
  x:0.5, y:1.3, w:9, h:1.4,
  fontSize:54, bold:true, color:C.white,
  fontFace:"Calibri", align:"left", charSpacing:6
});
closing.addShape(pres.ShapeType.rect, { x:0.5, y:2.75, w:4.5, h:0.04, fill:{color:C.accent3} });
closing.addText("\"Without inflammation there is no healing, but unchecked inflammation is the basis of chronic disease.\"", {
  x:0.5, y:2.9, w:9, h:1.1,
  fontSize:17, color:C.text_light, italic:true,
  fontFace:"Calibri", align:"left"
});
closing.addText("Robbins & Kumar Basic Pathology | Robbins, Cotran & Kumar Pathologic Basis of Disease", {
  x:0.5, y:5.25, w:9, h:0.3,
  fontSize:11, color:"3A5A80", fontFace:"Calibri", align:"left"
});

// ── WRITE FILE ────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/inflammation-ppt/Inflammation_Pathology.pptx" })
  .then(() => console.log("✅  Saved: Inflammation_Pathology.pptx"))
  .catch(e => { console.error("Error:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/inflammation-ppt && node create_ppt.js

Running Command

ls -lh /home/daytona/workspace/inflammation-ppt/

Your presentation is ready:

Inflammation Pathology

Presentation · PPTX


What's inside (18 slides):
#Slide
1Title slide – bold dark navy + red accent design
2Overview / agenda
3-401 Introduction – definition, purpose, 5 cardinal signs
5-802 Acute Inflammation – 3 components, vascular changes, leukocyte recruitment (margination → rolling → adhesion → diapedesis → chemotaxis), phagocytosis & killing (ROS, myeloperoxidase, defensins)
9-1103 Mediators – vasoactive amines, AA metabolites (PGs/LTs/lipoxins), cytokines (TNF/IL-1/IL-8/complement); full summary table
12-1304 Morphologic Patterns – serous, fibrinous, purulent, abscess, ulcer
1405 Outcomes – resolution, fibrosis, abscess, chronicity
15-1706 Chronic & Granulomatous – causes, macrophage subtypes (M1/M2), epithelioid cells, Langhans giant cells, caseating vs. non-caseating granulomas
1807 Systemic effects – fever mechanism, acute-phase proteins (CRP, fibrinogen), leukocytosis
19-2008 High-yield exam summaries
21Closing quote slide
Source: Robbins & Kumar Basic Pathology + Robbins, Cotran & Kumar Pathologic Basis of Disease

free radicals pathology

Reading File
Finding Sources
Robbins Cotran has dedicated sections on generation, removal, and pathologic effects. Let me read all three in parallel.
Reading File
Reading File
Reading File
Excellent - rich content. Let me also get the Robbins Basic Pathology content and the biochemistry angle:
Finding Sources
Finding Sources
Reading File
Reading File
I also need to get the removal/antioxidant and disease-association content from Robbins Basic Pathology:
Reading File
Reading File
I have comprehensive content. Now let me build the PPT:
Reading File
I have all the content needed. Now let me build the PPT:
Writing File

~/inflammation-ppt/free_radicals_ppt.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Free Radicals & Oxidative Stress – Pathology";
pres.author = "Orris Medical";

// ─── PALETTE ────────────────────────────────────────────────────────────────
const C = {
  bg_dark:  "0D1F2D",   // deep slate
  bg_mid:   "1B3A4B",
  bg_light: "F2F6FA",
  accent1:  "FF5722",   // deep-orange – danger/reactive
  accent2:  "FFCA28",   // amber – warning / generation
  accent3:  "00BCD4",   // cyan – antioxidants / removal
  accent4:  "9C27B0",   // purple – disease associations
  green:    "43A047",
  white:    "FFFFFF",
  text_dark:"1A1A2E",
  text_mid: "34495E",
  text_light:"B0C4D8",
};

// ─── HELPERS ────────────────────────────────────────────────────────────────
function titleSlide(pres) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_dark} });
  // orange left bar
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.1, h:"100%", fill:{color: C.accent1} });
  // subtle horizontal lines
  for(let i=1;i<7;i++) s.addShape(pres.ShapeType.rect, { x:0, y:i*0.8, w:"100%", h:0.004, fill:{color:"152535"}, line:{color:"152535"} });

  s.addText("FREE RADICALS", { x:0.5, y:0.9, w:9.2, h:1.5, fontSize:58, bold:true, color:C.white, fontFace:"Calibri", align:"left", charSpacing:6 });
  s.addText("& OXIDATIVE STRESS", { x:0.5, y:2.25, w:9.2, h:0.85, fontSize:30, bold:false, color:C.accent1, fontFace:"Calibri", align:"left", charSpacing:4 });
  s.addShape(pres.ShapeType.rect, { x:0.5, y:3.18, w:6, h:0.05, fill:{color:C.accent2} });
  s.addText("Pathologic cell injury by reactive chemical species", { x:0.5, y:3.35, w:9, h:0.55, fontSize:18, italic:true, color:C.text_light, fontFace:"Calibri" });
  s.addText("Source: Robbins & Kumar Basic Pathology | Robbins, Cotran & Kumar Pathologic Basis of Disease", { x:0.5, y:5.2, w:9, h:0.3, fontSize:11, color:"3A5A80", fontFace:"Calibri" });
}

function sectionDivider(pres, num, title, subtitle, accentColor) {
  const ac = accentColor || C.accent1;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_mid} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.07, fill:{color: ac} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:2.7, h:"100%", fill:{color:"132535"} });
  s.addText(num, { x:0.1, y:1.6, w:2.5, h:2.2, fontSize:95, bold:true, color:ac, fontFace:"Calibri", align:"center", valign:"middle" });
  s.addText(title, { x:3.0, y:1.5, w:6.7, h:1.2, fontSize:34, bold:true, color:C.white, fontFace:"Calibri", align:"left" });
  s.addText(subtitle, { x:3.0, y:2.75, w:6.7, h:1.1, fontSize:17, italic:true, color:C.text_light, fontFace:"Calibri", align:"left" });
}

function contentSlide(pres, title, bullets, accentColor) {
  const ac = accentColor || C.accent1;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.045, fill:{color: ac} });
  s.addText(title, { x:0.4, y:0.06, w:9.2, h:0.62, fontSize:21, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });
  const items = bullets.map((b, i) => {
    const txt = typeof b === "string" ? b : b.text;
    const opts = {
      bullet: { type: "bullet" },
      breakLine: i < bullets.length - 1,
      fontSize: (typeof b === "object" && b.size) ? b.size : 16,
      color: (typeof b === "object" && b.color) ? b.color : C.text_dark,
      bold: (typeof b === "object" && b.bold) ? true : false,
      italic: (typeof b === "object" && b.italic) ? true : false,
      fontFace: "Calibri",
      indentLevel: (typeof b === "object" && b.indent) ? b.indent : 0,
    };
    return { text: txt, options: opts };
  });
  s.addText(items, { x:0.5, y:0.88, w:9, h:4.6, valign:"top" });
  return s;
}

function twoColumnSlide(pres, title, lTitle, lItems, rTitle, rItems, acL, acR) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.045, fill:{color: acL||C.accent1} });
  s.addText(title, { x:0.4, y:0.06, w:9.2, h:0.62, fontSize:21, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });

  // LEFT
  s.addShape(pres.ShapeType.rect, { x:0.3, y:0.92, w:4.45, h:4.5, fill:{color:C.white}, line:{color:"C8D8F0", pt:1} });
  s.addShape(pres.ShapeType.rect, { x:0.3, y:0.92, w:4.45, h:0.42, fill:{color: acL||C.accent2} });
  s.addText(lTitle, { x:0.35, y:0.94, w:4.35, h:0.38, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", margin:4 });
  const li = lItems.map((b,i)=>({ text:b.text||b, options:{ bullet:{type:"bullet"}, breakLine:i<lItems.length-1, fontSize:14, color:C.text_dark, bold:b.bold||false, fontFace:"Calibri" } }));
  s.addText(li, { x:0.38, y:1.38, w:4.3, h:3.9, valign:"top" });

  // RIGHT
  s.addShape(pres.ShapeType.rect, { x:5.25, y:0.92, w:4.45, h:4.5, fill:{color:C.white}, line:{color:"C8D8F0", pt:1} });
  s.addShape(pres.ShapeType.rect, { x:5.25, y:0.92, w:4.45, h:0.42, fill:{color: acR||C.accent3} });
  s.addText(rTitle, { x:5.3, y:0.94, w:4.35, h:0.38, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", margin:4 });
  const ri = rItems.map((b,i)=>({ text:b.text||b, options:{ bullet:{type:"bullet"}, breakLine:i<rItems.length-1, fontSize:14, color:C.text_dark, bold:b.bold||false, fontFace:"Calibri" } }));
  s.addText(ri, { x:5.3, y:1.38, w:4.3, h:3.9, valign:"top" });
}

function tableSlide(pres, title, headers, rows, accent) {
  const ac = accent || C.accent3;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_light} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.045, fill:{color: ac} });
  s.addText(title, { x:0.4, y:0.06, w:9.2, h:0.62, fontSize:21, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });

  const colW = 9.4 / headers.length;
  const tableData = [
    headers.map(h => ({ text: h, options: { bold:true, color:C.white, fill:ac, align:"center", fontSize:13 } })),
    ...rows.map(row => row.map(cell => ({ text: cell, options: { color:C.text_dark, fontSize:12, align:"left" } })))
  ];
  s.addTable(tableData, { x:0.3, y:0.87, w:9.4, colW: headers.map(()=>colW), rowH:0.47, border:{pt:0.5, color:"C8D8F0"}, fill:{color:C.white}, fontFace:"Calibri" });
}

function infographicSlide(pres, title, boxes, accent) {
  const ac = accent || C.accent1;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_dark} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{color:"0A1520"} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:0.045, fill:{color: ac} });
  s.addText(title, { x:0.4, y:0.06, w:9.2, h:0.62, fontSize:21, bold:true, color:C.white, fontFace:"Calibri", align:"left", valign:"middle", margin:0 });

  const colors = [C.accent1, C.accent2, C.accent3, C.accent4, C.green];
  const positions = [
    {x:0.25, y:0.9}, {x:3.55, y:0.9}, {x:6.85, y:0.9},
    {x:0.25, y:3.0}, {x:3.55, y:3.0}
  ];
  boxes.forEach((box, i) => {
    const pos = positions[i] || {x:0.25 + (i%3)*3.3, y:0.9 + Math.floor(i/3)*2.1};
    const bColor = colors[i % colors.length];
    s.addShape(pres.ShapeType.roundRect, { x:pos.x, y:pos.y, w:2.9, h:1.9, rectRadius:0.1, fill:{color:"132535"}, line:{color:bColor, pt:2} });
    s.addShape(pres.ShapeType.rect, { x:pos.x, y:pos.y, w:2.9, h:0.38, fill:{color:bColor} });
    s.addText(box.title, { x:pos.x+0.05, y:pos.y+0.03, w:2.8, h:0.32, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
    const bItems = box.items.map((it,j)=>({ text:it, options:{ bullet:{type:"bullet"}, breakLine:j<box.items.length-1, fontSize:12, color:C.text_light, fontFace:"Calibri" } }));
    s.addText(bItems, { x:pos.x+0.08, y:pos.y+0.44, w:2.76, h:1.4, valign:"top" });
  });
  return s;
}

// ═══════════════════════════════════════════════════════════════════════════
// BUILD SLIDES
// ═══════════════════════════════════════════════════════════════════════════

// SLIDE 1 – Title
titleSlide(pres);

// SLIDE 2 – Agenda
contentSlide(pres, "Overview", [
  { text:"01  Introduction – What are Free Radicals?", bold:true, color:C.accent1 },
  { text:"02  Sources & Generation of Free Radicals", bold:true, color:C.accent2 },
  { text:"     Mitochondrial respiration  •  Radiant energy  •  Inflammation  •  Metals  •  Drugs", color:"555555", size:14 },
  { text:"03  The Major Reactive Species (ROS, RNS)", bold:true, color:C.accent1 },
  { text:"04  Removal of Free Radicals & Antioxidant Defence", bold:true, color:C.accent3 },
  { text:"05  Pathologic Effects on Cell Components", bold:true, color:C.accent1 },
  { text:"     Lipid peroxidation  •  Protein oxidation  •  DNA damage", color:"555555", size:14 },
  { text:"06  Disease Associations & Clinical Relevance", bold:true, color:C.accent4 },
  { text:"07  Ischemia-Reperfusion Injury", bold:true, color:C.accent2 },
  { text:"08  Summary & High-Yield Key Points", bold:true, color:C.accent3 },
], C.accent2);

// ─── SECTION 1 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "01", "Introduction", "What are free radicals and why do they matter?", C.accent1);

contentSlide(pres, "What are Free Radicals?", [
  { text:"Definition:", bold:true, color:C.accent1 },
  "Chemical species that have a single unpaired electron in an outer orbital.",
  "Unpaired electrons are highly unstable — they aggressively attack adjacent molecules.",
  "",
  { text:"Targets of attack:", bold:true, color:C.text_mid },
  "Proteins  •  Lipids  •  Carbohydrates  •  Nucleic acids (DNA/RNA)",
  "",
  { text:"Autocatalytic chain reaction:", bold:true, color:C.accent1 },
  "Molecules attacked by free radicals are themselves converted into free radicals",
  "→ Propagates damage in a self-amplifying cascade",
  "",
  { text:"Reactive Oxygen Species (ROS):", bold:true, color:C.text_mid },
  "The most important class of free radicals in human pathology",
  "Produced normally in small amounts during mitochondrial respiration",
  "Excess production OR reduced scavenging → OXIDATIVE STRESS",
], C.accent1);

contentSlide(pres, "Oxidative Stress – The Balance", [
  { text:"Oxidative Stress = imbalance between ROS production and antioxidant defence", bold:true, color:C.accent1 },
  "",
  { text:"Normal steady state:", bold:true, color:C.green },
  "• ROS present at low concentrations during normal cell metabolism",
  "• Balanced by antioxidant scavengers → no net damage",
  "• At low doses ROS serve PHYSIOLOGIC roles in cell signalling and receptor pathways",
  "",
  { text:"Pathologic state (oxidative stress):", bold:true, color:C.accent1 },
  "• Increased ROS production   OR",
  "• Decreased scavenging capacity",
  "→ Accumulation of free radicals → cell injury",
  "",
  { text:"Implicated in:", bold:true, color:C.accent4 },
  "Cell injury  •  Ageing  •  Cancer  •  Alzheimer's disease",
  "Ischemia-reperfusion injury  •  Chemical/radiation injury",
  "Atherosclerosis  •  Chronic inflammation  •  Diabetes complications",
], C.accent1);

// ─── SECTION 2 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "02", "Generation of Free Radicals", "Five major sources of ROS in cells", C.accent2);

contentSlide(pres, "Sources of Free Radicals – Overview", [
  { text:"1.  Normal oxidative metabolism (mitochondria):", bold:true, color:C.accent2 },
  "   O2 → H2O via sequential 4-electron reduction",
  "   Partial reduction intermediates: O2•⁻ (1e), H2O2 (2e), •OH (3e)",
  "   Occurs in ER, cytosol, mitochondria, peroxisomes, lysosomes",
  "",
  { text:"2.  Radiant energy (UV light, X-rays, ionising radiation):", bold:true, color:C.accent2 },
  "   Hydrolyse water → •OH (hydroxyl radical) + H• (hydrogen radical)",
  "",
  { text:"3.  Activated leukocytes during inflammation:", bold:true, color:C.accent2 },
  "   NADPH oxidase (phagocyte oxidase) → O2•⁻ → H2O2 → HOCl (myeloperoxidase)",
  "   = Respiratory burst (oxidative burst) in phagolysosome",
  "   Defect: Chronic Granulomatous Disease (CGD)",
  "",
  { text:"4.  Enzymatic metabolism of exogenous chemicals/drugs:", bold:true, color:C.accent2 },
  "   CCl4 → •CCl3 (trichloromethyl radical) → membrane peroxidation (liver injury)",
  "",
  { text:"5.  Transition metals (iron, copper) – Fenton reaction:", bold:true, color:C.accent2 },
  "   H2O2 + Fe2⁺ → Fe3⁺ + •OH + OH⁻",
  "   Fe3⁺ reduced back by O2•⁻ → catalytic cycle of •OH production",
], C.accent2);

contentSlide(pres, "Nitric Oxide as a Free Radical", [
  { text:"Nitric Oxide (NO):", bold:true, color:C.accent4 },
  "• Generated by endothelial cells, macrophages, neurons via NO synthase (NOS)",
  "• Itself a free radical — can directly damage lipids, proteins, DNA",
  "",
  { text:"NO + O2•⁻ → Peroxynitrite (ONOO⁻):", bold:true, color:C.accent1 },
  "• Highly reactive nitrogen species (RNS)",
  "• No enzymatic means of inactivation",
  "• Causes direct damage to lipids, proteins (nitration of tyrosine), and DNA",
  "• Implicated in neurotoxicity, vascular injury, and septic shock",
  "",
  { text:"Paradox of NO:", bold:true, color:C.accent3 },
  "• At physiologic concentrations: vasodilator, anti-inflammatory, anti-platelet",
  "• At high concentrations (e.g. macrophage activation): cytotoxic to microbes AND host tissue",
  "• Illustrates dose-dependent duality of free radicals",
], C.accent4);

// ─── SECTION 3 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "03", "The Major Reactive Species", "Properties of ROS and RNS", C.accent1);

tableSlide(pres, "Principal Free Radicals Involved in Cell Injury",
  ["Free Radical", "Production", "Removal", "Pathologic Effects"],
  [
    ["Superoxide (O2•⁻)", "Incomplete O2 reduction in mitochondria;\nNADPH oxidase in leukocytes", "SOD → H2O2 + O2", "Lipid peroxidation, protein/DNA damage; precursor to H2O2 and •OH"],
    ["Hydrogen peroxide (H2O2)", "From O2•⁻ by SOD action; oxidases in peroxisomes", "Catalase (peroxisomes);\nGlutathione peroxidase", "Converted to •OH (Fenton) and HOCl (myeloperoxidase) → destroys cells/microbes"],
    ["Hydroxyl radical (•OH)", "From H2O2 by Fenton reaction;\nfrom water by ionising radiation", "Glutathione peroxidase → H2O", "Most reactive — direct damage to lipids, proteins, DNA"],
    ["Peroxynitrite (ONOO⁻)", "O2•⁻ + NO via NO synthase", "Mitochondria/cytosol enzymes (limited)", "Nitration of proteins (tyrosine); lipid/DNA damage; no specific enzymatic removal"],
    ["Hypochlorite (HOCl)", "H2O2 + Cl⁻ via myeloperoxidase (neutrophils)", "Non-enzymatic", "Potent microbicidal; also causes bystander tissue damage"],
  ],
  C.accent1
);

// ─── SECTION 4 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "04", "Removal & Antioxidant Defence", "How cells neutralise free radicals", C.accent3);

twoColumnSlide(pres,
  "Antioxidant Defence Mechanisms",
  "Enzymatic Scavengers",
  [
    { text:"Superoxide dismutase (SOD):", bold:true },
    "2 O2•⁻ + 2H⁺ → H2O2 + O2",
    "Mn-SOD in mitochondria;",
    "Cu/Zn-SOD in cytoplasm",
    { text:"Catalase (peroxisomes):", bold:true },
    "2H2O2 → O2 + 2H2O",
    "Degrades millions of H2O2/sec",
    { text:"Glutathione peroxidase:", bold:true },
    "H2O2 + 2GSH → GSSG + 2H2O",
    "GSH:GSSG ratio = oxidative status marker",
    "Located in cytosol of all cells",
  ],
  "Non-Enzymatic Antioxidants",
  [
    { text:"Fat-soluble vitamins:", bold:true },
    "Vitamin E (α-tocopherol) – membrane lipids",
    "Vitamin A (β-carotene) – scavenges O2•⁻",
    { text:"Water-soluble:", bold:true },
    "Vitamin C (ascorbic acid) – cytosol",
    "Glutathione (GSH) – ubiquitous",
    { text:"Metal-binding proteins:", bold:true },
    "Transferrin, ferritin → sequester Fe2⁺",
    "Lactoferrin → sequesters Fe2⁺ at inflammatory sites",
    "Ceruloplasmin → sequester Cu2⁺",
    "Prevent Fenton reaction catalysis",
  ],
  C.accent3, C.accent2
);

// ─── SECTION 5 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "05", "Pathologic Effects", "Three cardinal mechanisms of cell injury by ROS", C.accent1);

contentSlide(pres, "1. Lipid Peroxidation of Membranes", [
  { text:"Most important mechanism of membrane damage by free radicals", bold:true, color:C.accent1 },
  "",
  { text:"Process:", bold:true, color:C.text_mid },
  "• O2•⁻ / •OH attack double bonds in unsaturated fatty acids of membrane phospholipids",
  "• Lipid-radical interactions → lipid peroxides (unstable and reactive)",
  "",
  { text:"Propagation (autocatalytic chain reaction):", bold:true, color:C.accent1 },
  "   Lipid → Lipid radical → Lipid peroxide → new Lipid radical → ...",
  "   Continues until all susceptible lipids are oxidised",
  "",
  { text:"Consequences:", bold:true, color:C.text_mid },
  "• Plasma membrane damage → osmotic imbalance, influx of Ca2⁺ and water",
  "• Mitochondrial membrane damage → loss of ATP generation",
  "• Lysosomal membrane damage → release of hydrolytic enzymes → NECROSIS",
  "• Loss of membrane fluidity and integrity",
], C.accent1);

contentSlide(pres, "2. Oxidative Modification of Proteins", [
  { text:"Free radicals alter protein structure and function:", bold:true, color:C.accent1 },
  "",
  { text:"Mechanisms:", bold:true, color:C.text_mid },
  "• Oxidation of amino acid side chains (especially sulfhydryl groups: Cys, Met)",
  "• Formation of covalent protein-protein cross-links (disulfide bonds)",
  "• Oxidation of protein backbone → polypeptide fragmentation",
  "",
  { text:"Consequences:", bold:true, color:C.accent1 },
  "• Inactivation of enzyme active sites",
  "• Disruption of structural protein conformation (e.g., cytoskeletal proteins)",
  "• Impaired cytoskeletal function → loss of plasma membrane anchoring",
  "• Enhanced proteasomal degradation of misfolded/unfolded proteins",
  "• Triggers unfolded protein response (ER stress) → apoptosis if severe",
], C.accent1);

contentSlide(pres, "3. DNA Damage", [
  { text:"Free radicals can attack the DNA backbone and bases:", bold:true, color:C.accent1 },
  "",
  { text:"Types of DNA lesions:", bold:true, color:C.text_mid },
  "• Single-strand breaks (SSBs)",
  "• Double-strand breaks (DSBs) – most lethal; hard to repair",
  "• DNA strand cross-linking",
  "• Formation of adducts (covalent modifications of bases)",
  "• Oxidised bases: 8-oxoguanine most common marker of oxidative DNA damage",
  "",
  { text:"Consequences:", bold:true, color:C.accent1 },
  "• Apoptosis (if damage is too extensive to repair)",
  "• Necrosis (classical view – now known to also cause apoptosis)",
  "• Mutations → malignant transformation of cells (carcinogenesis)",
  "• Cell ageing – cumulative unrepaired oxidative DNA damage",
  "",
  { text:"Note: At low controlled doses, ROS may serve as physiologic signalling molecules", italic:true, color:C.accent3 },
], C.accent1);

// SECTION 5 INFOGRAPHIC
infographicSlide(pres, "Pathologic Effects of Free Radicals – At a Glance",
  [
    { title:"Lipid Peroxidation",   items:["Attacks membrane unsaturated FA", "Autocatalytic chain reaction", "→ Membrane disruption", "→ Necrosis"] },
    { title:"Protein Oxidation",    items:["Amino acid side-chain oxidation", "Cross-link formation", "Enzyme inactivation", "Proteasomal degradation ↑"] },
    { title:"DNA Damage",           items:["Single & double-strand breaks", "Adduct formation", "Apoptosis / Necrosis", "Mutations → Cancer"] },
    { title:"Membrane Consequences",items:["↑ Ca2⁺ influx → enzyme activation", "↑ Phospholipases, proteases", "Loss of osmotic balance", "Mitochondrial dysfunction"] },
    { title:"Clinical Outcomes",    items:["Cell aging", "Ischemia-reperfusion injury", "Carcinogenesis", "Neurodegeneration"] },
  ],
  C.accent1
);

// ─── SECTION 6 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "06", "Disease Associations", "Where oxidative stress drives pathology", C.accent4);

contentSlide(pres, "Diseases Linked to Oxidative Stress", [
  { text:"Ageing:", bold:true, color:C.accent4 },
  "• Cumulative ROS damage to DNA, proteins, lipids throughout life",
  "• Mitochondrial DNA more vulnerable (lacks protective histones)",
  "",
  { text:"Cancer:", bold:true, color:C.accent4 },
  "• Oxidative DNA damage → mutations in oncogenes/tumour suppressor genes",
  "• ROS promote cell proliferation and genetic instability",
  "",
  { text:"Neurodegenerative diseases (Alzheimer's, Parkinson's):", bold:true, color:C.accent4 },
  "• Brain is highly vulnerable: high O2 consumption, lipid-rich, low catalase",
  "• Aβ peptides generate ROS; α-synuclein aggregation linked to ROS",
  "",
  { text:"Atherosclerosis:", bold:true, color:C.accent4 },
  "• LDL oxidation by ROS → oxidised LDL (ox-LDL) taken up by macrophages → foam cells",
  "",
  { text:"Chronic inflammation & tissue injury:", bold:true, color:C.accent4 },
  "• Activated neutrophils/macrophages → respiratory burst → bystander tissue damage",
  "• Rheumatoid arthritis, IBD, ARDS",
  "",
  { text:"Chronic Granulomatous Disease (CGD):", bold:true, color:C.accent1 },
  "• NADPH oxidase defect → impaired killing of catalase-positive organisms (Staph, Aspergillus)",
], C.accent4);

contentSlide(pres, "Chemical & Drug-Induced Free Radical Injury", [
  { text:"Carbon tetrachloride (CCl4) – classic model:", bold:true, color:C.accent2 },
  "• Metabolised by CYP450 in liver → •CCl3 (trichloromethyl radical)",
  "• •CCl3 + O2 → •OOCCl3 (peroxytrichloromethyl radical)",
  "• Causes massive lipid peroxidation of ER and mitochondrial membranes",
  "• Result: steatosis → centrolobular necrosis",
  "",
  { text:"Paracetamol (acetaminophen) overdose:", bold:true, color:C.accent2 },
  "• NAPQI (N-acetyl-p-benzoquinone imine) – toxic reactive metabolite",
  "• Depletes glutathione → ROS accumulate → hepatocyte necrosis",
  "• Antidote: N-acetylcysteine (replenishes GSH)",
  "",
  { text:"Radiation injury:", bold:true, color:C.accent2 },
  "• Ionising radiation hydrolyses water → •OH radicals",
  "• Direct DNA damage + lipid peroxidation",
  "• Basis of radiation therapy – exploits DNA damage in cancer cells",
  "• Side effects: bystander damage to normal tissues",
], C.accent2);

// ─── SECTION 7 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "07", "Ischemia-Reperfusion Injury", "Paradoxical damage on restoration of blood flow", C.accent2);

contentSlide(pres, "Ischemia-Reperfusion Injury & Free Radicals", [
  { text:"Paradox: Reperfusion (restoring blood flow) causes ADDITIONAL cell damage", bold:true, color:C.accent1 },
  "",
  { text:"Mechanism – ROS burst on reperfusion:", bold:true, color:C.text_mid },
  "1. Ischaemia → ATP → AMP → adenosine → hypoxanthine (accumulates)",
  "2. Ischaemia → xanthine dehydrogenase converted to xanthine oxidase",
  "3. Reperfusion delivers O2 → xanthine oxidase + hypoxanthine → O2•⁻ + H2O2",
  "4. Mitochondria damaged by ischaemia → incomplete electron transport → more ROS",
  "5. Neutrophil influx on reperfusion → respiratory burst → additional ROS/proteases",
  "",
  { text:"Key roles of ROS in ischaemia-reperfusion:", bold:true, color:C.accent1 },
  "• Membrane peroxidation → cell lysis",
  "• Mitochondrial permeability transition pore opening → apoptosis",
  "• Endothelial activation → inflammatory cascade",
  "",
  { text:"Clinical relevance:", bold:true, color:C.accent4 },
  "• Myocardial infarction (reperfusion post-thrombolysis/PCI)",
  "• Stroke (ischaemic → haemorrhagic transformation)",
  "• Organ transplantation, tourniquet use, compartment syndrome",
], C.accent2);

// ─── SECTION 8 ──────────────────────────────────────────────────────────────
sectionDivider(pres, "08", "Summary & Key Points", "High-yield exam revision", C.accent3);

contentSlide(pres, "High-Yield Summary", [
  { text:"DEFINITION:", bold:true, color:C.accent1 },
  "Free radicals = chemical species with 1 unpaired outer electron → attack biomolecules → propagating chain",
  "",
  { text:"KEY ROS (in order of reactivity):", bold:true, color:C.accent2 },
  "O2•⁻ → H2O2 → •OH (most reactive)  |  NO → ONOO⁻",
  "",
  { text:"GENERATION:", bold:true, color:C.accent2 },
  "Mitochondria (normal respiration)  •  NADPH oxidase (leukocytes)  •  Fenton reaction (Fe2⁺ + H2O2)",
  "Radiant energy  •  Drug metabolism (CCl4, paracetamol)  •  NO + O2•⁻",
  "",
  { text:"REMOVAL:", bold:true, color:C.accent3 },
  "SOD (O2•⁻→H2O2)  •  Catalase (H2O2→H2O)  •  Glutathione peroxidase  •  Vitamins C, E  •  Ferritin/transferrin",
  "",
  { text:"THREE PATHOLOGIC EFFECTS:", bold:true, color:C.accent1 },
  "1. Lipid peroxidation → membrane damage → necrosis",
  "2. Protein oxidation → enzyme inactivation, cross-links, ER stress",
  "3. DNA damage → apoptosis / mutations / ageing / cancer",
  "",
  { text:"CLINICAL CONDITIONS:", bold:true, color:C.accent4 },
  "Ischaemia-reperfusion  •  Ageing  •  Cancer  •  Atherosclerosis  •  Neurodegeneration  •  CGD",
], C.accent3);

// CLOSING SLIDE
const cl = pres.addSlide();
cl.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color: C.bg_dark} });
cl.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.1, h:"100%", fill:{color: C.accent3} });
cl.addShape(pres.ShapeType.rect, { x:0, y:5.2, w:"100%", h:0.425, fill:{color:"0A1520"} });
cl.addText("Thank You", { x:0.5, y:1.1, w:9, h:1.5, fontSize:54, bold:true, color:C.white, fontFace:"Calibri", align:"left", charSpacing:6 });
cl.addShape(pres.ShapeType.rect, { x:0.5, y:2.75, w:5, h:0.05, fill:{color:C.accent3} });
cl.addText(
  '"Free radicals are produced in normal cells during oxidative metabolism but are regulated by scavenger systems. When this balance fails — disease follows."',
  { x:0.5, y:2.9, w:9, h:1.2, fontSize:16, italic:true, color:C.text_light, fontFace:"Calibri" }
);
cl.addText("Robbins & Kumar Basic Pathology | Robbins, Cotran & Kumar Pathologic Basis of Disease", { x:0.5, y:5.2, w:9, h:0.3, fontSize:11, color:"3A5A80", fontFace:"Calibri" });

// WRITE
pres.writeFile({ fileName: "/home/daytona/workspace/inflammation-ppt/Free_Radicals_Pathology.pptx" })
  .then(() => console.log("✅  Saved: Free_Radicals_Pathology.pptx"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/inflammation-ppt && node free_radicals_ppt.js

Running Command

ls -lh /home/daytona/workspace/inflammation-ppt/Free_Radicals_Pathology.pptx

Your presentation is ready:

Free Radicals Pathology

Presentation · PPTX


What's inside (19 slides) — deep slate + orange/amber/cyan design:
SectionSlidesContent
01 Introduction2Definition of free radicals, oxidative stress concept, physiologic vs. pathologic balance
02 Generation25 sources: mitochondria, radiant energy, NADPH oxidase (leukocytes/respiratory burst), drug metabolism, Fenton reaction (Fe2⁺); Nitric oxide → peroxynitrite (ONOO⁻)
03 Major Species1Full table: O2•⁻, H2O2, •OH, ONOO⁻, HOCl — production, removal, effects
04 Antioxidant Defence1Two-column: enzymatic (SOD, catalase, glutathione peroxidase) vs. non-enzymatic (Vit E/C/A, GSH, metal-binding proteins)
05 Pathologic Effects4Lipid peroxidation (autocatalytic chain), protein oxidation (cross-links, enzyme inactivation, ER stress), DNA damage (SSBs/DSBs, adducts, carcinogenesis); infographic card summary
06 Disease Associations2Ageing, cancer, neurodegeneration, atherosclerosis (ox-LDL), CGD; CCl4 liver injury, paracetamol overdose/NAPQI, radiation injury
07 Ischemia-Reperfusion1Xanthine oxidase mechanism, ROS burst, clinical relevance (MI, stroke, transplants)
08 High-Yield Summary1All key points for exam revision
Closing1Quote + references
Source: Robbins & Kumar Basic Pathology + Robbins, Cotran & Kumar Pathologic Basis of Disease
This is a shared conversation. Sign in to Orris to start your own chat.