Amine derived autocoids , peptide and lipids derived??

Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
I now have comprehensive information from the textbooks. Let me compile the full answer.

Autocoids: Amine-Derived, Peptide-Derived, and Lipid-Derived

Autocoids (autacoids) are endogenous substances that act locally at or near their site of production - unlike hormones (systemic) or neurotransmitters (synaptic). The word comes from the Greek autos (self) + akos (remedy/drug).

I. AMINE-DERIVED AUTOCOIDS

1. Histamine

Synthesis: Formed by decarboxylation of L-histidine, catalyzed by histidine decarboxylase. Stored in mast cells and basophil granules; also present in platelets, skin, gastric mucosa, and CNS neurons.
Metabolism: Converted to N-methylhistamine, methylimidazoleacetic acid, and imidazoleacetic acid (IAA).
Receptors and Effects:
ReceptorLocationSignalKey Effects
H1Endothelium, smooth muscle, nerve endingsGq → IP3/Ca²⁺Vasodilation (via NO), bronchoconstriction, itch/pain, increased vascular permeability
H2Gastric mucosa, cardiac muscle, immune cellsGs → ↑cAMPGastric acid secretion, positive inotropy, vasodilation at higher doses
H3Presynaptic in CNS (and peripheral nerves)Gq → ↓cAMP, ↓Ca²⁺ influxAutoreceptor - inhibits release of histamine and other neurotransmitters (ACh, amines, peptides)
H4Leukocytes in bone marrow and blood-Chemotaxis of eosinophils and mast cells; modulates cytokine production; role in allergy and inflammation
Cardiovascular effects:
  • Small doses: H1-mediated vasodilation → ↓BP, reflex tachycardia, flushing
  • Large doses: H2-mediated direct cardiac stimulation
Pathological roles: Immediate hypersensitivity (urticaria, anaphylaxis), inflammation, gastric acid hypersecretion, itch
Clinical significance: Histamine itself has no therapeutic use, but its antagonists (H1 blockers, H2 blockers) are widely used clinically.

2. Serotonin (5-Hydroxytryptamine, 5-HT)

Synthesis: Formed from L-tryptophan via tryptophan hydroxylase (rate-limiting step) → 5-hydroxytryptophan → serotonin (decarboxylation by aromatic L-amino acid decarboxylase). Present in enterochromaffin cells of the gut (~90%), platelets, and CNS raphe nuclei.
Metabolism: Primarily by MAO → 5-hydroxyindoleacetic acid (5-HIAA, excreted in urine).
Receptors and Effects (7 families: 5-HT1 through 5-HT7):
ReceptorLocationKey Effects
5-HT1ACNS raphe nuclei (autoreceptor)Inhibition of serotonin release; anxiolytic (buspirone target)
5-HT2ABlood vessels, platelets, CNSVasoconstriction, platelet aggregation, CNS effects
5-HT3Gut, area postrema (only ligand-gated ion channel in the family)Emesis, gut motility
5-HT4GI tract↑gut motility (used in gastroparesis)
Roles: GI motility regulation, platelet aggregation, hemostasis, CNS mood and anxiety regulation, vasoconstriction (coronary, pulmonary vasculature).
Clinical uses (agonists/antagonists):
  • Triptans (5-HT1B/1D agonists) - migraine
  • SSRIs/SNRIs - depression/anxiety
  • Ondansetron (5-HT3 antagonist) - chemotherapy-induced vomiting
  • Metoclopramide, cisapride (5-HT4 agonists) - GI motility

II. PEPTIDE-DERIVED AUTOCOIDS

1. Bradykinin and the Kallikrein-Kinin System

Formation pathway:
Prekallikrein (activated by Factor XIIa) → Kallikrein → cleaves Kininogens → Kinins
  • Plasma kallikrein cleaves HMW kininogenBradykinin (9 amino acids: Arg-Pro-Pro-Gly-Phe-Ser-Pro-Phe-Arg)
  • Tissue kallikrein cleaves LMW kininogenKallidin (Lys-bradykinin, 10 amino acids), which can be converted to bradykinin by an aminopeptidase
Metabolism: Very rapidly degraded (half-life <15 seconds) by kininases:
  • Kininase I (carboxypeptidase from liver) - cleaves C-terminal Arg
  • Kininase II = ACE (Angiotensin Converting Enzyme) - cleaves the C-terminal dipeptide. This is why ACE inhibitors potentiate bradykinin - major contribution to their antihypertensive effect (and cause of ACE-inhibitor cough!)
Receptors:
  • B2 receptor (constitutive) - mediates most physiological actions of bradykinin
  • B1 receptor (inducible, upregulated in inflammation) - mediates pain and inflammatory responses
Actions of bradykinin:
  • Potent vasodilation (via NO and prostacyclin release from endothelium)
  • Increased vascular permeability
  • Bronchoconstriction
  • Pain and hyperalgesia
  • Stimulates prostaglandin synthesis
  • Uterine and intestinal smooth muscle contraction
Clinical relevance:
  • ACE inhibitor-induced cough (due to bradykinin accumulation)
  • Hereditary angioedema (C1-INH deficiency → uncontrolled kinin generation) - treated with icatibant (B2 antagonist), ecallantide (kallikrein inhibitor), or C1-INH concentrate

2. Natriuretic Peptides

Produced by the heart; also qualify as peptide autocoids/hormones:
PeptideSourceStimulusKey Actions
ANP (Atrial Natriuretic Peptide)Cardiac atriaAtrial stretch, volume expansionNatriuresis, diuresis, vasodilation, inhibits RAAS, ↓BP
BNP (Brain/B-type NP)Ventricular myocardiumVentricular wall stressSame as ANP; biomarker for heart failure
CNP (C-type NP)Vascular endothelium, CNS-Vasodilation; less natriuretic effect
Mechanism: Bind guanylyl cyclase receptors → ↑cGMP → vasodilation and natriuresis.
Clinical use: Nesiritide (recombinant BNP) for acute decompensated heart failure; BNP/NT-proBNP levels used diagnostically.

3. Other Peptide Autocoids

  • Substance P - neuropeptide (11 amino acids), released from sensory C-fibers; mediates pain transmission, neurogenic inflammation, vasodilation
  • Angiotensin II - potent vasoconstrictor, aldosterone secretagogue (technically a hormone but acts locally too)
  • Endothelins (ET-1, ET-2, ET-3) - produced by vascular endothelium; ET-1 is the most potent endogenous vasoconstrictor known; targeted by bosentan in pulmonary arterial hypertension

III. LIPID-DERIVED AUTOCOIDS (Eicosanoids + PAF)

All derived from arachidonic acid (AA), a 20-carbon polyunsaturated fatty acid (eicosa = 20) released from membrane phospholipids by phospholipase A2 (PLA2). Corticosteroids inhibit PLA2 (via lipocortin), blocking ALL eicosanoid pathways.

Biosynthetic Pathways Overview

Membrane phospholipids
        |
   Phospholipase A2 (blocked by corticosteroids)
        |
  Arachidonic Acid
    /          \
COX pathway    LOX pathway    CYP pathway
(NSAIDs block)  (zileuton blocks)

A. COX Pathway Products (Prostanoids)

COX-1: Constitutive - housekeeping functions (gastric cytoprotection, platelet TxA2) COX-2: Inducible - upregulated by cytokines, inflammation; targeted by selective COX-2 inhibitors (coxibs)
ProstanoidMain SourceReceptorKey Actions
PGE2 (Prostaglandin E2)Widely expressedEP1-EP4Vasodilation, fever (hypothalamic), pain sensitization (peripheral), ↑uterine tone, gastric cytoprotection
PGI2 (Prostacyclin)Vascular endotheliumIPVasodilation, inhibits platelet aggregation - opposes TxA2
TxA2 (Thromboxane A2)PlateletsTPVasoconstriction, platelet aggregation - aspirn inhibits COX-1 in platelets irreversibly
PGD2Mast cells, brainDP1, DP2Vasodilation, bronchoconstriction, eosinophil chemotaxis, sleep regulation
PGF2αUterus, lungsFPUterine contraction, bronchoconstriction, luteolysis
Key clinical applications:
  • Aspirin/NSAIDs - inhibit COX → analgesic, anti-inflammatory, antipyretic
  • Misoprostol (PGE1 analog) - gastric cytoprotection, cervical ripening
  • Dinoprostone (PGE2) - labor induction
  • Latanoprost (PGF2α analog) - glaucoma
  • Epoprostenol/iloprost (PGI2 analogs) - pulmonary arterial hypertension

B. LOX Pathway Products (Leukotrienes and Lipoxins)

5-LOX (activated by FLAP) → HETEsLeukotrienes
LeukotrieneSourceKey Actions
LTB4Neutrophils, macrophagesPotent neutrophil chemotaxis and adhesion; promotes inflammation
LTC4, LTD4, LTE4 (Cysteinyl-LTs; formerly "slow-reacting substance of anaphylaxis - SRS-A")Mast cells, eosinophils, basophilsBronchoconstriction (1000x more potent than histamine), ↑mucus secretion, ↑vascular permeability
Clinical relevance:
  • Montelukast, zafirlukast (CysLT1 receptor antagonists) - asthma, allergic rhinitis
  • Zileuton (5-LOX inhibitor) - asthma
  • Cysteinyl leukotrienes are the key mediators in aspirin-exacerbated respiratory disease (Samter's triad)
Lipoxins (LXA4, LXB4): Formed by interaction of 5-LOX and 15-LOX; act as "stop signals" for inflammation - promote resolution, inhibit neutrophil recruitment.

C. Platelet-Activating Factor (PAF)

  • A phospholipid autocoid - 1-O-alkyl-2-acetyl-sn-glycero-3-phosphocholine
  • Produced by platelets, mast cells, neutrophils, monocytes, endothelium
  • Acts on PAF receptor (PAFR) - a GPCR
Actions:
  • Platelet aggregation and activation
  • Bronchoconstriction (potent)
  • Vasoconstriction / vasodilation depending on concentration
  • ↑Vascular permeability
  • Chemotaxis and activation of leukocytes
  • Key mediator in anaphylaxis and severe sepsis
Metabolism: Rapidly inactivated by PAF-acetylhydrolase (PAF-AH).

Summary Table

CategoryAutocoidPrecursorKey EnzymePrimary Actions
AminesHistamineL-histidineHistidine decarboxylaseAllergy, inflammation, gastric acid, itch
Serotonin (5-HT)L-tryptophanTryptophan hydroxylaseGI motility, platelet aggregation, mood, vasoconstriction
PeptidesBradykininKininogensKallikreinsVasodilation, pain, inflammation, vascular permeability
ANP/BNPPreproproteinProteolytic cleavageNatriuresis, vasodilation, inhibit RAAS
Substance PGene-encoded-Pain, neurogenic inflammation
EndothelinsPreproendothelinEndothelin-converting enzymeVasoconstriction (ET-1 most potent)
LipidsPGE2/PGI2/TxA2Arachidonic acidCOX-1/COX-2Inflammation, fever, hemostasis, reproduction
LeukotrienesArachidonic acid5-LOXBronchoconstriction, chemotaxis
LipoxinsArachidonic acid15-LOX + 5-LOXAnti-inflammatory, resolution
PAFMembrane phospholipidsPLA2 + acetyltransferasePlatelet activation, bronchoconstriction, anaphylaxis

Sources:
  • Katzung's Basic and Clinical Pharmacology, 16th Edition (Chapters 16, 17, 18)
  • Goodman & Gilman's Pharmacological Basis of Therapeutics (Chapter 41 - Eicosanoids; Chapter 12)
  • Ganong's Review of Medical Physiology, 26th Edition

As a pptx

Reading File
Reading File
Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"

Writing File

~/autocoids-pptx/autocoids.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Autocoids: Amine, Peptide & Lipid Derived";
pres.author = "Orris Medical";

// ─── COLOUR PALETTE ───────────────────────────────────────────────
// Dark navy dominant, teal accent, amber highlight
const C = {
  navy:      "0D1B2A",  // dominant bg
  navyMid:   "162338",
  navyLight: "1E3354",
  teal:      "00B4D8",
  tealDark:  "0096C7",
  amber:     "FFB703",
  white:     "FFFFFF",
  offWhite:  "E8F1F5",
  gray:      "8FA3B1",
  lightGray: "C9D8E3",
  cardBg:    "162D44",
  green:     "52B788",
  purple:    "9D4EDD",
  red:       "EF233C",
  orange:    "F4A261",
};

// ─── HELPER: section label bar ────────────────────────────────────
function sectionBar(slide, label, color) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.55,
    fill: { color },
    line: { color, pt: 0 },
  });
  slide.addText(label, {
    x: 0.3, y: 0, w: 9.4, h: 0.55,
    fontSize: 13, bold: true, color: C.navy, valign: "middle", margin: 0,
  });
}

// ─── HELPER: card box ─────────────────────────────────────────────
function card(slide, x, y, w, h, fillColor, lineColor) {
  slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x, y, w, h, rectRadius: 0.08,
    fill: { color: fillColor || C.cardBg },
    line: { color: lineColor || C.teal, pt: 1.2 },
    shadow: { type: "outer", color: "000000", blur: 8, offset: 3, angle: 135, opacity: 0.25 },
  });
}

// ─── HELPER: accent left bar ──────────────────────────────────────
function accentBar(slide, x, y, h, color) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x, y, w: 0.06, h,
    fill: { color },
    line: { color, pt: 0 },
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 1 — TITLE
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  // Top accent strip
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.teal }, line: { color: C.teal, pt: 0 },
  });

  // Large decorative circle (background)
  s.addShape(pres.shapes.ELLIPSE, {
    x: 6.2, y: -1.5, w: 5.5, h: 5.5,
    fill: { color: C.navyLight, transparency: 40 },
    line: { color: C.teal, pt: 1.5 },
  });
  s.addShape(pres.shapes.ELLIPSE, {
    x: 7.0, y: -0.8, w: 3.8, h: 3.8,
    fill: { color: C.teal, transparency: 85 },
    line: { color: C.teal, pt: 0 },
  });

  // Main title
  s.addText("AUTOCOIDS", {
    x: 0.6, y: 1.2, w: 7, h: 1.1,
    fontSize: 52, bold: true, color: C.white,
    charSpacing: 8,
  });

  // Subtitle
  s.addText("Amine · Peptide · Lipid Derived", {
    x: 0.6, y: 2.4, w: 7, h: 0.6,
    fontSize: 22, color: C.teal, italic: true,
  });

  // Horizontal divider
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.6, y: 3.1, w: 5.5, h: 0.04,
    fill: { color: C.amber }, line: { color: C.amber, pt: 0 },
  });

  // Definition box
  card(s, 0.55, 3.3, 6.2, 1.3, C.navyLight, C.amber);
  s.addText([
    { text: "Autocoids ", options: { bold: true, color: C.amber } },
    { text: "are locally acting endogenous substances produced and acting at or near their site of synthesis. Unlike hormones (systemic) or neurotransmitters (synaptic), they have diverse chemical structures and complex physiological and pathological roles.", options: { color: C.offWhite } },
  ], { x: 0.75, y: 3.4, w: 5.8, h: 1.1, fontSize: 11.5, valign: "middle" });

  // Bottom source
  s.addText("Sources: Katzung's Basic & Clinical Pharmacology 16e · Goodman & Gilman's 13e · Ganong's Physiology 26e", {
    x: 0, y: 5.3, w: 10, h: 0.3,
    fontSize: 8, color: C.gray, align: "center",
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 2 — OVERVIEW / CLASSIFICATION MIND-MAP STYLE
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "CLASSIFICATION OF AUTOCOIDS", C.teal);

  s.addText("Three Major Chemical Classes", {
    x: 0.4, y: 0.65, w: 9.2, h: 0.4,
    fontSize: 16, bold: true, color: C.white,
  });

  // Central circle
  s.addShape(pres.shapes.ELLIPSE, {
    x: 3.75, y: 1.9, w: 2.5, h: 1.8,
    fill: { color: C.navyLight },
    line: { color: C.white, pt: 1.5 },
  });
  s.addText("AUTO-\nCOIDS", {
    x: 3.75, y: 2.0, w: 2.5, h: 1.6,
    fontSize: 18, bold: true, color: C.white, align: "center", valign: "middle",
  });

  // ── AMINE BOX ──
  card(s, 0.2, 1.1, 2.9, 2.5, "152032", C.amber);
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 1.1, w: 2.9, h: 0.38, fill: { color: C.amber }, line: { color: C.amber, pt: 0 } });
  s.addText("AMINE-DERIVED", { x: 0.25, y: 1.1, w: 2.8, h: 0.38, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText([
    { text: "• Histamine\n", options: { bullet: false } },
    { text: "• Serotonin (5-HT)\n", options: { bullet: false } },
    { text: "• Dopamine", options: { bullet: false } },
  ], { x: 0.35, y: 1.56, w: 2.7, h: 1.9, fontSize: 12, color: C.offWhite, valign: "top" });

  // ── PEPTIDE BOX ──
  card(s, 3.55, 4.0, 2.9, 1.55, "152032", C.green);
  s.addShape(pres.shapes.RECTANGLE, { x: 3.55, y: 4.0, w: 2.9, h: 0.38, fill: { color: C.green }, line: { color: C.green, pt: 0 } });
  s.addText("PEPTIDE-DERIVED", { x: 3.6, y: 4.0, w: 2.8, h: 0.38, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText("• Bradykinin  • ANP/BNP\n• Substance P  • Endothelins\n• Angiotensin II", {
    x: 3.7, y: 4.42, w: 2.7, h: 1.05, fontSize: 10.5, color: C.offWhite, valign: "top",
  });

  // ── LIPID BOX ──
  card(s, 6.9, 1.1, 2.85, 2.5, "152032", C.purple);
  s.addShape(pres.shapes.RECTANGLE, { x: 6.9, y: 1.1, w: 2.85, h: 0.38, fill: { color: C.purple }, line: { color: C.purple, pt: 0 } });
  s.addText("LIPID-DERIVED", { x: 6.95, y: 1.1, w: 2.75, h: 0.38, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
  s.addText([
    { text: "Prostanoids (PGs, TxA2, PGI2)\n", options: {} },
    { text: "Leukotrienes (LTB4, LTC4/D4/E4)\n", options: {} },
    { text: "Lipoxins (LXA4, LXB4)\n", options: {} },
    { text: "PAF", options: {} },
  ], { x: 7.05, y: 1.56, w: 2.65, h: 1.9, fontSize: 10.5, color: C.offWhite, valign: "top" });

  // Connector lines (approximate)
  s.addShape(pres.shapes.RECTANGLE, { x: 3.1, y: 2.5, w: 0.65, h: 0.06, fill: { color: C.amber }, line: { color: C.amber, pt: 0 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 4.85, y: 4.0, w: 0.06, h: 0.35, fill: { color: C.green }, line: { color: C.green, pt: 0 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 6.25, y: 2.5, w: 0.65, h: 0.06, fill: { color: C.purple }, line: { color: C.purple, pt: 0 } });

  // Key note
  s.addText("All act locally with short half-lives and are not stored as classical hormones", {
    x: 0.3, y: 5.22, w: 9.4, h: 0.3,
    fontSize: 9.5, color: C.gray, align: "center", italic: true,
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 3 — HISTAMINE
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "AMINE-DERIVED  |  HISTAMINE", C.amber);

  // Synthesis pathway box
  card(s, 0.25, 0.65, 3.6, 1.3, C.navyLight, C.amber);
  s.addText("SYNTHESIS", { x: 0.35, y: 0.68, w: 3.4, h: 0.28, fontSize: 10, bold: true, color: C.amber });
  s.addText("L-Histidine → [Histidine decarboxylase] → Histamine\nStored in: Mast cells, Basophils, Platelets, Gastric ECL cells\nMetab: N-methylhistamine, Imidazoleacetic acid (MAO/DAO)", {
    x: 0.35, y: 0.98, w: 3.4, h: 0.9, fontSize: 9.5, color: C.offWhite,
  });

  // Storage/release box
  card(s, 4.05, 0.65, 5.6, 1.3, C.navyLight, C.orange);
  s.addText("RELEASE TRIGGERS", { x: 4.15, y: 0.68, w: 5.4, h: 0.28, fontSize: 10, bold: true, color: C.orange });
  s.addText("IgE-mediated (Type I hypersensitivity)  •  Tissue injury & trauma\nBasic drugs/contrast media (direct mast cell degranulation)\nNeuropeptides  •  Complement (C3a, C5a)  •  High-histamine foods", {
    x: 4.15, y: 0.98, w: 5.4, h: 0.9, fontSize: 9.5, color: C.offWhite,
  });

  // Receptor table header
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 2.08, w: 9.5, h: 0.34,
    fill: { color: C.amber }, line: { color: C.amber, pt: 0 },
  });
  s.addText("RECEPTOR  |  COUPLING  |  LOCATION  |  KEY EFFECTS", {
    x: 0.3, y: 2.08, w: 9.4, h: 0.34, fontSize: 10, bold: true, color: C.navy, valign: "middle", margin: 0,
  });

  const rows = [
    ["H1", "Gq → IP3/Ca²⁺", "Endothelium, smooth muscle, nerves", "Vasodilation (via NO), bronchoconstriction, itch, pain, ↑vascular permeability"],
    ["H2", "Gs → ↑cAMP", "Gastric mucosa, cardiac muscle, immune cells", "↑Gastric acid secretion, positive inotropy, vasodilation (high dose)"],
    ["H3", "Gi → ↓cAMP, ↓Ca²⁺", "Presynaptic CNS & peripheral nerves", "Autoreceptor — inhibits release of histamine, ACh, amines, peptides"],
    ["H4", "Gi", "Bone marrow, circulating leukocytes", "Chemotaxis of eosinophils & mast cells; cytokine modulation; allergy"],
  ];
  const rowColors = [C.navyLight, C.navyMid, C.navyLight, C.navyMid];
  const accents   = [C.amber,    C.orange,   C.amber,    C.orange];

  rows.forEach((row, i) => {
    const y = 2.42 + i * 0.62;
    s.addShape(pres.shapes.RECTANGLE, { x: 0.25, y, w: 9.5, h: 0.59, fill: { color: rowColors[i] }, line: { color: rowColors[i], pt: 0 } });
    accentBar(s, 0.25, y, 0.59, accents[i]);
    // H receptor badge
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x: 0.38, y: y + 0.12, w: 0.45, h: 0.34, rectRadius: 0.05,
      fill: { color: accents[i] }, line: { color: accents[i], pt: 0 },
    });
    s.addText(row[0], { x: 0.38, y: y + 0.12, w: 0.45, h: 0.34, fontSize: 10, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
    s.addText(row[1], { x: 0.9,  y, w: 1.7, h: 0.59, fontSize: 9,   color: C.teal,    valign: "middle" });
    s.addText(row[2], { x: 2.65, y, w: 3.0, h: 0.59, fontSize: 9,   color: C.lightGray, valign: "middle" });
    s.addText(row[3], { x: 5.7,  y, w: 4.0, h: 0.59, fontSize: 9,   color: C.offWhite,  valign: "middle" });
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 4 — SEROTONIN (5-HT)
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "AMINE-DERIVED  |  SEROTONIN  (5-Hydroxytryptamine, 5-HT)", C.amber);

  // Left column - synthesis
  card(s, 0.2, 0.65, 4.6, 1.5, C.navyLight, C.amber);
  s.addText("SYNTHESIS & DISTRIBUTION", { x: 0.32, y: 0.68, w: 4.35, h: 0.28, fontSize: 10, bold: true, color: C.amber });
  s.addText(
    "L-Tryptophan → [Tryptophan hydroxylase ★ rate-limiting] → 5-HTP\n5-HTP → [Aromatic AADC] → Serotonin (5-HT)\n\nDistribution: Gut enterochromaffin (~90%) · Platelets · CNS raphe nuclei\nMetabolism: MAO-A → 5-HIAA (urine)",
    { x: 0.32, y: 0.98, w: 4.35, h: 1.1, fontSize: 9.5, color: C.offWhite }
  );

  // Right column - clinical relevance
  card(s, 5.05, 0.65, 4.7, 1.5, C.navyLight, C.orange);
  s.addText("CLINICAL CONNECTIONS", { x: 5.15, y: 0.68, w: 4.5, h: 0.28, fontSize: 10, bold: true, color: C.orange });
  s.addText(
    "↑ Urinary 5-HIAA → carcinoid syndrome marker\nSSRIs/SNRIs → ↑synaptic 5-HT → antidepressant\nSerotonin syndrome: hyperthermia, clonus, agitation\nCarcinoid tumour: flushing, diarrhoea, bronchospasm",
    { x: 5.15, y: 0.98, w: 4.5, h: 1.1, fontSize: 9.5, color: C.offWhite }
  );

  // Receptor table
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 2.28, w: 9.6, h: 0.34,
    fill: { color: C.amber }, line: { color: C.amber, pt: 0 },
  });
  s.addText("RECEPTOR  |  TYPE / COUPLING  |  LOCATION  |  EFFECTS & DRUGS", {
    x: 0.3, y: 2.28, w: 9.5, h: 0.34, fontSize: 10, bold: true, color: C.navy, valign: "middle", margin: 0,
  });

  const sRows = [
    ["5-HT1A", "Gi → ↓cAMP", "CNS raphe (autoreceptor), limbic", "Anxiolysis, mood; Agonist: buspirone (anxiolytic)"],
    ["5-HT1B/D", "Gi → ↓cAMP", "Cranial blood vessels, presynaptic", "Vasoconstriction; Agonists: TRIPTANS (migraine)"],
    ["5-HT2A", "Gq → IP3/Ca²⁺", "Platelets, blood vessels, CNS", "Vasoconstriction, platelet aggregation; blocked by atypical antipsychotics"],
    ["5-HT3", "Ligand-gated Na⁺/K⁺ ion channel", "Area postrema (CTZ), gut", "Emesis; Antagonists: ondansetron (anti-emetic)"],
    ["5-HT4", "Gs → ↑cAMP", "GI smooth muscle, CNS", "↑Gut motility; Agonists: metoclopramide, prucalopride"],
  ];

  sRows.forEach((row, i) => {
    const y = 2.62 + i * 0.57;
    const bg = i % 2 === 0 ? C.navyLight : C.navyMid;
    s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y, w: 9.6, h: 0.54, fill: { color: bg }, line: { color: bg, pt: 0 } });
    accentBar(s, 0.2, y, 0.54, C.amber);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x: 0.32, y: y + 0.1, w: 0.9, h: 0.33, rectRadius: 0.05,
      fill: { color: C.amber }, line: { color: C.amber, pt: 0 },
    });
    s.addText(row[0], { x: 0.32, y: y + 0.1, w: 0.9, h: 0.33, fontSize: 9, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
    s.addText(row[1], { x: 1.28, y, w: 2.0, h: 0.54, fontSize: 8.5, color: C.teal,    valign: "middle" });
    s.addText(row[2], { x: 3.33, y, w: 2.4, h: 0.54, fontSize: 8.5, color: C.lightGray, valign: "middle" });
    s.addText(row[3], { x: 5.78, y, w: 4.0, h: 0.54, fontSize: 8.5, color: C.offWhite,  valign: "middle" });
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 5 — PEPTIDE AUTOCOIDS: BRADYKININ
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "PEPTIDE-DERIVED  |  BRADYKININ & THE KALLIKREIN-KININ SYSTEM", C.green);

  // Pathway flow
  const flowItems = [
    { label: "Prekallikrein", sub: "(activated by FXIIa)", color: C.navyLight, accent: C.teal },
    { label: "Kallikrein", sub: "Plasma / Tissue", color: C.navyLight, accent: C.green },
    { label: "Kininogens", sub: "HMW / LMW", color: C.navyLight, accent: C.teal },
    { label: "Bradykinin", sub: "9-aa peptide", color: C.green, accent: C.white },
  ];

  flowItems.forEach((item, i) => {
    const x = 0.2 + i * 2.42;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x, y: 0.65, w: 2.2, h: 0.9, rectRadius: 0.08,
      fill: { color: item.color }, line: { color: item.accent, pt: 1.2 },
    });
    s.addText(item.label, { x, y: 0.68, w: 2.2, h: 0.5, fontSize: 11, bold: true, color: item.accent, align: "center", valign: "middle" });
    s.addText(item.sub, { x, y: 1.1, w: 2.2, h: 0.3, fontSize: 8.5, color: C.gray, align: "center" });
    if (i < 3) {
      s.addText("→", { x: x + 2.2, y: 0.7, w: 0.22, h: 0.7, fontSize: 20, color: C.teal, align: "center", valign: "middle" });
    }
  });

  // Kininase note
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 1.65, w: 9.6, h: 0.52,
    fill: { color: C.navyLight }, line: { color: C.red, pt: 1 },
  });
  s.addText([
    { text: "Kininase II = ACE (Angiotensin Converting Enzyme)", options: { bold: true, color: C.red } },
    { text: " — inactivates bradykinin by cleaving C-terminal dipeptide. ", options: { color: C.offWhite } },
    { text: "ACE inhibitors block this → ↑bradykinin → antihypertensive benefit + ACE-inhibitor cough!", options: { color: C.amber } },
  ], { x: 0.35, y: 1.65, w: 9.3, h: 0.52, fontSize: 10, valign: "middle" });

  // Two receptor cards
  card(s, 0.2, 2.3, 4.6, 1.2, C.navyLight, C.green);
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 2.3, w: 4.6, h: 0.32, fill: { color: C.green }, line: { color: C.green, pt: 0 } });
  s.addText("B2 RECEPTOR (constitutive)", { x: 0.3, y: 2.3, w: 4.4, h: 0.32, fontSize: 10, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText("Mediates most physiological actions\n• Vasodilation (via NO + prostacyclin)\n• ↑Vascular permeability  •  Pain (sensitises nociceptors)\n• Bronchoconstriction  •  Uterine contraction", {
    x: 0.3, y: 2.65, w: 4.4, h: 0.8, fontSize: 9.5, color: C.offWhite,
  });

  card(s, 5.0, 2.3, 4.8, 1.2, C.navyLight, C.orange);
  s.addShape(pres.shapes.RECTANGLE, { x: 5.0, y: 2.3, w: 4.8, h: 0.32, fill: { color: C.orange }, line: { color: C.orange, pt: 0 } });
  s.addText("B1 RECEPTOR (inducible — upregulated by inflammation)", { x: 5.1, y: 2.3, w: 4.6, h: 0.32, fontSize: 10, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText("Mediates pain and inflammatory responses in sustained/chronic inflammation\nActivated by des-Arg-bradykinin (kinin metabolite)\nTarget for novel analgesic/anti-inflammatory agents", {
    x: 5.1, y: 2.65, w: 4.6, h: 0.8, fontSize: 9.5, color: C.offWhite,
  });

  // Clinical box
  card(s, 0.2, 3.65, 9.6, 1.75, C.navyLight, C.red);
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 3.65, w: 9.6, h: 0.32, fill: { color: C.red }, line: { color: C.red, pt: 0 } });
  s.addText("CLINICAL RELEVANCE", { x: 0.3, y: 3.65, w: 9.4, h: 0.32, fontSize: 10, bold: true, color: C.white, valign: "middle", margin: 0 });
  s.addText([
    { text: "ACE inhibitor cough: ", options: { bold: true, color: C.amber } },
    { text: "bradykinin accumulation stimulates airway sensory fibres\n", options: { color: C.offWhite } },
    { text: "Hereditary angioedema: ", options: { bold: true, color: C.amber } },
    { text: "C1-INH deficiency → uncontrolled kinin generation → Rx with icatibant (B2 blocker), ecallantide (kallikrein inhibitor), C1-INH concentrate\n", options: { color: C.offWhite } },
    { text: "Carboxypeptidase N (Kininase I): ", options: { bold: true, color: C.teal } },
    { text: "removes C-terminal Arg of bradykinin", options: { color: C.offWhite } },
  ], { x: 0.35, y: 4.0, w: 9.2, h: 1.3, fontSize: 9.5, valign: "top" });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 6 — NATRIURETIC PEPTIDES & OTHERS
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "PEPTIDE-DERIVED  |  NATRIURETIC PEPTIDES, SUBSTANCE P & ENDOTHELINS", C.green);

  // ── Natriuretic Peptides ──
  s.addText("Natriuretic Peptides", { x: 0.3, y: 0.66, w: 4, h: 0.3, fontSize: 13, bold: true, color: C.green });

  const npRows = [
    ["ANP", "Atria", "Atrial stretch", "Natriuresis, diuresis, vasodilation, ↓RAAS"],
    ["BNP", "Ventricles", "Wall stress", "Same as ANP; biomarker for heart failure (NT-proBNP)"],
    ["CNP", "Endothelium", "Shear stress", "Vasodilation; less natriuretic; CNS effects"],
  ];

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 1.0, w: 4.9, h: 0.3,
    fill: { color: C.green }, line: { color: C.green, pt: 0 },
  });
  s.addText("PEPTIDE  |  SOURCE  |  TRIGGER  |  ACTIONS", {
    x: 0.3, y: 1.0, w: 4.8, h: 0.3, fontSize: 8.5, bold: true, color: C.navy, valign: "middle", margin: 0,
  });
  npRows.forEach((r, i) => {
    const y = 1.3 + i * 0.52;
    const bg = i % 2 === 0 ? C.navyLight : C.navyMid;
    s.addShape(pres.shapes.RECTANGLE, { x: 0.25, y, w: 4.9, h: 0.5, fill: { color: bg }, line: { color: bg, pt: 0 } });
    accentBar(s, 0.25, y, 0.5, C.green);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.35, y: y + 0.08, w: 0.55, h: 0.32, rectRadius: 0.05, fill: { color: C.green }, line: { color: C.green, pt: 0 } });
    s.addText(r[0], { x: 0.35, y: y + 0.08, w: 0.55, h: 0.32, fontSize: 9, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
    s.addText(r[1], { x: 0.97, y, w: 0.75, h: 0.5, fontSize: 8.5, color: C.teal, valign: "middle" });
    s.addText(r[2], { x: 1.74, y, w: 0.95, h: 0.5, fontSize: 8.5, color: C.lightGray, valign: "middle" });
    s.addText(r[3], { x: 2.72, y, w: 2.38, h: 0.5, fontSize: 8.5, color: C.offWhite, valign: "middle" });
  });

  s.addText("Mechanism: guanylyl cyclase receptor → ↑cGMP → vasodilation + natriuresis\nClinical: nesiritide (rBNP) for acute heart failure; NT-proBNP as diagnostic biomarker", {
    x: 0.25, y: 2.9, w: 4.9, h: 0.6, fontSize: 9, color: C.gray, italic: true,
  });

  // ── Substance P ──
  card(s, 5.35, 0.65, 4.4, 1.5, C.navyLight, C.purple);
  s.addShape(pres.shapes.RECTANGLE, { x: 5.35, y: 0.65, w: 4.4, h: 0.32, fill: { color: C.purple }, line: { color: C.purple, pt: 0 } });
  s.addText("SUBSTANCE P", { x: 5.45, y: 0.65, w: 4.2, h: 0.32, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
  s.addText([
    { text: "Structure: ", options: { bold: true, color: C.purple } },
    { text: "Undecapeptide (11 amino acids); tachykinin family\n", options: { color: C.offWhite } },
    { text: "Source: ", options: { bold: true, color: C.purple } },
    { text: "Primary afferent C-fibres, CNS\n", options: { color: C.offWhite } },
    { text: "Receptor: ", options: { bold: true, color: C.purple } },
    { text: "NK1 (neurokinin-1), Gq-coupled\n", options: { color: C.offWhite } },
    { text: "Actions: ", options: { bold: true, color: C.purple } },
    { text: "Pain transmission, neurogenic inflammation, vasodilation, ↑vascular permeability", options: { color: C.offWhite } },
  ], { x: 5.45, y: 1.0, w: 4.2, h: 1.1, fontSize: 9.5 });

  // ── Endothelins ──
  card(s, 5.35, 2.32, 4.4, 2.1, C.navyLight, C.red);
  s.addShape(pres.shapes.RECTANGLE, { x: 5.35, y: 2.32, w: 4.4, h: 0.32, fill: { color: C.red }, line: { color: C.red, pt: 0 } });
  s.addText("ENDOTHELINS", { x: 5.45, y: 2.32, w: 4.2, h: 0.32, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
  s.addText([
    { text: "3 isoforms: ", options: { bold: true, color: C.red } },
    { text: "ET-1 (main), ET-2, ET-3 — 21 aa peptides\n", options: { color: C.offWhite } },
    { text: "Source: ", options: { bold: true, color: C.red } },
    { text: "Vascular endothelium, heart, kidney\n", options: { color: C.offWhite } },
    { text: "Synthesis: ", options: { bold: true, color: C.red } },
    { text: "Preproendothelin → Big ET-1 → [ECE] → ET-1\n", options: { color: C.offWhite } },
    { text: "ETA: ", options: { bold: true, color: C.amber } },
    { text: "vasoconstriction, smooth muscle proliferation\n", options: { color: C.offWhite } },
    { text: "ETB: ", options: { bold: true, color: C.teal } },
    { text: "vasodilation via NO; endothelial clearance of ET-1\n", options: { color: C.offWhite } },
    { text: "ET-1 = most potent endogenous vasoconstrictor known\n", options: { bold: true, color: C.amber } },
    { text: "Rx: bosentan/ambrisentan (ETA/ETB blockers) → pulmonary arterial hypertension", options: { color: C.offWhite } },
  ], { x: 5.45, y: 2.67, w: 4.2, h: 1.7, fontSize: 9.5 });

  // Bottom note
  s.addText("Also: Angiotensin II (vasoconstriction, ↑aldosterone) and neuropeptide Y (NPY) are classified as peptide autocoids/paracoids in many contexts", {
    x: 0.25, y: 5.2, w: 9.5, h: 0.3, fontSize: 8.5, color: C.gray, italic: true, align: "center",
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 7 — LIPID AUTOCOIDS: EICOSANOID PATHWAY OVERVIEW
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "LIPID-DERIVED  |  EICOSANOIDS — BIOSYNTHETIC PATHWAYS", C.purple);

  // Central precursor box
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 3.6, y: 0.65, w: 2.8, h: 0.8, rectRadius: 0.1,
    fill: { color: C.navyLight }, line: { color: C.white, pt: 1.5 },
  });
  s.addText("Membrane Phospholipids", { x: 3.6, y: 0.67, w: 2.8, h: 0.38, fontSize: 10, bold: true, color: C.white, align: "center" });
  s.addText("↓ Phospholipase A2 (PLA2)\n[Corticosteroids inhibit via lipocortin]", {
    x: 3.6, y: 1.0, w: 2.8, h: 0.38, fontSize: 8.5, color: C.gray, align: "center",
  });

  // AA box
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 3.9, y: 1.55, w: 2.2, h: 0.55, rectRadius: 0.08,
    fill: { color: C.purple }, line: { color: C.purple, pt: 0 },
  });
  s.addText("ARACHIDONIC ACID (AA)", { x: 3.9, y: 1.55, w: 2.2, h: 0.55, fontSize: 9.5, bold: true, color: C.white, align: "center", valign: "middle" });

  // Connector
  s.addShape(pres.shapes.RECTANGLE, { x: 4.95, y: 1.44, w: 0.1, h: 0.12, fill: { color: C.white }, line: { color: C.white, pt: 0 } });

  // ── COX PATHWAY ──
  card(s, 0.2, 2.22, 3.0, 3.1, C.navyLight, C.teal);
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 2.22, w: 3.0, h: 0.38, fill: { color: C.teal }, line: { color: C.teal, pt: 0 } });
  s.addText("COX PATHWAY", { x: 0.3, y: 2.22, w: 2.8, h: 0.38, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText("Enzyme: Cyclooxygenase-1 (constitutive)\n          Cyclooxygenase-2 (inducible)\nInhibited by: NSAIDs / Aspirin\n\n→ PGG2 → PGH2 (precursor)\n\n• PGE2: fever, vasodilation, pain\n• PGI2 (prostacyclin): vasodilation, ↓platelets\n• TxA2: vasoconstriction, ↑platelets\n• PGD2: bronchoconstriction, sleep\n• PGF2α: uterine contraction", {
    x: 0.3, y: 2.65, w: 2.8, h: 2.6, fontSize: 9.5, color: C.offWhite,
  });

  // ── LOX PATHWAY ──
  card(s, 3.5, 2.22, 3.0, 3.1, C.navyLight, C.orange);
  s.addShape(pres.shapes.RECTANGLE, { x: 3.5, y: 2.22, w: 3.0, h: 0.38, fill: { color: C.orange }, line: { color: C.orange, pt: 0 } });
  s.addText("LOX PATHWAY", { x: 3.6, y: 2.22, w: 2.8, h: 0.38, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });
  s.addText("Enzyme: 5-Lipoxygenase (5-LOX)\nActivated by: FLAP protein\nInhibited by: Zileuton\n\n→ 5-HPETE → LTA4\n\n• LTB4: neutrophil chemotaxis\n• LTC4/D4/E4 (cysteinyl-LTs)\n  = bronchoconstriction, ↑mucus,\n  ↑vascular permeability\n• Lipoxins: anti-inflammatory signals", {
    x: 3.6, y: 2.65, w: 2.8, h: 2.6, fontSize: 9.5, color: C.offWhite,
  });

  // ── CYP PATHWAY ──
  card(s, 6.8, 2.22, 3.0, 3.1, C.navyLight, C.red);
  s.addShape(pres.shapes.RECTANGLE, { x: 6.8, y: 2.22, w: 3.0, h: 0.38, fill: { color: C.red }, line: { color: C.red, pt: 0 } });
  s.addText("CYP PATHWAY", { x: 6.9, y: 2.22, w: 2.8, h: 0.38, fontSize: 11, bold: true, color: C.white, valign: "middle", margin: 0 });
  s.addText("Enzyme: Cytochrome P450\nEpoxidase / ω-hydroxylase\n\n→ EETs (epoxyeicosatrienoic acids)\n→ HETEs (hydroxyeicosatetraenoic acids)\n\n• Vasodilation (EETs)\n• Renal tubular ion transport\n• ↑Cell proliferation\n• Less pharmacologically targeted\n  than COX/LOX", {
    x: 6.9, y: 2.65, w: 2.8, h: 2.6, fontSize: 9.5, color: C.offWhite,
  });

  // Arrow from AA to each pathway
  s.addShape(pres.shapes.RECTANGLE, { x: 1.65, y: 2.1, w: 0.08, h: 0.13, fill: { color: C.teal }, line: { color: C.teal, pt: 0 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 4.92, y: 2.1, w: 0.08, h: 0.13, fill: { color: C.orange }, line: { color: C.orange, pt: 0 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 8.25, y: 2.1, w: 0.08, h: 0.13, fill: { color: C.red }, line: { color: C.red, pt: 0 } });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 8 — PROSTANOIDS IN DETAIL
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "LIPID-DERIVED  |  PROSTANOIDS (COX Pathway Products)", C.teal);

  // COX-1 vs COX-2 mini cards
  card(s, 0.2, 0.65, 4.6, 0.95, C.navyLight, C.teal);
  s.addText([
    { text: "COX-1 (constitutive): ", options: { bold: true, color: C.teal } },
    { text: "Housekeeping — gastric cytoprotection (PGE2/PGI2), platelet TxA2, renal homeostasis. Inhibited by non-selective NSAIDs & aspirin.", options: { color: C.offWhite } },
  ], { x: 0.35, y: 0.68, w: 4.3, h: 0.89, fontSize: 9.5, valign: "middle" });

  card(s, 5.0, 0.65, 4.8, 0.95, C.navyLight, C.orange);
  s.addText([
    { text: "COX-2 (inducible): ", options: { bold: true, color: C.orange } },
    { text: "Upregulated by cytokines, shear stress, growth factors. Source of inflammatory prostanoids. Selectively inhibited by coxibs (celecoxib, etoricoxib). Also constitutive in kidney & brain.", options: { color: C.offWhite } },
  ], { x: 5.15, y: 0.68, w: 4.5, h: 0.89, fontSize: 9.5, valign: "middle" });

  // Table
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 1.73, w: 9.6, h: 0.34,
    fill: { color: C.teal }, line: { color: C.teal, pt: 0 },
  });
  s.addText("PROSTANOID  |  MAIN SOURCE  |  RECEPTOR  |  KEY ACTIONS  |  CLINICAL USE", {
    x: 0.3, y: 1.73, w: 9.5, h: 0.34, fontSize: 9.5, bold: true, color: C.navy, valign: "middle", margin: 0,
  });

  const pRows = [
    ["PGE2", "Many tissues (COX-2)", "EP1-EP4", "Vasodilation, fever (hypothalamus), pain sensitisation, uterine contraction, gastric cytoprotection", "Misoprostol (PGE1 analog) — ulcer Rx, cervical ripening"],
    ["PGI2\n(Prostacyclin)", "Vascular endothelium", "IP (Gs→↑cAMP)", "Potent vasodilation, inhibits platelet aggregation, renal vasodilation — OPPOSES TxA2", "Epoprostenol, iloprost — pulmonary arterial hypertension"],
    ["TxA2", "Platelets (COX-1)", "TP (Gq)", "Potent vasoconstriction, platelet aggregation, bronchoconstriction. Short t½ (<30 sec)", "Aspirin inhibits COX-1 irreversibly → antiplatelet"],
    ["PGD2", "Mast cells, brain", "DP1, DP2", "Vasodilation, bronchoconstriction, eosinophil chemotaxis, sleep regulation", "DP2 (CRTH2) antagonists in asthma (investigational)"],
    ["PGF2α", "Uterus, lungs", "FP (Gq)", "Uterine contraction, luteolysis, bronchoconstriction, ↑IOP", "Latanoprost (FP agonist) → glaucoma; dinoprostone → labour"],
  ];
  const rowBgs = [C.navyLight, C.navyMid, C.navyLight, C.navyMid, C.navyLight];
  pRows.forEach((row, i) => {
    const y = 2.07 + i * 0.63;
    s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y, w: 9.6, h: 0.6, fill: { color: rowBgs[i] }, line: { color: rowBgs[i], pt: 0 } });
    accentBar(s, 0.2, y, 0.6, C.teal);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.32, y: y + 0.1, w: 0.95, h: 0.38, rectRadius: 0.05, fill: { color: C.teal }, line: { color: C.teal, pt: 0 } });
    s.addText(row[0], { x: 0.32, y: y + 0.1, w: 0.95, h: 0.38, fontSize: 8.5, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
    s.addText(row[1], { x: 1.33, y, w: 1.45, h: 0.6, fontSize: 8.5, color: C.teal,    valign: "middle" });
    s.addText(row[2], { x: 2.82, y, w: 1.1,  h: 0.6, fontSize: 8.5, color: C.lightGray, valign: "middle" });
    s.addText(row[3], { x: 3.96, y, w: 3.3,  h: 0.6, fontSize: 8.5, color: C.offWhite,  valign: "middle" });
    s.addText(row[4], { x: 7.3,  y, w: 2.45, h: 0.6, fontSize: 8,   color: C.amber,     valign: "middle" });
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 9 — LEUKOTRIENES, LIPOXINS & PAF
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "LIPID-DERIVED  |  LEUKOTRIENES · LIPOXINS · PAF", C.orange);

  // Leukotrienes section
  card(s, 0.2, 0.65, 5.65, 2.85, C.navyLight, C.orange);
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 0.65, w: 5.65, h: 0.34, fill: { color: C.orange }, line: { color: C.orange, pt: 0 } });
  s.addText("LEUKOTRIENES (5-LOX Pathway)", { x: 0.3, y: 0.65, w: 5.5, h: 0.34, fontSize: 11, bold: true, color: C.navy, valign: "middle", margin: 0 });

  s.addText([
    { text: "AA → 5-HPETE → LTA4 (unstable epoxide)\n", options: { color: C.teal, bold: true } },
    { text: "           ↓ LTA4 hydrolase              ↓ LTC4 synthase + glutathione\n", options: { color: C.gray } },
    { text: "         LTB4                               LTC4 → LTD4 → LTE4\n", options: { color: C.offWhite } },
  ], { x: 0.32, y: 1.03, w: 5.45, h: 0.65, fontSize: 9.5 });

  const ltRows = [
    { name: "LTB4",     color: C.orange, desc: "Potent neutrophil chemotaxis & adhesion; promotes acute inflammation; activates BLT1/BLT2 receptors" },
    { name: "LTC4/D4/E4", color: C.red, desc: "Cysteinyl-LTs (SRS-A) — 1000× more potent than histamine for bronchoconstriction; ↑mucus; ↑vascular permeability → asthma, anaphylaxis" },
    { name: "Lipoxins\nLXA4/LXB4", color: C.green, desc: "Anti-inflammatory 'stop signals' — inhibit neutrophil recruitment, promote resolution of inflammation; formed by 15-LOX + 5-LOX cooperation" },
  ];
  ltRows.forEach((r, i) => {
    const y = 1.72 + i * 0.56;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.32, y: y + 0.05, w: 1.1, h: 0.44, rectRadius: 0.06, fill: { color: r.color }, line: { color: r.color, pt: 0 } });
    s.addText(r.name, { x: 0.32, y: y + 0.05, w: 1.1, h: 0.44, fontSize: 8.5, bold: true, color: C.navy, align: "center", valign: "middle", margin: 0 });
    s.addText(r.desc, { x: 1.5, y, w: 4.2, h: 0.54, fontSize: 9, color: C.offWhite, valign: "middle" });
  });

  // Drug box inside leukotriene card
  s.addShape(pres.shapes.RECTANGLE, { x: 0.32, y: 3.2, w: 5.45, h: 0.24, fill: { color: "102040" }, line: { color: "102040", pt: 0 } });
  s.addText([
    { text: "Drugs: ", options: { bold: true, color: C.amber } },
    { text: "Montelukast, zafirlukast (CysLT1 blockers) — asthma/rhinitis  |  Zileuton (5-LOX inhibitor) — asthma", options: { color: C.offWhite } },
  ], { x: 0.35, y: 3.2, w: 5.4, h: 0.24, fontSize: 8.5, valign: "middle" });

  // PAF section
  card(s, 6.1, 0.65, 3.7, 4.7, C.navyLight, C.red);
  s.addShape(pres.shapes.RECTANGLE, { x: 6.1, y: 0.65, w: 3.7, h: 0.34, fill: { color: C.red }, line: { color: C.red, pt: 0 } });
  s.addText("PLATELET-ACTIVATING FACTOR (PAF)", { x: 6.2, y: 0.65, w: 3.5, h: 0.34, fontSize: 10, bold: true, color: C.white, valign: "middle", margin: 0 });

  s.addText([
    { text: "Structure: ", options: { bold: true, color: C.red } },
    { text: "1-O-alkyl-2-acetyl-sn-glycero-3-phosphocholine (acetylated phospholipid)\n\n", options: { color: C.offWhite } },
    { text: "Sources: ", options: { bold: true, color: C.red } },
    { text: "Platelets, mast cells, neutrophils, monocytes, vascular endothelium\n\n", options: { color: C.offWhite } },
    { text: "Receptor: ", options: { bold: true, color: C.red } },
    { text: "PAF-R (PAFR) — GPCR (Gi/Gq)\n\n", options: { color: C.offWhite } },
    { text: "Key Actions:\n", options: { bold: true, color: C.amber } },
    { text: "• Platelet aggregation & activation\n• Potent bronchoconstriction\n• Vasoconstriction (low dose) / vasodilation (high dose)\n• ↑Vascular permeability\n• Leukocyte chemotaxis & activation\n• Key mediator in anaphylaxis & severe sepsis\n\n", options: { color: C.offWhite } },
    { text: "Metabolism: ", options: { bold: true, color: C.teal } },
    { text: "Rapidly inactivated by PAF-acetylhydrolase (PAF-AH)\n\n", options: { color: C.offWhite } },
    { text: "Note: ", options: { bold: true, color: C.amber } },
    { text: "PAF-AH deficiency is associated with severe asthma in children", options: { color: C.offWhite } },
  ], { x: 6.2, y: 1.04, w: 3.5, h: 4.2, fontSize: 9.5 });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 10 — PHARMACOLOGY & DRUG SUMMARY
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "PHARMACOLOGICAL TARGETS — DRUGS ACTING ON AUTOCOID PATHWAYS", C.teal);

  const drugs = [
    { cat: "H1 Blockers", color: C.amber, drugs: "1st gen: diphenhydramine, promethazine, chlorpheniramine\n2nd gen: cetirizine, loratadine, fexofenadine (no sedation)\nUse: allergy, urticaria, motion sickness, anaphylaxis (adjunct)" },
    { cat: "H2 Blockers", color: C.orange, drugs: "Ranitidine, famotidine, cimetidine\nUse: peptic ulcer, GERD, Zollinger-Ellison syndrome" },
    { cat: "5-HT Drugs", color: C.purple, drugs: "Triptans (5-HT1B/D agonist): sumatriptan — migraine\nSSRIs/SNRIs: fluoxetine, venlafaxine — depression\nOndansetron (5-HT3 antagonist): chemo nausea\nBuspirone (5-HT1A partial agonist): anxiety" },
    { cat: "ACE Inhibitors\n(↑Bradykinin)", color: C.green, drugs: "Enalapril, lisinopril, ramipril\nBenefit: ↑bradykinin → vasodilation, renal protection\nSide effect: dry cough (bradykinin accumulation → tachykinins → airway irritation)" },
    { cat: "Eicosanoid\nTargets", color: C.teal, drugs: "NSAIDs (COX-1+2): ibuprofen, naproxen — anti-inflammatory, analgesic\nAspirin (COX-1 irreversible): antiplatelet\nCoxibs (COX-2): celecoxib — arthritis (↑CV risk)\nMontelukast (CysLT1): asthma\nLatanoprost (PGF2α): glaucoma\nEpoprostenol (PGI2): PAH" },
    { cat: "Corticosteroids\n(Master inhibitor)", color: C.red, drugs: "↑Lipocortin → ↓PLA2 → blocks ALL eicosanoid pathways\nDexamethasone, prednisolone — anti-inflammatory, anaphylaxis" },
  ];

  const cols = [0, 1, 0, 1, 0, 1];
  const rows = [0, 0, 1, 1, 2, 2];
  const xStart = [0.2, 5.0];
  const yStart = [0.65, 2.38, 4.1];
  const cardW = 4.65;
  const cardH = 1.55;

  drugs.forEach((d, i) => {
    const x = xStart[cols[i]];
    const y = yStart[rows[i]];
    card(s, x, y, cardW, cardH, C.navyLight, d.color);
    s.addShape(pres.shapes.RECTANGLE, { x, y, w: cardW, h: 0.3, fill: { color: d.color }, line: { color: d.color, pt: 0 } });
    s.addText(d.cat, { x: x + 0.1, y, w: cardW - 0.15, h: 0.3, fontSize: 10, bold: true, color: i === 2 ? C.white : C.navy, valign: "middle", margin: 0 });
    s.addText(d.drugs, { x: x + 0.12, y: y + 0.33, w: cardW - 0.2, h: 1.18, fontSize: 8.8, color: C.offWhite, valign: "top" });
  });
}

// ─────────────────────────────────────────────────────────────────
// SLIDE 11 — SUMMARY TABLE
// ─────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.background = { color: C.navy };

  sectionBar(s, "SUMMARY TABLE — AUTOCOIDS AT A GLANCE", C.teal);

  const thead = [
    [
      { text: "CLASS",      options: { bold: true, color: C.navy, fill: { color: C.teal } } },
      { text: "AUTOCOID",   options: { bold: true, color: C.navy, fill: { color: C.teal } } },
      { text: "PRECURSOR",  options: { bold: true, color: C.navy, fill: { color: C.teal } } },
      { text: "KEY ENZYME", options: { bold: true, color: C.navy, fill: { color: C.teal } } },
      { text: "MAIN ACTIONS", options: { bold: true, color: C.navy, fill: { color: C.teal } } },
    ],
  ];

  const trows = [
    [
      { text: "AMINE", options: { bold: true, color: C.amber, fill: { color: C.navyLight } } },
      { text: "Histamine", options: { color: C.offWhite, fill: { color: C.navyLight } } },
      { text: "L-Histidine", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Histidine decarboxylase", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Allergy, inflammation, gastric acid, itch (H1–H4)", options: { color: C.offWhite, fill: { color: C.navyLight } } },
    ],
    [
      { text: "", options: { fill: { color: C.navyMid } } },
      { text: "Serotonin (5-HT)", options: { color: C.offWhite, fill: { color: C.navyMid } } },
      { text: "L-Tryptophan", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "Tryptophan hydroxylase", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "GI motility, platelet aggregation, mood, vasoconstriction", options: { color: C.offWhite, fill: { color: C.navyMid } } },
    ],
    [
      { text: "PEPTIDE", options: { bold: true, color: C.green, fill: { color: C.navyLight } } },
      { text: "Bradykinin", options: { color: C.offWhite, fill: { color: C.navyLight } } },
      { text: "Kininogens (HMW/LMW)", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Kallikreins; degraded by ACE (Kininase II)", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Vasodilation, pain, ↑vascular permeability, inflammation", options: { color: C.offWhite, fill: { color: C.navyLight } } },
    ],
    [
      { text: "", options: { fill: { color: C.navyMid } } },
      { text: "ANP/BNP", options: { color: C.offWhite, fill: { color: C.navyMid } } },
      { text: "Preproprotein (heart)", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "Proteolytic cleavage", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "Natriuresis, vasodilation, ↓RAAS", options: { color: C.offWhite, fill: { color: C.navyMid } } },
    ],
    [
      { text: "", options: { fill: { color: C.navyLight } } },
      { text: "Endothelins", options: { color: C.offWhite, fill: { color: C.navyLight } } },
      { text: "Preproendothelin", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Endothelin converting enzyme (ECE)", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "ET-1: most potent vasoconstrictor; ETA = constriction, ETB = dilation", options: { color: C.offWhite, fill: { color: C.navyLight } } },
    ],
    [
      { text: "LIPID", options: { bold: true, color: C.purple, fill: { color: C.navyMid } } },
      { text: "PGE2 / PGI2 / TxA2", options: { color: C.offWhite, fill: { color: C.navyMid } } },
      { text: "Arachidonic acid", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "COX-1 / COX-2", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "Inflammation, fever, hemostasis, gastric protection, reproduction", options: { color: C.offWhite, fill: { color: C.navyMid } } },
    ],
    [
      { text: "", options: { fill: { color: C.navyLight } } },
      { text: "Leukotrienes", options: { color: C.offWhite, fill: { color: C.navyLight } } },
      { text: "Arachidonic acid", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "5-Lipoxygenase (5-LOX)", options: { color: C.lightGray, fill: { color: C.navyLight } } },
      { text: "Bronchoconstriction (LTC4/D4/E4), neutrophil chemotaxis (LTB4)", options: { color: C.offWhite, fill: { color: C.navyLight } } },
    ],
    [
      { text: "", options: { fill: { color: C.navyMid } } },
      { text: "PAF", options: { color: C.offWhite, fill: { color: C.navyMid } } },
      { text: "Membrane phospholipids", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "PLA2 + acetyltransferase", options: { color: C.lightGray, fill: { color: C.navyMid } } },
      { text: "Platelet activation, bronchoconstriction, anaphylaxis, sepsis", options: { color: C.offWhite, fill: { color: C.navyMid } } },
    ],
  ];

  s.addTable([...thead, ...trows], {
    x: 0.2, y: 0.65, w: 9.6,
    colW: [1.0, 1.5, 1.7, 2.1, 3.3],
    fontSize: 8.8,
    border: { pt: 0.5, color: "1E3354" },
    margin: 3,
    rowH: 0.5,
  });

  s.addText("Sources: Katzung's Basic & Clinical Pharmacology 16e · Goodman & Gilman's 13e · Ganong's Physiology 26e · Robbins Pathology", {
    x: 0, y: 5.32, w: 10, h: 0.28,
    fontSize: 7.5, color: C.gray, align: "center",
  });
}

// ─── OUTPUT ────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/autocoids-pptx/Autocoids_Pharmacology.pptx" })
  .then(() => console.log("✅ Saved: Autocoids_Pharmacology.pptx"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/autocoids-pptx && node autocoids.js 2>&1

Running Command

node -e "const p = require('pptxgenjs'); const pres = new p(); console.log(Object.keys(pres.shapes).filter(k => k.toLowerCase().includes('rect')))"

Reading File
Running Command

node -e "const p = require('pptxgenjs'); const pres = new p(); console.log(Object.keys(pres.shapes).filter(k => k.toLowerCase().includes('ell') || k.toLowerCase().includes('oval') || k.toLowerCase().includes('circ')))"

Running Command

sed -i 's/pres\.shapes\.ELLIPSE/pres.shapes.OVAL/g' /home/daytona/workspace/autocoids-pptx/autocoids.js && echo "fixed"

Editing File

~/autocoids-pptx/autocoids.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/autocoids-pptx/autocoids.js'
Running Command

cd /home/daytona/workspace/autocoids-pptx && node autocoids.js 2>&1

Reading File
Editing File

~/autocoids-pptx/autocoids.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/autocoids-pptx/autocoids.js'
Running Command

cd /home/daytona/workspace/autocoids-pptx && node autocoids.js 2>&1

Your presentation is ready!

Autocoids Pharmacology

Presentation · PPTX


11 slides covering the complete topic, designed with a dark navy + teal + amber palette:
SlideContent
1Title slide with definition
2Classification overview (3-column layout: Amines / Peptides / Lipids)
3Histamine - synthesis, release triggers, full H1-H4 receptor table
4Serotonin (5-HT) - synthesis, distribution, 5-HT1A to 5-HT4 receptor table
5Bradykinin & Kallikrein-Kinin system - formation pathway, B1/B2 receptors, ACE connection
6Natriuretic peptides (ANP/BNP/CNP) + Substance P + Endothelins
7Eicosanoid biosynthetic pathways (COX / LOX / CYP) overview diagram
8Prostanoids detail - PGE2, PGI2, TxA2, PGD2, PGF2α with clinical uses
9Leukotrienes, Lipoxins & PAF
10Drug summary - H1/H2 blockers, 5-HT drugs, ACE inhibitors, eicosanoid targets, corticosteroids
11Full summary table - all autocoids at a glance

Sets of questions on autocoids exam oriented

Here are exam-oriented question sets on autocoids, organized by difficulty and type:

AUTOCOIDS — Exam Question Bank


SECTION A: Single Best Answer (MCQs)


1. Histamine is synthesized from L-histidine by which enzyme?
  • A) Histaminase
  • B) Histidine decarboxylase ✅
  • C) Monoamine oxidase
  • D) Diamine oxidase
Explanation: Histidine decarboxylase catalyzes the decarboxylation of L-histidine to histamine. MAO and diamine oxidase (DAO) are involved in its metabolism, not synthesis.

2. A patient develops severe bronchoconstriction, urticaria, and hypotension after a penicillin injection. Which autocoid is the PRIMARY mediator of this reaction?
  • A) Bradykinin
  • B) Serotonin
  • C) Histamine ✅
  • D) Leukotriene C4
Explanation: IgE-mediated (Type I hypersensitivity) anaphylaxis is primarily driven by histamine released from mast cells and basophils. LTC4 contributes to bronchoconstriction but is secondary.

3. The H3 receptor for histamine is predominantly located:
  • A) On gastric parietal cells
  • B) On presynaptic neurons in the CNS ✅
  • C) On circulating eosinophils
  • D) On vascular endothelium
Explanation: H3 receptors are presynaptic autoreceptors (and heteroreceptors) in the CNS and peripheral nerves. They inhibit release of histamine and other neurotransmitters (ACh, amines, peptides) via Gi → ↓cAMP.

4. Which of the following H1-antihistamines is LEAST likely to cause sedation?
  • A) Diphenhydramine
  • B) Promethazine
  • C) Chlorpheniramine
  • D) Fexofenadine ✅
Explanation: Fexofenadine is a second-generation H1 blocker that does not cross the blood-brain barrier significantly, hence minimal sedation. First-generation agents readily enter the CNS.

5. Serotonin is metabolized primarily to:
  • A) N-methylserotonin
  • B) 5-Hydroxyindoleacetic acid (5-HIAA) ✅
  • C) Indoleacetic acid
  • D) Homovanillic acid
Explanation: 5-HT is oxidized by MAO-A to 5-HIAA, which is excreted in urine. Elevated urinary 5-HIAA is a diagnostic marker for carcinoid tumors.

6. Triptans (e.g., sumatriptan) act as agonists at which serotonin receptor subtype?
  • A) 5-HT2A
  • B) 5-HT3
  • C) 5-HT1B/1D ✅
  • D) 5-HT4
Explanation: Triptans are selective 5-HT1B/1D agonists. 5-HT1B receptors on cranial blood vessels cause vasoconstriction; 5-HT1D receptors on trigeminal nerve terminals inhibit neuropeptide release - both actions abort migraines.

7. Which enzyme is identical to Kininase II?
  • A) Renin
  • B) Angiotensin-converting enzyme (ACE) ✅
  • C) Chymase
  • D) Tryptase
Explanation: Kininase II = ACE. It cleaves the C-terminal dipeptide from bradykinin, inactivating it. ACE inhibitors block this, prolonging bradykinin's action - contributing to their antihypertensive effect and causing the dry cough side effect.

8. A 58-year-old hypertensive patient on enalapril develops a persistent dry cough. The cough is MOST likely due to accumulation of:
  • A) Angiotensin II
  • B) Aldosterone
  • C) Bradykinin ✅
  • D) Substance P (direct)
Explanation: ACE inhibitors block kininase II, preventing bradykinin degradation. Accumulated bradykinin stimulates airway sensory C-fibres (which also release substance P and CGRP), causing cough. Switching to an ARB (which does not affect bradykinin) resolves the cough.

9. The "slow-reacting substance of anaphylaxis" (SRS-A) is now known to consist of:
  • A) Histamine and serotonin
  • B) LTC4, LTD4, and LTE4 ✅
  • C) PGD2 and TxA2
  • D) PAF and bradykinin
Explanation: SRS-A, described before the individual components were identified, is the mixture of cysteinyl leukotrienes (LTC4, LTD4, LTE4). They cause sustained bronchoconstriction 100-1000x more potent than histamine.

10. Montelukast treats asthma by blocking which receptor?
  • A) BLT1 (LTB4 receptor)
  • B) DP2 (CRTH2)
  • C) CysLT1 ✅
  • D) EP4
Explanation: Montelukast and zafirlukast are CysLT1 receptor antagonists, blocking the action of LTC4, LTD4, and LTE4 on bronchial smooth muscle, reducing bronchoconstriction and mucus secretion.

11. Aspirin inhibits platelet aggregation by irreversibly blocking:
  • A) COX-2 only
  • B) Phospholipase A2
  • C) COX-1, preventing TxA2 synthesis ✅
  • D) The thromboxane TP receptor
Explanation: Aspirin acetylates and irreversibly inhibits COX-1 in platelets (which lack nuclei and cannot synthesize new COX). This blocks TxA2 synthesis for the platelet's lifetime (~10 days). Vascular endothelial cells can regenerate COX-2 to produce PGI2.

12. Prostacyclin (PGI2) and TxA2 have OPPOSING effects on:
  • A) Leukocyte chemotaxis
  • B) Platelet aggregation and vascular tone ✅
  • C) Fever generation
  • D) Uterine contractility
Explanation: PGI2 (from endothelium): vasodilation + inhibits platelets. TxA2 (from platelets): vasoconstriction + promotes platelet aggregation. The balance between these maintains vascular homeostasis.

13. Which prostaglandin analog is used in the treatment of glaucoma?
  • A) Misoprostol (PGE1)
  • B) Latanoprost (PGF2α) ✅
  • C) Epoprostenol (PGI2)
  • D) Alprostadil (PGE1)
Explanation: Latanoprost is a PGF2α analog that reduces intraocular pressure by increasing uveoscleral outflow of aqueous humor. It is a first-line topical treatment for open-angle glaucoma.

14. Corticosteroids inhibit the production of ALL eicosanoids by:
  • A) Directly blocking COX-2
  • B) Inducing lipocortin (annexin A1) which inhibits phospholipase A2 ✅
  • C) Inhibiting 5-lipoxygenase
  • D) Blocking the thromboxane synthase enzyme
Explanation: Corticosteroids induce synthesis of lipocortin (annexin A1), which inhibits phospholipase A2 (PLA2). Since PLA2 liberates arachidonic acid from membrane phospholipids - the common precursor for all eicosanoids - all pathways (COX + LOX + CYP) are suppressed.

15. Atrial Natriuretic Peptide (ANP) exerts its natriuretic effect via:
  • A) Stimulating aldosterone release
  • B) Activating guanylyl cyclase receptors → ↑cGMP ✅
  • C) Inhibiting renin via Gi-coupled receptors
  • D) Directly blocking ENaC channels
Explanation: ANP binds to particulate (membrane-bound) guanylyl cyclase receptors (GC-A/NPR-A), generating cGMP as second messenger, which causes vasodilation and natriuresis. It also inhibits renin and aldosterone release.

SECTION B: Extended Matching Questions (EMQs)

For questions 16-22, match the drug/substance to the mechanism:
Options:
  • A) Irreversible COX-1 inhibitor
  • B) CysLT1 receptor antagonist
  • C) 5-LOX inhibitor
  • D) H2 receptor antagonist
  • E) 5-HT3 receptor antagonist
  • F) PGI2 analog
  • G) H1 receptor antagonist (2nd generation)
  • H) 5-HT1B/1D agonist
  • I) Kallikrein inhibitor
  • J) ETA/ETB receptor antagonist
QDrugAnswer
16SumatriptanH
17CetirizineG
18Aspirin (low dose antiplatelet)A
19OndansetronE
20ZileutonC
21BosentanJ
22EcallantideI

SECTION C: Short Answer / High-Yield Vivas


Q23. Explain why ACE inhibitors cause a dry cough but ARBs do not.
Answer: ACE (= Kininase II) normally degrades bradykinin by cleaving its C-terminal dipeptide. ACE inhibitors block this degradation → bradykinin accumulates in the airways. Excess bradykinin stimulates sensory C-fibre nerve endings (via B2 receptors) → releases substance P and CGRP → activates the cough reflex. ARBs (e.g. losartan) block the AT1 receptor downstream without affecting bradykinin metabolism, so no cough occurs.

Q24. What is the "triple response of Lewis"? Which autocoid mediates it?
Answer: The triple response is elicited by a firm stroke on the skin:
  1. Red line - local vasodilation (direct effect on capillaries)
  2. Flare - surrounding erythema (axon reflex - sensory nerve stimulation)
  3. Wheal - localized oedema (↑capillary permeability)
All three components are mediated primarily by histamine released from dermal mast cells, acting via H1 receptors.

Q25. Compare LTB4 and LTC4/D4/E4 in terms of source, receptor, and biological action.
Answer:
FeatureLTB4LTC4/D4/E4 (Cysteinyl-LTs)
SourceNeutrophils, macrophagesMast cells, eosinophils, basophils
ReceptorBLT1, BLT2CysLT1, CysLT2
ActionNeutrophil chemotaxis and adhesion; promotes acute inflammationBronchoconstriction (1000× > histamine), ↑mucus, ↑vascular permeability
Role in diseasePsoriasis, inflammatory bowel diseaseAsthma, anaphylaxis, allergic rhinitis

Q26. A patient with hereditary angioedema (HAE) presents with recurrent episodes of non-pitting oedema of the face, larynx, and abdomen. What is the underlying biochemical defect and how are the episodes treated?
Answer:
  • Defect: C1-esterase inhibitor (C1-INH) deficiency (Type I) or dysfunction (Type II) → uncontrolled activation of plasma kallikrein → excess bradykinin generation → B2 receptor activation → massive ↑vascular permeability
  • Acute treatment:
    • Icatibant - bradykinin B2 receptor antagonist
    • Ecallantide - plasma kallikrein inhibitor
    • C1-INH concentrate (Berinert, Cinryze) - replaces the deficient protein
  • Prophylaxis: Lanadelumab (anti-kallikrein monoclonal antibody), C1-INH concentrate, tranexamic acid

Q27. Why does selective COX-2 inhibition (coxibs) increase cardiovascular risk?
Answer: COX-2 is the dominant isoform in vascular endothelium responsible for producing PGI2 (prostacyclin), which:
  • Inhibits platelet aggregation
  • Causes vasodilation
  • Is cardioprotective
COX-1 in platelets produces TxA2 (prothrombotic, vasoconstrictive).
Aspirin and non-selective NSAIDs block both enzymes. Coxibs selectively suppress PGI2 production without affecting platelet TxA2, tipping the balance toward a prothrombotic state → ↑risk of MI and stroke. This was demonstrated by the rofecoxib (Vioxx) withdrawal in 2004.

Q28. What is PAF (Platelet-Activating Factor)? List its sources and three key pathological roles.
Answer:
  • Structure: 1-O-alkyl-2-acetyl-sn-glycero-3-phosphocholine (acetylated phospholipid - NOT a classic eicosanoid)
  • Sources: Platelets, mast cells, neutrophils, monocytes/macrophages, vascular endothelium
  • Pathological roles:
    1. Anaphylaxis - potent bronchoconstriction and vasoconstriction
    2. Severe sepsis - hypotension via vasodilation at high concentrations, endothelial activation
    3. Asthma - bronchoconstriction + eosinophil recruitment; PAF-acetylhydrolase deficiency is linked to severe asthma in children

SECTION D: Fill in the Blanks (High-Yield Facts)

#StatementAnswer
29The rate-limiting enzyme in serotonin synthesis is _____Tryptophan hydroxylase
30ET-1 is the most potent endogenous _____ knownVasoconstrictor
31Cysteinyl leukotrienes are formerly called _____Slow-reacting substance of anaphylaxis (SRS-A)
32↑Urinary 5-HIAA is diagnostic of _____Carcinoid tumor/syndrome
33The second messenger for ANP is _____cGMP
34Nesiritide is a recombinant form of _____ used in acute heart failureBNP
35_____ inhibits PLA2 by inducing lipocortin synthesisCorticosteroids
36The half-life of TxA2 is approximately _____30 seconds
37Pitolisant is an inverse agonist/antagonist at _____ receptors used in narcolepsyH3
38Bradykinin's half-life in circulation is less than _____15 seconds

SECTION E: Scenario-Based (Integrated Thinking)


Q39. A group of physicians at a restaurant all develop flushing, tachycardia, headache, and hypotension minutes after eating swordfish. What is the diagnosis and mechanism?
Answer: Scombroid fish poisoning (histamine fish poisoning). Bacterial contamination of improperly stored fish (tuna, mackerel, swordfish) causes bacterial decarboxylation of histidine → high levels of histamine in the fish. Ingestion leads to systemic histamine effects. Treatment: H1 + H2 antihistamines.

Q40. A patient with aspirin-exacerbated respiratory disease (Samter's triad) develops bronchospasm after taking ibuprofen. What is the mechanism?
Answer: In susceptible individuals, COX inhibition by NSAIDs blocks the conversion of arachidonic acid via the COX pathway. This shunts AA into the 5-LOX pathway, dramatically increasing production of cysteinyl leukotrienes (LTC4/D4/E4) → severe bronchoconstriction. These patients often have baseline eosinophilic inflammation and nasal polyps. Treatment: leukotriene receptor antagonists (montelukast), and avoidance of COX inhibitors.

Q41. Which autocoid would be elevated in a patient with a carcinoid tumour arising from the small intestine, and what clinical syndrome results?
Answer: Serotonin (5-HT) is secreted in excess by enterochromaffin cells of carcinoid tumours. Normally, 5-HT undergoes first-pass hepatic metabolism, but with liver metastases (or primary lung carcinoid), it reaches systemic circulation. Clinical syndrome: carcinoid syndrome - episodic flushing, diarrhoea, bronchospasm, right-sided valvular heart disease (tricuspid regurgitation, pulmonary stenosis). Diagnosis: ↑urinary 5-HIAA. Treatment: octreotide (somatostatin analog).

QUICK RECALL CARD

AMINE AUTOCOIDS
  Histamine: H1(Gq) H2(Gs) H3(Gi-presynaptic) H4(Gi-WBCs)
  Serotonin: 5-HT1(Gi) 5-HT2(Gq) 5-HT3(ion channel) 5-HT4(Gs)

PEPTIDE AUTOCOIDS
  Bradykinin: Kallikrein→Kininogens→BK; B1(inflam) B2(constitutive)
  ACE = Kininase II → inhibitors ↑BK → cough
  ANP/BNP: GC-A receptor → ↑cGMP → natriuresis
  ET-1: most potent vasoconstrictor; ECE synthesis; ETA(constrict) ETB(dilate)

LIPID AUTOCOIDS (all from AA via PLA2)
  COX → Prostanoids (NSAIDs/aspirin block)
    PGE2: fever, pain, vasodilation
    PGI2: vasodilation, ↓platelets (endothelium)
    TxA2: vasoconstriction, ↑platelets (platelets)
  LOX → Leukotrienes (zileuton blocks 5-LOX)
    LTB4: neutrophil chemotaxis
    LTC4/D4/E4: bronchoconstriction (montelukast blocks)
  PAF: platelet + mast cell product; anaphylaxis, sepsis

KEY DRUG LINKS
  Aspirin → irreversible COX-1 → antiplatelet
  Coxibs → ↓PGI2 only → ↑CV risk
  ACEi → ↑bradykinin → cough (not ARBs)
  Corticosteroids → lipocortin → ↓PLA2 → block all eicosanoids

These 41 questions span MCQs, EMQs, short answers, viva scenarios, and rapid-recall formats - covering the full spectrum of what exams test on autocoids. Let me know if you want these exported as a PPTX or PDF quiz format.

Hi

Hi! How can I help you today? 😊

Interms of pharmacological basis discuss autocoids the three derivatives in correct sequence

Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
I now have comprehensive material from Katzung and Goodman & Gilman. Here is the full pharmacological discussion in correct sequence:

AUTOCOIDS — Pharmacological Basis

In Correct Sequence: Amines → Peptides → Lipids

Definition: Autocoids (from Greek autos = self, akos = remedy) are endogenous substances synthesized and released locally, acting near their site of production. They differ from classical hormones (which travel in blood to distant organs) and neurotransmitters (which act across synapses). Together with cytokines, histamine, serotonin, peptides, prostaglandins, and leukotrienes constitute the autocoid group. - Katzung's Basic & Clinical Pharmacology, 16e

═══════════════════════════════

PART I: AMINE-DERIVED AUTOCOIDS

═══════════════════════════════

A. HISTAMINE

1. Chemistry & Synthesis

Histamine is a monoamine formed by decarboxylation of the amino acid L-histidine, catalyzed by histidine decarboxylase. It occurs in plants, animal tissues, venoms, and stinging secretions. Once formed, it is either stored in granules or rapidly inactivated.
L-Histidine  →[Histidine decarboxylase]→  HISTAMINE
Storage sites: Mast cells and basophil granules (predominantly), ECL cells of gastric mucosa, platelets, and CNS neurons. Mast cells are most concentrated at sites of potential tissue injury - skin, nasal/oral mucosa, lung, and around blood vessels.
Metabolism:
  • N-methylation → N-methylhistamine (by histamine-N-methyltransferase)
  • Oxidative deamination → Imidazoleacetic acid (IAA) (by MAO or DAO)
  • Final metabolites excreted in urine
Clinical note: Systemic mastocytosis, urticaria pigmentosa, and gastric carcinoid are associated with excess mast cells and increased urinary histamine metabolites.

2. Release Triggers

  • Immunological (IgE-mediated): Antigen cross-links IgE on mast cell surface → degranulation → Type I hypersensitivity
  • Non-immunological: Drugs (morphine, tubocurarine, contrast media), physical stimuli (cold, pressure), complement fragments (C3a, C5a), neuropeptides

3. Receptors & Pharmacodynamics

All four histamine receptors are G protein-coupled receptors (GPCRs). Many antihistamines act as inverse agonists (not just competitive antagonists) because histamine receptors show constitutive activity.
ReceptorG-protein / SignalLocationKey Actions
H1Gq → ↑IP3/Ca²⁺Endothelium, bronchial & GI smooth muscle, sensory nerve endingsVasodilation (via NO), bronchoconstriction, ↑vascular permeability, itch & pain, contraction of GI/uterine muscle
H2Gs → ↑cAMPGastric parietal cells, cardiac muscle, immune cells↑Gastric acid secretion, positive inotropy, vasodilation (high dose)
H3Gi → ↓cAMP, ↓Ca²⁺ influxPresynaptic neurons (CNS & PNS)Autoreceptor — inhibits release of histamine, ACh, amines, peptides; modulates appetite/satiety
H4GiBone marrow & circulating leukocytes (eosinophils, mast cells)Chemotaxis of eosinophils & mast cells; cytokine modulation; role in allergy & inflammation
H1 and H2 are postsynaptic in the brain; H3 is predominantly presynaptic.

4. Organ System Effects of Histamine

a) Cardiovascular system:
  • Small doses (H1): vasodilation of arterioles/precapillary sphincters → ↓BP, reflex tachycardia, flushing
  • Higher doses (H2): direct cardiac stimulation, ↑cAMP-mediated vasodilation
  • Capillaries: H1-mediated ↑permeability → wheal & flare
b) Respiratory system:
  • H1-mediated bronchoconstriction (especially in asthmatics)
  • ↑Bronchial secretions
c) GI tract:
  • H2-mediated ↑gastric acid & pepsin secretion from parietal cells
  • H1-mediated ↑smooth muscle tone → cramps, diarrhoea
d) Nervous system:
  • H1: stimulates sensory nerve endings → pain and itch
  • H3: modulates neurotransmitter release throughout CNS
  • Pitolisant (H3 inverse agonist) → used in narcolepsy
e) Triple Response of Lewis (skin):
  1. Red line - direct capillary dilation
  2. Flare - axon reflex (surrounding erythema)
  3. Wheal - local oedema from ↑permeability

5. Pharmacological Antagonism of Histamine

H1 Blockers (Antihistamines):
GenerationExamplesKey Properties
1st generationDiphenhydramine, promethazine, chlorpheniramine, cyproheptadineCross BBB → sedation; antimuscarinic, anti-α-adrenergic; used for motion sickness, anaphylaxis adjunct
2nd generationCetirizine, loratadine, fexofenadineDo NOT cross BBB → no sedation; few autonomic effects; preferred for allergic rhinitis, urticaria
First-generation H1 blockers also block muscarinic, α-adrenergic, and serotonin receptors - hence their antimuscarinic side effects (dry mouth, urinary retention, blurred vision) and sedation.
H2 Blockers: Ranitidine, famotidine, cimetidine - used for peptic ulcer disease, GERD.

B. SEROTONIN (5-Hydroxytryptamine, 5-HT)

1. Chemistry & Synthesis

Serotonin is an indoleamine synthesized from the essential amino acid L-tryptophan in two steps:
L-Tryptophan  →[Tryptophan hydroxylase ★ rate-limiting]→  5-HTP
5-HTP  →[Aromatic L-amino acid decarboxylase]→  SEROTONIN (5-HT)
Distribution:
  • >90% in enterochromaffin cells of the GI tract
  • Platelets (concentrated via SERT transporter; stored in vesicles by VAT, blocked by reserpine)
  • CNS: raphe nuclei of brainstem (mood, sleep, appetite, pain, blood pressure, vomiting)
Metabolism: MAO-A oxidizes 5-HT → 5-hydroxyindoleacetaldehyde → aldehyde dehydrogenase → 5-HIAA (5-hydroxyindoleacetic acid), excreted in urine.
↑Urinary 5-HIAA is a key diagnostic marker for carcinoid tumour.

2. Receptors & Pharmacodynamics

Seven families of 5-HT receptors identified (5-HT1 through 5-HT7). Six are GPCRs; one (5-HT3) is a ligand-gated Na⁺/K⁺ ion channel (nicotinic family).
ReceptorCouplingLocationKey Effects
5-HT1AGi → ↓cAMPRaphe nuclei (autoreceptor), limbic systemAnxiolysis, mood regulation; target of buspirone
5-HT1B/1DGi → ↓cAMPCranial blood vessel walls, presynaptic terminalsVasoconstriction; target of triptans (migraine)
5-HT2AGq → ↑IP3/Ca²⁺Platelets, vascular smooth muscle, CNSVasoconstriction, platelet aggregation; blocked by atypical antipsychotics
5-HT2CGqCNS (hypothalamus)Appetite suppression; target of weight-loss drugs
5-HT3Ion channel (Na⁺/K⁺)Area postrema (CTZ), gut enteric neuronsEmesis, gut motility; blocked by ondansetron
5-HT4Gs → ↑cAMPGI smooth muscle↑Gut motility (prokinetic); target of metoclopramide, prucalopride

3. Clinical Pharmacology

Agonists:
  • Buspirone (5-HT1A partial agonist) → anxiolytic (non-benzodiazepine)
  • Triptans - sumatriptan, zolmitriptan (5-HT1B/1D agonists) → migraine - cause cranial vasoconstriction + block trigeminal neuropeptide release
Antagonists:
  • Ondansetron, granisetron (5-HT3 antagonists) → chemotherapy-induced nausea/vomiting
  • Cyproheptadine (H1 + 5-HT2 antagonist) → allergies, carcinoid syndrome
  • Atypical antipsychotics (clozapine, olanzapine) → 5-HT2A blockade
Reuptake inhibitors:
  • SSRIs (fluoxetine, sertraline) → inhibit SERT → ↑synaptic 5-HT → antidepressant, anxiolytic
  • SNRIs (venlafaxine) → inhibit both SERT and noradrenaline transporter

═══════════════════════════════

PART II: PEPTIDE-DERIVED AUTOCOIDS

═══════════════════════════════

A. BRADYKININ & THE KALLIKREIN-KININ SYSTEM

1. Formation

Kinins are potent vasodilator peptides formed by the enzymatic action of kallikreins on protein substrates called kininogens.
Prekallikrein  →[Factor XIIa / FXIIa activates]→  KALLIKREIN
     ↓
PLASMA KALLIKREIN  →  cleaves HMW Kininogen  →  BRADYKININ (9 aa)
TISSUE KALLIKREIN  →  cleaves LMW Kininogen  →  KALLIDIN (Lys-bradykinin, 10 aa)
                                                        ↓ aminopeptidase
                                                   BRADYKININ
Two types of kallikreins:
  • Plasma kallikrein (activated by FXIIa): present in plasma; acts on HMW kininogen → bradykinin
  • Tissue kallikrein (in kidney, pancreas, intestine, salivary glands, sweat glands): acts on LMW kininogen → kallidin

2. Metabolism of Kinins

Half-life of bradykinin is <15 seconds - degraded by kininases:
  • Kininase I (liver-derived carboxypeptidase N): cleaves C-terminal arginine
  • Kininase II = ACE (Angiotensin Converting Enzyme): cleaves C-terminal dipeptide Phe-Arg — bradykinin is almost completely destroyed in ONE passage through the pulmonary circulation
This identity of Kininase II with ACE is pharmacologically pivotal: ACE inhibitors (enalapril, lisinopril) block bradykinin degradation → bradykinin accumulates → dry cough (B2 receptor activation of airway C-fibres → substance P release) and potentiation of antihypertensive effect.

3. Receptors & Actions

ReceptorTypeActions
B2Constitutive (always present)Mediates most normal physiological effects: vasodilation (via NO + PGI2), ↑vascular permeability, pain, bronchoconstriction, uterine contraction, ↑prostaglandin synthesis
B1Inducible (upregulated by IL-1, TNF in inflammation)Chronic pain, inflammatory responses; activated by des-Arg-bradykinin (metabolite)
Key physiological actions of bradykinin:
  • Potent vasodilation (mediated by endothelial NO and prostacyclin)
  • Pain and hyperalgesia (sensitises nociceptors)
  • Stimulates prostaglandin synthesis - linking kinin and eicosanoid systems
  • Bronchoconstriction and ↑mucus secretion
  • Natriuresis and renal vasodilation

4. Clinical Pharmacology

DrugMechanismUse
ACE inhibitors↑Bradykinin (block Kininase II)Hypertension, heart failure, nephroprotection
IcatibantB2 receptor antagonistHereditary angioedema (acute attacks)
EcallantidePlasma kallikrein inhibitorHereditary angioedema
C1-INH concentrate (Berinert)Replaces deficient C1-esterase inhibitorHereditary angioedema prophylaxis
LanadelumabAnti-kallikrein monoclonal antibodyHAE prophylaxis

B. NATRIURETIC PEPTIDES

Produced by the heart; act as paracrine/endocrine autocoids:
PeptideSourceStimulusMechanismActions
ANPAtrial myocytesAtrial stretch, volume overloadGC-A → ↑cGMPNatriuresis, diuresis, vasodilation, ↓renin/aldosterone/AVP
BNPVentricular myocytesVentricular wall stressGC-A → ↑cGMPSame as ANP; clinical biomarker for heart failure
CNPVascular endotheliumShear stressGC-B → ↑cGMPVasodilation; less natriuretic; CNS effects
Clinical use: Nesiritide (recombinant BNP) in acute decompensated heart failure; NT-proBNP as diagnostic biomarker.

C. ENDOTHELINS

  • ET-1 (most abundant in blood vessels), ET-2, ET-3 - 21 amino acid peptides
  • Synthesis: Preproendothelin → Big ET-1 → [Endothelin Converting Enzyme, ECE] → ET-1
  • ET-1 is the most potent endogenous vasoconstrictor known
ReceptorSignallingLocationAction
ETAGq → IP3/Ca²⁺Vascular smooth muscleVasoconstriction, smooth muscle proliferation
ETBGi/GqVascular endotheliumVasodilation (via NO + PGI2); clearance of ET-1
Drugs: Bosentan, ambrisentan (ETA/B blockers) → pulmonary arterial hypertension

D. SUBSTANCE P

  • Undecapeptide (11 amino acids); belongs to tachykinin family
  • Released from primary afferent C-fibres and CNS neurons
  • Receptor: NK1 (neurokinin-1), Gq-coupled
  • Actions: pain transmission, neurogenic inflammation, vasodilation, emesis
  • Aprepitant (NK1 antagonist) → chemotherapy-induced nausea/vomiting

═══════════════════════════════

PART III: LIPID-DERIVED AUTOCOIDS

═══════════════════════════════

All lipid autocoids originate from arachidonic acid (AA), a 20-carbon polyunsaturated fatty acid ("eicosa" = 20 in Greek), liberated from membrane phospholipids.

Common Gateway: PLA2 → Arachidonic Acid

Membrane Phospholipids
         ↓ Phospholipase A2 (PLA2) [BLOCKED BY CORTICOSTEROIDS via lipocortin]
    Arachidonic Acid (AA)
    /              |              \
COX Pathway    LOX Pathway    CYP Pathway

A. COX PATHWAY → PROSTANOIDS

Two COX isoforms:
  • COX-1 (constitutive): Expressed in virtually all cells; housekeeping - gastric mucosal protection, platelet TxA2, renal homeostasis
  • COX-2 (inducible): Upregulated by cytokines, shear stress, growth factors; principal source of inflammatory prostanoids; also constitutive in kidney and brain
NSAIDs inhibit both COX-1 and COX-2. Coxibs (celecoxib, etoricoxib) selectively inhibit COX-2.
COX reaction: AA → PGG2 → PGH2 (unstable cyclic endoperoxide, the common precursor)
ProstanoidPredominant SourceReceptorKey ActionsPharmacological Use
PGE2Widely expressed (COX-2)EP1-EP4Fever (hypothalamic set-point ↑), vasodilation, pain sensitisation, uterine contraction, gastric cytoprotectionMisoprostol (PGE1 analog): ulcer, cervical ripening
PGI2 (Prostacyclin)Vascular endotheliumIP (Gs → ↑cAMP)Vasodilation, inhibits platelet aggregation, renal vasodilationEpoprostenol, iloprost: pulmonary arterial hypertension
TxA2Platelets (COX-1)TP (Gq → ↑IP3)Potent vasoconstriction, platelet aggregation (opposes PGI2)Aspirin irreversibly inhibits COX-1 → antiplatelet (t½ TxA2 <30 sec)
PGD2Mast cells, brainDP1, DP2Vasodilation, bronchoconstriction, eosinophil chemotaxis, sleep regulationDP2 antagonists (investigational) in asthma
PGF2αUterus, lungsFP (Gq)Uterine contraction, luteolysis, bronchoconstriction, ↑IOPLatanoprost (FP agonist): glaucoma; Dinoprostone: labour induction
PGI2 vs TxA2 balance: PGI2 from endothelium opposes TxA2 from platelets. Selective COX-2 inhibitors (coxibs) suppress PGI2 without affecting platelet TxA2 → pro-thrombotic state → ↑cardiovascular risk (Vioxx withdrawal 2004).

B. LOX PATHWAY → LEUKOTRIENES & LIPOXINS

5-Lipoxygenase (5-LOX) (activated by FLAP - 5-LOX Activating Protein):
AA  →[5-LOX + FLAP]→  5-HPETE  →  LTA4 (unstable epoxide)
                                    /              \
                          LTA4 hydrolase      LTC4 synthase (+glutathione)
                                ↓                      ↓
                              LTB4              LTC4 → LTD4 → LTE4
                         (dihydroxy)          (cysteinyl leukotrienes)
LeukotrieneSourceReceptorKey ActionsClinical Relevance
LTB4Neutrophils, macrophagesBLT1, BLT2Potent neutrophil chemotaxis and adhesion; acute inflammationPsoriasis, IBD
LTC4/D4/E4 (Cysteinyl-LTs = SRS-A)Mast cells, eosinophils, basophilsCysLT1, CysLT2Bronchoconstriction (1000× > histamine), ↑mucus secretion, ↑vascular permeabilityAsthma, anaphylaxis, aspirin-exacerbated respiratory disease
The old term "Slow-Reacting Substance of Anaphylaxis" (SRS-A) refers to the mixture of LTC4, LTD4, and LTE4.
Lipoxins (LXA4, LXB4):
  • Formed by interaction of 15-LOX and 5-LOX
  • Act as "stop signals" for inflammation
  • Inhibit neutrophil recruitment, promote resolution, counter-regulatory to leukotrienes
  • Aspirin-triggered lipoxins also generated (aspirin-acetylated COX-2 produces 15R-HETE → 15-epi-LXA4)

C. CYP PATHWAY → EETs & HETEs

  • Cytochrome P450 epoxidaseEETs (epoxyeicosatrienoic acids) → vasodilation, renal ion transport
  • CYP ω-hydroxylase20-HETE → vasoconstriction, renal tubular Na⁺ regulation
  • Less pharmacologically exploited than COX/LOX pathways currently

D. PLATELET-ACTIVATING FACTOR (PAF)

PAF is a phospholipid autocoid - not a classic eicosanoid but derived from membrane lipids:
  • Structure: 1-O-alkyl-2-acetyl-sn-glycero-3-phosphocholine (acetylated lysophospholipid)
  • Sources: Platelets, mast cells, neutrophils, monocytes, vascular endothelium
  • Receptor: PAF-R (PAFR) — GPCR (Gi/Gq)
  • Metabolism: Rapidly inactivated by PAF-acetylhydrolase (PAF-AH)
Actions:
  • Platelet aggregation and activation at femtomolar concentrations
  • Potent bronchoconstriction
  • Vasoconstriction (low dose) / vasodilation (high dose)
  • ↑Vascular permeability
  • Leukocyte activation and chemotaxis
  • Key mediator in anaphylaxis and severe sepsis/ARDS

MASTER INTEGRATION: How the Three Systems Interact

TISSUE INJURY / ANTIGEN
         |
    ┌────┴────────────────────────┐
    ↓                             ↓
MAST CELL DEGRANULATION      PLA2 ACTIVATION
    |                             |
HISTAMINE (amine)          ARACHIDONIC ACID
SEROTONIN (amine)              /      \
    |                      COX       LOX
    ↓                       |          |
Vasodilation              PGE2       LTB4 (chemotaxis)
Itch / pain               TxA2       LTC4/D4/E4 (bronchoconstriction)
↑Permeability             PGI2       Lipoxins (resolution)
    |
BRADYKININ (peptide)
- released by kallikrein
- amplifies vasodilation
- stimulates PG synthesis
- causes pain
- degraded by ACE

KEY PHARMACOLOGICAL PRINCIPLE — Common Inhibitor Hierarchy

Drug ClassBlocksPathway(s) Affected
CorticosteroidsPLA2 (via lipocortin)ALL eicosanoids (COX + LOX + CYP) + PAF
NSAIDs (non-selective)COX-1 + COX-2All prostanoids
Aspirin (low dose)COX-1 irreversible (platelets)TxA2 → antiplatelet
CoxibsCOX-2 selectivelyInflammatory PGs; ↓PGI2 → ↑CV risk
Zileuton5-LOXAll leukotrienes
MontelukastCysLT1 receptorLTC4/D4/E4 effects only
ACE inhibitorsKininase II↑Bradykinin accumulation
H1 blockersH1 receptorHistamine-mediated allergy/itch
H2 blockersH2 receptorGastric acid secretion

Sources: Katzung's Basic & Clinical Pharmacology 16e (Chapters 16, 17, 18) · Goodman & Gilman's Pharmacological Basis of Therapeutics 13e (Chapters 33, 41) · Ganong's Review of Medical Physiology 26e

Make the above notes as a pptx

Reading File
Writing File

~/autocoids-pptx/autocoids_pharm_basis.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Autocoids – Pharmacological Basis";
pres.author = "Orris Medical";

// ── PALETTE ────────────────────────────────────────────────────
const C = {
  bg:        "0A1628",
  bgMid:     "112240",
  bgLight:   "1A3354",
  bgCard:    "132036",
  teal:      "00C9B1",
  tealDk:    "009E8A",
  amber:     "FFB703",
  amberDk:   "E09A00",
  green:     "4CC97A",
  purple:    "A06CD5",
  red:       "E84855",
  orange:    "F4845F",
  blue:      "5BA4CF",
  white:     "FFFFFF",
  offWhite:  "D8E8F0",
  gray:      "7A96A8",
  lt:        "B0CCDA",
};

// ── HELPERS ────────────────────────────────────────────────────
function topBar(s, label, accent) {
  s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:0.52, fill:{color:accent}, line:{color:accent,pt:0} });
  s.addText(label, { x:0.28, y:0, w:9.5, h:0.52, fontSize:12.5, bold:true, color:C.bg, valign:"middle", margin:0 });
}
function accentLine(s, x, y, w, color) {
  s.addShape(pres.shapes.RECTANGLE, { x, y, w, h:0.045, fill:{color}, line:{color,pt:0} });
}
function pill(s, x, y, w, h, label, bgColor, textColor) {
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w, h, rectRadius:0.07, fill:{color:bgColor}, line:{color:bgColor,pt:0} });
  s.addText(label, { x, y, w, h, fontSize:9.5, bold:true, color:textColor||C.bg, align:"center", valign:"middle", margin:0 });
}
function card(s, x, y, w, h, borderColor) {
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x, y, w, h, rectRadius:0.07,
    fill:{color:C.bgCard}, line:{color:borderColor||C.teal, pt:1.2},
    shadow:{type:"outer",color:"000000",blur:7,offset:2,angle:135,opacity:0.2},
  });
}
function hdrCard(s, x, y, w, h, label, accent) {
  card(s, x, y, w, h, accent);
  s.addShape(pres.shapes.RECTANGLE, { x, y, w, h:0.32, fill:{color:accent}, line:{color:accent,pt:0} });
  s.addText(label, { x:x+0.1, y, w:w-0.15, h:0.32, fontSize:10.5, bold:true, color:C.bg, valign:"middle", margin:0 });
}
function leftBar(s, x, y, h, color) {
  s.addShape(pres.shapes.RECTANGLE, { x, y, w:0.055, h, fill:{color}, line:{color,pt:0} });
}
function tblHeader(s, x, y, w, cols, colW, accent) {
  s.addShape(pres.shapes.RECTANGLE, { x, y, w, h:0.3, fill:{color:accent}, line:{color:accent,pt:0} });
  let cx = x;
  cols.forEach((c, i) => {
    s.addText(c, { x:cx+0.06, y, w:colW[i]-0.08, h:0.3, fontSize:9, bold:true, color:C.bg, valign:"middle", margin:0 });
    cx += colW[i];
  });
}
function tblRow(s, x, y, cells, colW, accent, rowBg) {
  let cx = x;
  cells.forEach((cell, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x:cx, y, w:colW[i], h:0.52, fill:{color:rowBg}, line:{color:rowBg,pt:0} });
    s.addText(cell, { x:cx+0.06, y, w:colW[i]-0.1, h:0.52, fontSize:8.5, color:C.offWhite, valign:"middle", margin:0 });
    cx += colW[i];
  });
  leftBar(s, x, y, 0.52, accent);
}

// ══════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };

  // top strip
  s.addShape(pres.shapes.RECTANGLE, { x:0, y:0, w:10, h:0.07, fill:{color:C.teal}, line:{color:C.teal,pt:0} });

  // decorative circles
  s.addShape(pres.shapes.OVAL, { x:6.5, y:-1.2, w:5, h:5, fill:{color:C.bgLight,transparency:50}, line:{color:C.teal,pt:1.5} });
  s.addShape(pres.shapes.OVAL, { x:7.3, y:-0.4, w:3.2, h:3.2, fill:{color:C.teal,transparency:82}, line:{color:C.teal,pt:0} });

  s.addText("AUTOCOIDS", { x:0.55, y:1.0, w:8, h:1.1, fontSize:54, bold:true, color:C.white, charSpacing:10 });
  s.addText("Pharmacological Basis", { x:0.55, y:2.15, w:7, h:0.55, fontSize:24, color:C.teal, italic:true });

  accentLine(s, 0.55, 2.82, 5.8, C.amber);

  // Three part labels
  const parts = [
    { label:"PART I", sub:"Amine-Derived", color:C.amber },
    { label:"PART II", sub:"Peptide-Derived", color:C.green },
    { label:"PART III", sub:"Lipid-Derived", color:C.purple },
  ];
  parts.forEach((p, i) => {
    const x = 0.55 + i * 3.0;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y:3.0, w:2.7, h:0.75, rectRadius:0.07, fill:{color:C.bgLight}, line:{color:p.color,pt:1.2} });
    s.addText(p.label, { x, y:3.02, w:2.7, h:0.35, fontSize:13, bold:true, color:p.color, align:"center" });
    s.addText(p.sub,   { x, y:3.35, w:2.7, h:0.35, fontSize:10, color:C.offWhite, align:"center" });
  });

  s.addText("Histamine · Serotonin  |  Bradykinin · Natriuretic Peptides · Endothelins  |  Eicosanoids · PAF", {
    x:0, y:4.0, w:10, h:0.35, fontSize:10, color:C.gray, align:"center",
  });

  s.addText("Definition: Locally-acting endogenous substances synthesised and released near their site of production\n— distinct from hormones (systemic) and neurotransmitters (synaptic). [Katzung 16e]", {
    x:0.5, y:4.45, w:9, h:0.65, fontSize:9.5, color:C.lt, italic:true, align:"center",
  });

  s.addText("Sources: Katzung's Basic & Clinical Pharmacology 16e  ·  Goodman & Gilman's 13e  ·  Ganong's Physiology 26e", {
    x:0, y:5.34, w:10, h:0.25, fontSize:7.5, color:C.gray, align:"center",
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 2 — HISTAMINE: SYNTHESIS, STORAGE & RELEASE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART I — AMINE-DERIVED AUTOCOIDS  |  HISTAMINE: Synthesis, Storage & Release", C.amber);

  // Synthesis arrow flow
  const flow = [
    { t:"L-Histidine", sub:"Amino acid precursor" },
    { t:"↓ Histidine\nDecarboxylase", sub:"Rate-limiting enzyme" },
    { t:"HISTAMINE", sub:"Biologically active amine", highlight:true },
  ];
  flow.forEach((f, i) => {
    const x = 0.3 + i * 3.2;
    const bc = f.highlight ? C.amber : C.bgLight;
    const tc = f.highlight ? C.bg : C.offWhite;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y:0.62, w:2.85, h:0.88, rectRadius:0.08, fill:{color:bc}, line:{color:C.amber,pt:f.highlight?0:1} });
    s.addText(f.t, { x, y:0.64, w:2.85, h:0.52, fontSize:f.highlight?13:11, bold:true, color:tc, align:"center", valign:"middle" });
    s.addText(f.sub, { x, y:1.1, w:2.85, h:0.32, fontSize:8.5, color:f.highlight?C.bgMid:C.gray, align:"center" });
    if (i<2) s.addText("→", { x:x+2.85, y:0.62, w:0.35, h:0.88, fontSize:22, color:C.amber, align:"center", valign:"middle" });
  });

  // Metabolism box
  hdrCard(s, 0.28, 1.6, 5.5, 1.15, "METABOLISM", C.amber);
  s.addText([
    { text:"→ N-methylhistamine ", options:{bold:true, color:C.amber} },
    { text:"(histamine-N-methyltransferase)\n", options:{color:C.offWhite} },
    { text:"→ Imidazoleacetic acid (IAA) ", options:{bold:true, color:C.amber} },
    { text:"(MAO / diamine oxidase)\n", options:{color:C.offWhite} },
    { text:"Very little excreted unchanged. Metabolites excreted in urine.", options:{color:C.lt, italic:true} },
  ], { x:0.42, y:1.96, w:5.2, h:0.75, fontSize:9.5 });

  // Storage & Release box
  hdrCard(s, 6.1, 1.6, 3.65, 1.15, "STORAGE & RELEASE", C.orange);
  s.addText([
    { text:"Stored in: ", options:{bold:true, color:C.orange} },
    { text:"Mast cell/basophil granules, ECL cells, platelets, CNS\n", options:{color:C.offWhite} },
    { text:"Release triggers:\n", options:{bold:true, color:C.orange} },
    { text:"• IgE-mediated (Type I hypersensitivity)\n• Drugs: morphine, tubocurarine, contrast media\n• Complement: C3a, C5a anaphylatoxins\n• Physical: cold, trauma, neuropeptides", options:{color:C.offWhite} },
  ], { x:6.22, y:1.96, w:3.45, h:0.75, fontSize:9, valign:"top" });

  // Clinical pearl
  s.addShape(pres.shapes.RECTANGLE, { x:0.28, y:2.85, w:9.47, h:0.5, fill:{color:C.bgMid}, line:{color:C.amber,pt:1} });
  leftBar(s, 0.28, 2.85, 0.5, C.amber);
  s.addText([
    { text:"Clinical: ", options:{bold:true, color:C.amber} },
    { text:"Systemic mastocytosis, urticaria pigmentosa & gastric carcinoid → ↑mast cell numbers → ↑urinary histamine metabolites. Scombroid fish poisoning: bacterial decarboxylation of histidine in fish → acute histamine toxicity.", options:{color:C.offWhite} },
  ], { x:0.42, y:2.85, w:9.2, h:0.5, fontSize:9, valign:"middle" });

  // Receptor table
  tblHeader(s, 0.28, 3.45, 9.47, ["Receptor","G-Protein / Signal","Location","Key Actions"], [0.7,1.8,2.4,4.57], C.amber);
  const hRows = [
    ["H1","Gq → ↑IP3 / Ca²⁺","Endothelium, bronchial & GI smooth muscle, nerve endings","Vasodilation (via NO), bronchoconstriction, ↑vascular permeability, itch & pain, GI/uterine contraction"],
    ["H2","Gs → ↑cAMP","Gastric parietal cells, cardiac muscle, immune cells","↑Gastric acid secretion, positive inotropy, vasodilation at higher doses"],
    ["H3","Gi → ↓cAMP, ↓Ca²⁺","Presynaptic neurons — CNS & PNS (autoreceptor)","Inhibits release of histamine, ACh, amines, peptides; modulates appetite/satiety"],
    ["H4","Gi","Bone marrow, circulating eosinophils & mast cells","Chemotaxis of eosinophils/mast cells; cytokine modulation; allergy & inflammation"],
  ];
  const hBgs = [C.bgLight, C.bgMid, C.bgLight, C.bgMid];
  hRows.forEach((r, i) => {
    const y = 3.75 + i*0.47;
    tblRow(s, 0.28, y, r, [0.7,1.8,2.4,4.57], C.amber, hBgs[i]);
    // colour receptor badge
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:0.34, y:y+0.09, w:0.58, h:0.32, rectRadius:0.05, fill:{color:C.amber}, line:{color:C.amber,pt:0} });
    s.addText(r[0], { x:0.34, y:y+0.09, w:0.58, h:0.32, fontSize:9, bold:true, color:C.bg, align:"center", valign:"middle", margin:0 });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 3 — HISTAMINE: ORGAN EFFECTS & DRUGS
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART I — HISTAMINE: Organ System Effects & Clinical Pharmacology", C.amber);

  // Organ effects — left 6 cards
  const organs = [
    { title:"CVS", body:"H1: ↓BP (vasodilation via NO), reflex tachycardia, flushing\nH2 (high dose): direct cardiac stimulation, ↑cAMP vasodilation\nCapillaries: ↑permeability → oedema", accent:C.red },
    { title:"Respiratory", body:"H1: bronchoconstriction (especially in asthmatics)\n↑Bronchial secretions\nH3: modulates bronchomotor tone", accent:C.blue },
    { title:"GI Tract", body:"H2: ↑gastric acid & pepsin secretion from parietal cells\nH1: ↑GI smooth muscle tone → cramps, diarrhoea\nH3: inhibits neurotransmitter release in enteric NS", accent:C.orange },
    { title:"Nervous System", body:"H1: stimulates sensory C-fibres → pain and itch\nH3: modulates neurotransmitter release\nPitolisant (H3 inverse agonist): narcolepsy", accent:C.teal },
    { title:"Skin — Triple Response", body:"1. Red line: direct capillary dilation\n2. Flare: axon reflex (surrounding erythema)\n3. Wheal: ↑permeability → local oedema\n[Lewis — all H1-mediated]", accent:C.purple },
    { title:"Immune / Other", body:"H4: chemotaxis of eosinophils & mast cells\nHistamine → role in immune regulation & chemotaxis of WBCs\nNeoplasms: mastocytosis, carcinoid → excess histamine", accent:C.green },
  ];
  organs.forEach((o, i) => {
    const col = i % 3;
    const row = Math.floor(i / 3);
    const x = 0.22 + col * 3.2;
    const y = 0.62 + row * 1.72;
    hdrCard(s, x, y, 3.05, 1.6, o.title, o.accent);
    s.addText(o.body, { x:x+0.1, y:y+0.36, w:2.85, h:1.2, fontSize:8.8, color:C.offWhite, valign:"top" });
  });

  // Drugs — right panel
  s.addShape(pres.shapes.RECTANGLE, { x:9.82, y:0.52, w:0.18, h:5.1, fill:{color:C.bgLight}, line:{color:C.bgLight,pt:0} });

  // H1 Blockers table
  s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:4.06, w:9.56, h:0.3, fill:{color:C.amber}, line:{color:C.amber,pt:0} });
  s.addText("H1-RECEPTOR BLOCKERS (Antihistamines)", { x:0.32, y:4.06, w:9.3, h:0.3, fontSize:10, bold:true, color:C.bg, valign:"middle", margin:0 });

  const h1rows = [
    ["1st Generation","Diphenhydramine, promethazine, chlorpheniramine, cyproheptadine","Cross BBB → sedation; antimuscarinic (dry mouth, urinary retention); α-blockade (promethazine); anti-5HT (cyproheptadine)","Allergy, motion sickness, anaphylaxis adjunct, acute dystonia Rx"],
    ["2nd Generation","Cetirizine, loratadine, fexofenadine","Do NOT cross BBB → no sedation; minimal autonomic effects; fexofenadine: zero sedation","Allergic rhinitis, urticaria, chronic idiopathic urticaria — preferred"],
  ];
  const h1bgs = [C.bgLight, C.bgMid];
  h1rows.forEach((r, i) => {
    const y = 4.36 + i*0.58;
    tblRow(s, 0.22, y, r, [1.2, 2.8, 3.3, 2.26], C.amber, h1bgs[i]);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:0.28, y:y+0.1, w:1.08, h:0.32, rectRadius:0.05, fill:{color:C.amber}, line:{color:C.amber,pt:0} });
    s.addText(r[0], { x:0.28, y:y+0.1, w:1.08, h:0.32, fontSize:8.5, bold:true, color:C.bg, align:"center", valign:"middle", margin:0 });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 4 — SEROTONIN: SYNTHESIS, DISTRIBUTION & RECEPTORS
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART I — SEROTONIN (5-Hydroxytryptamine, 5-HT): Synthesis, Distribution & Receptors", C.amber);

  // Synthesis pathway
  const sflow = [
    { t:"L-Tryptophan", sub:"Essential amino acid (dietary)" },
    { t:"↓ Tryptophan\nHydroxylase ★", sub:"Rate-limiting step" },
    { t:"5-HTP", sub:"5-Hydroxytryptophan" },
    { t:"↓ Aromatic\nAADC", sub:"" },
    { t:"SEROTONIN\n(5-HT)", sub:"Active amine", hi:true },
  ];
  const sfw = [1.7, 1.4, 1.5, 1.4, 1.75];
  let sx = 0.25;
  sflow.forEach((f, i) => {
    const bc = f.hi ? C.amber : (i%2===0 ? C.bgLight : "transparent");
    const tc = f.hi ? C.bg : C.offWhite;
    if (bc !== "transparent") {
      s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:sx, y:0.6, w:sfw[i], h:0.82, rectRadius:0.07, fill:{color:bc}, line:{color:C.amber,pt:f.hi?0:1} });
    }
    s.addText(f.t, { x:sx, y:0.6, w:sfw[i], h:0.52, fontSize:f.hi?11.5:10, bold:f.hi||i===1||i===3, color:tc, align:"center", valign:"middle" });
    if (f.sub) s.addText(f.sub, { x:sx, y:1.1, w:sfw[i], h:0.3, fontSize:8, color:C.gray, align:"center" });
    sx += sfw[i];
  });

  // Metabolism + Distribution
  hdrCard(s, 0.25, 1.52, 4.7, 1.0, "METABOLISM", C.amber);
  s.addText([
    { text:"MAO-A  →  5-Hydroxyindoleacetaldehyde\n", options:{color:C.offWhite} },
    { text:"Aldehyde dehydrogenase  →  5-HIAA ", options:{color:C.offWhite} },
    { text:"(urine)\n", options:{color:C.teal} },
    { text:"↑Urinary 5-HIAA = diagnostic marker for CARCINOID TUMOUR", options:{bold:true, color:C.amber} },
  ], { x:0.38, y:1.87, w:4.45, h:0.62, fontSize:9.5 });

  hdrCard(s, 5.1, 1.52, 4.65, 1.0, "DISTRIBUTION", C.teal);
  s.addText([
    { text:">90%  ", options:{bold:true, color:C.teal} },
    { text:"in GI enterochromaffin cells\n", options:{color:C.offWhite} },
    { text:"Platelets ", options:{bold:true, color:C.teal} },
    { text:"(concentrated via SERT transporter; stored by VAT — blocked by reserpine)\n", options:{color:C.offWhite} },
    { text:"CNS ", options:{bold:true, color:C.teal} },
    { text:"raphe nuclei: mood, sleep, appetite, pain, BP, vomiting\n", options:{color:C.offWhite} },
    { text:"Enteric nervous system ", options:{bold:true, color:C.teal} },
    { text:"— GI motility regulation", options:{color:C.offWhite} },
  ], { x:5.22, y:1.87, w:4.4, h:0.62, fontSize:9.2 });

  // Receptor table
  tblHeader(s, 0.25, 2.62, 9.5, ["Receptor","Coupling","Location","Key Actions","Key Drugs"], [0.92,1.5,2.0,2.88,2.2], C.amber);
  const sRows = [
    ["5-HT1A","Gi→↓cAMP","Raphe nuclei (autoreceptor), limbic","Anxiolysis, mood regulation","Buspirone (partial agonist) — anxiety"],
    ["5-HT1B/D","Gi→↓cAMP","Cranial blood vessels, presynaptic","Cranial vasoconstriction, inhibit trigeminal neuropeptides","Triptans (sumatriptan) — migraine"],
    ["5-HT2A","Gq→↑IP3","Platelets, vascular SM, CNS","Vasoconstriction, platelet aggregation","Blocked by atypical antipsychotics"],
    ["5-HT3","Ion channel\n(Na⁺/K⁺)","Area postrema (CTZ), gut","Emesis, gut motility (only non-GPCR)","Ondansetron — chemo nausea"],
    ["5-HT4","Gs→↑cAMP","GI smooth muscle","↑GI motility","Metoclopramide, prucalopride"],
  ];
  const sBgs = [C.bgLight, C.bgMid, C.bgLight, C.bgMid, C.bgLight];
  sRows.forEach((r, i) => {
    const y = 2.92 + i*0.52;
    tblRow(s, 0.25, y, r, [0.92,1.5,2.0,2.88,2.2], C.amber, sBgs[i]);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:0.3, y:y+0.09, w:0.82, h:0.32, rectRadius:0.05, fill:{color:C.amber}, line:{color:C.amber,pt:0} });
    s.addText(r[0], { x:0.3, y:y+0.09, w:0.82, h:0.32, fontSize:8.5, bold:true, color:C.bg, align:"center", valign:"middle", margin:0 });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 5 — PEPTIDE AUTOCOIDS: BRADYKININ
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART II — PEPTIDE-DERIVED AUTOCOIDS  |  BRADYKININ & THE KALLIKREIN-KININ SYSTEM", C.green);

  // Formation cascade
  const cascade = [
    { t:"Prekallikrein", sub:"(activated by FXIIa)" },
    { t:"KALLIKREIN", sub:"Plasma / Tissue types" },
    { t:"Kininogens", sub:"HMW → bradykinin\nLMW → kallidin" },
    { t:"BRADYKININ", sub:"9-amino acid peptide\nt½ < 15 seconds", hi:true },
  ];
  cascade.forEach((c, i) => {
    const x = 0.25 + i*2.38;
    const bc = c.hi ? C.green : C.bgLight;
    const tc = c.hi ? C.bg : C.offWhite;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y:0.6, w:2.18, h:0.88, rectRadius:0.07, fill:{color:bc}, line:{color:C.green,pt:c.hi?0:1.1} });
    s.addText(c.t, { x, y:0.62, w:2.18, h:0.48, fontSize:c.hi?12:10.5, bold:true, color:tc, align:"center", valign:"middle" });
    s.addText(c.sub, { x, y:1.08, w:2.18, h:0.4, fontSize:8.5, color:c.hi?C.bgMid:C.gray, align:"center" });
    if(i<3) s.addText("→", { x:x+2.18, y:0.6, w:0.2, h:0.88, fontSize:22, color:C.green, align:"center", valign:"middle" });
  });

  // ACE/Kininase II callout
  s.addShape(pres.shapes.RECTANGLE, { x:0.25, y:1.57, w:9.5, h:0.52, fill:{color:C.bgMid}, line:{color:C.red,pt:1.2} });
  leftBar(s, 0.25, 1.57, 0.52, C.red);
  s.addText([
    { text:"Kininase II = ACE  ", options:{bold:true, color:C.red} },
    { text:"inactivates bradykinin by cleaving C-terminal Phe-Arg dipeptide (nearly complete degradation in ONE lung passage). ", options:{color:C.offWhite} },
    { text:"ACE inhibitors → ↑bradykinin → vasodilation (antihypertensive benefit) + dry cough (B2 on airway C-fibres).", options:{bold:true, color:C.amber} },
  ], { x:0.38, y:1.57, w:9.25, h:0.52, fontSize:9.5, valign:"middle" });

  // B1 / B2 receptor cards
  hdrCard(s, 0.25, 2.2, 4.6, 1.35, "B2 RECEPTOR (constitutive)", C.green);
  s.addText([
    { text:"Mediates all NORMAL physiological actions:\n", options:{bold:true, color:C.green} },
    { text:"• Vasodilation via endothelial NO + PGI2 release\n", options:{color:C.offWhite} },
    { text:"• ↑Vascular permeability\n• Pain & hyperalgesia (sensitises nociceptors)\n• Bronchoconstriction\n• Uterine contraction\n• Stimulates prostaglandin synthesis", options:{color:C.offWhite} },
  ], { x:0.38, y:2.56, w:4.35, h:0.95, fontSize:9.2, valign:"top" });

  hdrCard(s, 5.1, 2.2, 4.65, 1.35, "B1 RECEPTOR (inducible — upregulated by IL-1, TNF)", C.orange);
  s.addText([
    { text:"Mediates chronic pain & inflammatory responses\n", options:{bold:true, color:C.orange} },
    { text:"• Upregulated during sustained inflammation\n", options:{color:C.offWhite} },
    { text:"• Activated by des-Arg-bradykinin (C-terminal Arg removed metabolite)\n", options:{color:C.offWhite} },
    { text:"• Target for novel analgesic/anti-inflammatory drugs\n", options:{color:C.offWhite} },
    { text:"• SSR240612: selective B1 antagonist (preclinical)", options:{color:C.lt} },
  ], { x:5.22, y:2.56, w:4.45, h:0.95, fontSize:9.2, valign:"top" });

  // Drug table
  tblHeader(s, 0.25, 3.66, 9.5, ["Drug / Agent","Mechanism","Clinical Use"], [2.5,4.0,3.0], C.green);
  const kdrugs = [
    ["ACE inhibitors (enalapril, lisinopril)","Block Kininase II → ↑bradykinin → vasodilation","Hypertension, heart failure, CKD/diabetic nephropathy"],
    ["Icatibant","Bradykinin B2 receptor antagonist","Acute attacks of hereditary angioedema (HAE)"],
    ["Ecallantide","Recombinant plasma kallikrein inhibitor","HAE — acute attacks (SC injection)"],
    ["C1-INH concentrate (Berinert, Cinryze)","Replaces deficient C1-esterase inhibitor → ↓kallikrein activation","HAE — prophylaxis and acute treatment"],
  ];
  const kbgs = [C.bgLight, C.bgMid, C.bgLight, C.bgMid];
  kdrugs.forEach((r, i) => {
    tblRow(s, 0.25, 3.96+i*0.42, r, [2.5,4.0,3.0], C.green, kbgs[i]);
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 6 — NATRIURETIC PEPTIDES, ENDOTHELINS & SUBSTANCE P
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART II — NATRIURETIC PEPTIDES  ·  ENDOTHELINS  ·  SUBSTANCE P", C.green);

  // Natriuretic peptides
  hdrCard(s, 0.25, 0.62, 5.55, 2.45, "NATRIURETIC PEPTIDES", C.teal);
  s.addText("Mechanism: bind particulate guanylyl cyclase receptors (GC-A) → ↑cGMP → vasodilation & natriuresis", {
    x:0.38, y:0.98, w:5.3, h:0.35, fontSize:9, color:C.teal, italic:true,
  });
  tblHeader(s, 0.35, 1.38, 5.35, ["Peptide","Source","Stimulus","Key Actions"], [0.65,1.1,1.1,2.5], C.teal);
  const npRows = [
    ["ANP","Atrial myocytes","Atrial stretch, volume expansion","Natriuresis, diuresis, vasodilation, ↓renin, ↓aldosterone, ↓AVP"],
    ["BNP","Ventricular myocytes","Ventricular wall stress (pressure overload)","Same as ANP; biomarker for HF (NT-proBNP diagnostic)"],
    ["CNP","Vascular endothelium","Shear stress, cytokines","Vasodilation; less natriuretic; CNS effects"],
  ];
  const npBgs=[C.bgLight, C.bgMid, C.bgLight];
  npRows.forEach((r,i)=>{
    tblRow(s, 0.35, 1.68+i*0.48, r, [0.65,1.1,1.1,2.5], C.teal, npBgs[i]);
    pill(s, 0.38, 1.68+i*0.48+0.09, 0.56, 0.3, r[0], C.teal, C.bg);
  });
  s.addText([
    { text:"Clinical use: ", options:{bold:true, color:C.amber} },
    { text:"Nesiritide (recombinant BNP) → acute decompensated heart failure", options:{color:C.offWhite} },
  ], { x:0.38, y:2.88, w:5.3, h:0.18, fontSize:9 });

  // Endothelins
  hdrCard(s, 6.05, 0.62, 3.7, 2.45, "ENDOTHELINS (ET-1, ET-2, ET-3)", C.red);
  s.addText([
    { text:"21 amino-acid peptides; ET-1 = most potent endogenous vasoconstrictor\n", options:{bold:true, color:C.red} },
    { text:"Synthesis: ", options:{bold:true, color:C.amber} },
    { text:"Preproendothelin → Big ET-1 → [ECE] → ET-1\n\n", options:{color:C.offWhite} },
    { text:"ETA receptor: ", options:{bold:true, color:C.orange} },
    { text:"Gq → vasoconstriction, SM proliferation\n", options:{color:C.offWhite} },
    { text:"ETB receptor: ", options:{bold:true, color:C.teal} },
    { text:"Gi/Gq → vasodilation (via NO+PGI2); clearance of ET-1 from circulation\n\n", options:{color:C.offWhite} },
    { text:"Drugs: ", options:{bold:true, color:C.amber} },
    { text:"Bosentan, ambrisentan (ETA/B blockers)\n→ Pulmonary arterial hypertension (PAH)", options:{color:C.offWhite} },
  ], { x:6.17, y:0.97, w:3.5, h:2.07, fontSize:9.2 });

  // Substance P
  hdrCard(s, 0.25, 3.18, 5.55, 1.4, "SUBSTANCE P", C.purple);
  s.addText([
    { text:"Structure: ", options:{bold:true, color:C.purple} },
    { text:"Undecapeptide (11 aa); tachykinin family\n", options:{color:C.offWhite} },
    { text:"Source: ", options:{bold:true, color:C.purple} },
    { text:"Primary afferent C-fibres, CNS enteric neurons\n", options:{color:C.offWhite} },
    { text:"Receptor: ", options:{bold:true, color:C.purple} },
    { text:"NK1 (neurokinin-1) — Gq-coupled\n", options:{color:C.offWhite} },
    { text:"Actions: ", options:{bold:true, color:C.purple} },
    { text:"Pain transmission, neurogenic inflammation, vasodilation, emesis\n", options:{color:C.offWhite} },
    { text:"Drug: ", options:{bold:true, color:C.amber} },
    { text:"Aprepitant (NK1 antagonist) → chemotherapy-induced nausea/vomiting", options:{color:C.offWhite} },
  ], { x:0.38, y:3.52, w:5.3, h:1.0, fontSize:9.2 });

  // Angiotensin II note
  hdrCard(s, 6.05, 3.18, 3.7, 1.4, "ANGIOTENSIN II (note)", C.blue);
  s.addText([
    { text:"Also considered a peptide autocoid/hormone\n", options:{color:C.lt, italic:true} },
    { text:"AT1 receptor (Gq): ", options:{bold:true, color:C.blue} },
    { text:"vasoconstriction, aldosterone release, cardiac hypertrophy\n", options:{color:C.offWhite} },
    { text:"AT2 receptor (Gi): ", options:{bold:true, color:C.teal} },
    { text:"vasodilation, anti-proliferative, fetal development\n", options:{color:C.offWhite} },
    { text:"Drugs: ", options:{bold:true, color:C.amber} },
    { text:"ARBs (losartan) — block AT1 without affecting bradykinin (no cough)", options:{color:C.offWhite} },
  ], { x:6.17, y:3.52, w:3.5, h:1.0, fontSize:9.2 });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 7 — LIPID AUTOCOIDS: EICOSANOID PATHWAYS OVERVIEW
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART III — LIPID-DERIVED AUTOCOIDS  |  EICOSANOID BIOSYNTHETIC PATHWAYS", C.purple);

  // Top: membrane → AA flow
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:2.8, y:0.65, w:4.4, h:0.72, rectRadius:0.07, fill:{color:C.bgLight}, line:{color:C.white,pt:1.2} });
  s.addText("Membrane Phospholipids", { x:2.8, y:0.65, w:4.4, h:0.38, fontSize:11, bold:true, color:C.white, align:"center", valign:"middle" });
  s.addText("↓ Phospholipase A2 (PLA2)  [Corticosteroids → lipocortin → blocks PLA2]", { x:2.8, y:1.0, w:4.4, h:0.3, fontSize:8.5, color:C.amber, align:"center" });

  s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:3.7, y:1.45, w:2.6, h:0.62, rectRadius:0.07, fill:{color:C.purple}, line:{color:C.purple,pt:0} });
  s.addText("ARACHIDONIC ACID (AA)", { x:3.7, y:1.45, w:2.6, h:0.62, fontSize:11, bold:true, color:C.white, align:"center", valign:"middle" });

  // Three pathway columns
  const paths = [
    {
      title:"COX PATHWAY",
      sub:"Cyclooxygenase-1 & -2",
      blocked:"NSAIDs / Aspirin block",
      color:C.teal,
      x:0.2,
      lines:[
        "AA → PGG2 → PGH2",
        "(common precursor)",
        "↓ cell-specific synthases",
        "• PGE2 — fever, vasodilation, pain",
        "• PGI2 (Prostacyclin) — ↓platelets, vasodilation",
        "• TxA2 — ↑platelets, vasoconstriction",
        "• PGD2 — bronchoconstriction, sleep",
        "• PGF2α — uterine contraction, ↑IOP",
      ],
    },
    {
      title:"5-LOX PATHWAY",
      sub:"5-Lipoxygenase + FLAP",
      blocked:"Zileuton blocks 5-LOX",
      color:C.orange,
      x:3.45,
      lines:[
        "AA → 5-HPETE → LTA4",
        "(unstable epoxide)",
        "        ↙              ↘",
        "LTA4 hydrolase    LTC4 synthase",
        "      ↓                   ↓",
        "    LTB4          LTC4→LTD4→LTE4",
        "Neutrophil         (cysteinyl-LTs)",
        "chemotaxis      bronchoconstriction",
      ],
    },
    {
      title:"CYP PATHWAY",
      sub:"Cytochrome P450",
      blocked:"(less targeted clinically)",
      color:C.blue,
      x:6.7,
      lines:[
        "AA → EETs",
        "(epoxyeicosatrienoic acids)",
        "→ Vasodilation",
        "→ Renal ion transport",
        "",
        "AA → 20-HETE",
        "→ Vasoconstriction",
        "→ Renal Na⁺ handling",
      ],
    },
  ];
  paths.forEach(p => {
    card(s, p.x, 2.15, 3.1, 3.28, p.color);
    s.addShape(pres.shapes.RECTANGLE, { x:p.x, y:2.15, w:3.1, h:0.36, fill:{color:p.color}, line:{color:p.color,pt:0} });
    s.addText(p.title, { x:p.x+0.08, y:2.15, w:3.0, h:0.36, fontSize:11, bold:true, color:C.bg, valign:"middle", margin:0 });
    s.addText(p.sub, { x:p.x+0.08, y:2.52, w:3.0, h:0.24, fontSize:9, color:p.color });
    s.addText([{text:p.blocked, options:{bold:true, color:C.amber}}], { x:p.x+0.08, y:2.74, w:3.0, h:0.22, fontSize:9 });
    p.lines.forEach((l, li) => {
      s.addText(l, { x:p.x+0.1, y:3.0+li*0.25, w:2.9, h:0.25, fontSize:8.8, color:C.offWhite });
    });
  });

  // Bottom note
  s.addShape(pres.shapes.RECTANGLE, { x:0.2, y:5.38, w:9.6, h:0.2, fill:{color:C.bgMid}, line:{color:C.bgMid,pt:0} });
  s.addText("Corticosteroids block PLA2 via lipocortin → suppress ALL eicosanoid pathways simultaneously (COX + LOX + CYP)", {
    x:0.2, y:5.38, w:9.6, h:0.2, fontSize:8.5, color:C.amber, align:"center",
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 8 — PROSTANOIDS IN DETAIL
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART III — PROSTANOIDS (COX Pathway)  |  COX-1 vs COX-2 & Individual Products", C.teal);

  // COX-1 vs COX-2
  hdrCard(s, 0.22, 0.6, 4.7, 0.92, "COX-1 (Constitutive)", C.teal);
  s.addText("Present in virtually all cells; housekeeping roles\n• Gastric mucosal cytoprotection (PGE2/PGI2)\n• Platelet TxA2 synthesis  •  Renal homeostasis\nInhibited by non-selective NSAIDs and aspirin (irreversible)", {
    x:0.35, y:0.95, w:4.45, h:0.54, fontSize:9, color:C.offWhite,
  });

  hdrCard(s, 5.15, 0.6, 4.63, 0.92, "COX-2 (Inducible)", C.orange);
  s.addText("Upregulated by cytokines, shear stress, growth factors\n• Principal source of inflammatory prostanoids\n• Also constitutive in kidney, brain & female reproductive system\nSelectively inhibited by coxibs (celecoxib, etoricoxib)", {
    x:5.28, y:0.95, w:4.4, h:0.54, fontSize:9, color:C.offWhite,
  });

  // Main prostanoid table
  tblHeader(s, 0.22, 1.63, 9.56, ["Prostanoid","Main Source","Receptor / Signal","Key Actions","Clinical Use"], [1.2,1.5,1.6,3.0,2.26], C.teal);

  const pRows = [
    ["PGE2","Many tissues (COX-2)","EP1-EP4\n(Gs, Gi, Gq)","Fever (hypothalamic set-point ↑), vasodilation, pain sensitisation, gastric cytoprotection, uterine contraction","Misoprostol (PGE1): ulcer Rx, cervical ripening, post-partum haemorrhage"],
    ["PGI2\n(Prostacyclin)","Vascular endothelium","IP\nGs → ↑cAMP","Vasodilation, inhibits platelet aggregation, renal vasodilation — opposes TxA2","Epoprostenol, iloprost: pulmonary arterial hypertension"],
    ["TxA2","Platelets (COX-1)","TP\nGq → ↑IP3","Potent vasoconstriction, platelet aggregation (opposes PGI2). t½ <30 sec","Aspirin (irreversible COX-1) → antiplatelet. Coxibs: ↓PGI2 only → ↑CV risk"],
    ["PGD2","Mast cells, brain","DP1, DP2","Vasodilation, bronchoconstriction, eosinophil chemotaxis, sleep regulation","DP2 (CRTH2) antagonists — asthma (investigational)"],
    ["PGF2α","Uterus, lungs","FP\nGq","Uterine contraction (labour), luteolysis, bronchoconstriction, ↑IOP","Latanoprost (PGF2α analog): glaucoma. Dinoprostone: labour induction"],
  ];
  const pBgs = [C.bgLight, C.bgMid, C.bgLight, C.bgMid, C.bgLight];
  pRows.forEach((r, i) => {
    const y = 1.93 + i*0.69;
    tblRow(s, 0.22, y, r, [1.2,1.5,1.6,3.0,2.26], C.teal, pBgs[i]);
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x:0.28, y:y+0.13, w:1.08, h:0.42, rectRadius:0.05, fill:{color:C.teal}, line:{color:C.teal,pt:0} });
    s.addText(r[0], { x:0.28, y:y+0.13, w:1.08, h:0.42, fontSize:8.5, bold:true, color:C.bg, align:"center", valign:"middle", margin:0 });
  });

  // COX-2 risk callout
  s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:5.38, w:9.56, h:0.22, fill:{color:C.bgMid}, line:{color:C.red,pt:1} });
  s.addText([
    { text:"COX-2 inhibitors (coxibs): ", options:{bold:true, color:C.red} },
    { text:"suppress PGI2 from endothelium without affecting platelet TxA2 → prothrombotic state → ↑MI/stroke risk (Vioxx withdrawn 2004)", options:{color:C.offWhite} },
  ], { x:0.32, y:5.38, w:9.4, h:0.22, fontSize:8.8, valign:"middle" });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 9 — LEUKOTRIENES, LIPOXINS & PAF
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PART III — LEUKOTRIENES  ·  LIPOXINS  ·  PLATELET-ACTIVATING FACTOR (PAF)", C.orange);

  // Leukotriene synthesis pathway
  hdrCard(s, 0.22, 0.62, 5.8, 2.3, "LEUKOTRIENES (5-LOX Pathway)", C.orange);
  s.addText([
    { text:"AA → [5-LOX+FLAP] → 5-HPETE → LTA4 (unstable epoxide)\n", options:{bold:true, color:C.orange} },
    { text:"            ↙  LTA4 hydrolase                 ↘  LTC4 synthase (+glutathione)\n", options:{color:C.gray} },
    { text:"          LTB4                                            LTC4\n", options:{color:C.offWhite} },
    { text:"    (dihydroxy leukotriene)               peptidase → LTD4 → LTE4\n", options:{color:C.lt} },
  ], { x:0.35, y:1.0, w:5.55, h:0.75, fontSize:9.5, fontFace:"Courier New" });

  // LTB4 card
  s.addShape(pres.shapes.RECTANGLE, { x:0.35, y:1.78, w:5.55, h:0.3, fill:{color:C.bgMid}, line:{color:C.bgMid,pt:0} });
  leftBar(s, 0.35, 1.78, 1.1, C.orange);
  pill(s, 0.42, 1.82, 0.65, 0.24, "LTB4", C.orange, C.bg);
  s.addText([
    { text:"Receptor: BLT1/BLT2  |  Source: Neutrophils, macrophages\n", options:{color:C.lt} },
    { text:"Actions: ", options:{bold:true, color:C.orange} },
    { text:"Potent neutrophil chemotaxis & adhesion; amplifies acute inflammation; role in psoriasis, IBD", options:{color:C.offWhite} },
  ], { x:1.12, y:1.78, w:4.7, h:0.55, fontSize:9, valign:"middle" });

  // Cysteinyl-LTs card
  s.addShape(pres.shapes.RECTANGLE, { x:0.35, y:2.03, w:5.55, h:0.32, fill:{color:C.bgLight}, line:{color:C.bgLight,pt:0} });
  leftBar(s, 0.35, 2.03, 0.86, C.red);
  pill(s, 0.42, 2.07, 1.05, 0.24, "LTC4/D4/E4", C.red, C.white);
  s.addText([
    { text:"= SRS-A  |  Source: Mast cells, eosinophils, basophils  |  Receptor: CysLT1, CysLT2\n", options:{color:C.lt} },
    { text:"Actions: ", options:{bold:true, color:C.red} },
    { text:"Bronchoconstriction (1000× > histamine), ↑mucus, ↑vascular permeability → asthma, anaphylaxis", options:{color:C.offWhite} },
  ], { x:1.52, y:2.03, w:4.3, h:0.42, fontSize:9, valign:"middle" });

  // Lipoxins
  s.addShape(pres.shapes.RECTANGLE, { x:0.35, y:2.55, w:5.55, h:0.3, fill:{color:C.bgMid}, line:{color:C.bgMid,pt:0} });
  leftBar(s, 0.35, 2.55, 0.3, C.green);
  pill(s, 0.42, 2.57, 0.9, 0.24, "Lipoxins", C.green, C.bg);
  s.addText([
    { text:"LXA4/LXB4  |  15-LOX + 5-LOX  |  ", options:{color:C.lt} },
    { text:"Anti-inflammatory 'stop signals' — inhibit neutrophil recruitment, promote resolution; aspirin-triggered lipoxins via COX-2", options:{color:C.offWhite} },
  ], { x:1.37, y:2.55, w:4.5, h:0.3, fontSize:9, valign:"middle" });

  // Drug summary
  s.addShape(pres.shapes.RECTANGLE, { x:0.35, y:2.9, w:5.55, h:0.22, fill:{color:C.bgMid}, line:{color:C.amber,pt:1} });
  s.addText([
    { text:"Drugs: ", options:{bold:true, color:C.amber} },
    { text:"Montelukast, zafirlukast (CysLT1 antagonists) — asthma/rhinitis  |  Zileuton (5-LOX inhibitor) — asthma", options:{color:C.offWhite} },
  ], { x:0.48, y:2.9, w:5.35, h:0.22, fontSize:9, valign:"middle" });

  // PAF
  hdrCard(s, 6.25, 0.62, 3.55, 2.85, "PAF (Platelet-Activating Factor)", C.red);
  s.addText([
    { text:"Structure: ", options:{bold:true, color:C.red} },
    { text:"1-O-alkyl-2-acetyl-sn-glycero-3-phosphocholine\n(acetylated phospholipid — NOT a classical eicosanoid)\n\n", options:{color:C.offWhite} },
    { text:"Sources: ", options:{bold:true, color:C.red} },
    { text:"Platelets, mast cells, neutrophils,\nmonocytes, vascular endothelium\n\n", options:{color:C.offWhite} },
    { text:"Receptor: ", options:{bold:true, color:C.red} },
    { text:"PAF-R (GPCR — Gi/Gq)\n\n", options:{color:C.offWhite} },
    { text:"Actions:\n", options:{bold:true, color:C.amber} },
    { text:"• Platelet aggregation & activation (femtomolar)\n• Potent bronchoconstriction\n• ↑Vascular permeability\n• Leukocyte activation & chemotaxis\n• Key mediator: anaphylaxis, sepsis, ARDS\n\n", options:{color:C.offWhite} },
    { text:"Metabolism: ", options:{bold:true, color:C.teal} },
    { text:"PAF-acetylhydrolase (PAF-AH) → inactivation\nPAF-AH deficiency → severe asthma in children", options:{color:C.offWhite} },
  ], { x:6.38, y:0.98, w:3.3, h:2.46, fontSize:9.2 });

  // Aspirin-Exacerbated Respiratory Disease box
  s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:3.18, w:9.56, h:0.62, fill:{color:C.bgMid}, line:{color:C.amber,pt:1.2} });
  leftBar(s, 0.22, 3.18, 0.62, C.amber);
  s.addText([
    { text:"Aspirin-Exacerbated Respiratory Disease (Samter's Triad): ", options:{bold:true, color:C.amber} },
    { text:"Aspirin/NSAIDs inhibit COX → AA shunted to 5-LOX → ↑↑cysteinyl leukotrienes → severe bronchoconstriction. ", options:{color:C.offWhite} },
    { text:"Triad: asthma + nasal polyps + aspirin sensitivity. Treatment: leukotriene antagonists + avoid COX inhibitors.", options:{color:C.lt} },
  ], { x:0.38, y:3.18, w:9.3, h:0.62, fontSize:9.5, valign:"middle" });

  // Integration reminder
  s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:3.88, w:9.56, h:1.7, fill:{color:C.bgLight}, line:{color:C.purple,pt:1.2} });
  s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:3.88, w:9.56, h:0.3, fill:{color:C.purple}, line:{color:C.purple,pt:0} });
  s.addText("SYSTEM INTEGRATION — How the three classes interact", { x:0.32, y:3.88, w:9.3, h:0.3, fontSize:10, bold:true, color:C.white, valign:"middle", margin:0 });
  s.addText([
    { text:"Tissue injury/antigen\n", options:{bold:true, color:C.white} },
    { text:"→ Mast cell degranulation: ", options:{bold:true, color:C.amber} },
    { text:"Histamine (amine) + PAF (lipid) → vasodilation, ↑permeability, bronchoconstriction\n", options:{color:C.offWhite} },
    { text:"→ PLA2 activation: ", options:{bold:true, color:C.purple} },
    { text:"AA released → COX → PGE2 (fever/pain), PGI2 (vasodilation), TxA2 (clot); LOX → LTB4 (chemotaxis), LTC4/D4/E4 (bronchoconstriction)\n", options:{color:C.offWhite} },
    { text:"→ Kallikrein activation: ", options:{bold:true, color:C.green} },
    { text:"Bradykinin (peptide) → amplifies vasodilation + pain + stimulates further PG synthesis → ACE (Kininase II) terminates it", options:{color:C.offWhite} },
  ], { x:0.35, y:4.21, w:9.3, h:1.35, fontSize:9.2 });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 10 — MASTER DRUG SUMMARY TABLE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "PHARMACOLOGICAL TARGETS — Master Drug Summary: Drugs Acting on Autocoid Pathways", C.teal);

  const drugSections = [
    {
      cat:"H1 Blockers", accent:C.amber,
      rows:[
        ["1st gen","Diphenhydramine, promethazine, chlorpheniramine","Cross BBB → sedation; antimuscarinic; α-blockade","Allergy, motion sickness, anaphylaxis adjunct, acute dystonia"],
        ["2nd gen","Cetirizine, loratadine, fexofenadine","No BBB penetration → no sedation; few autonomic effects","Allergic rhinitis, chronic urticaria — first-line"],
      ],
    },
    {
      cat:"H2 Blockers & 5-HT Drugs", accent:C.orange,
      rows:[
        ["H2 block","Ranitidine, famotidine, cimetidine","Gs→cAMP block on parietal cells → ↓acid","Peptic ulcer disease, GERD, Zollinger-Ellison"],
        ["5-HT drugs","Triptans (sumatriptan): 5-HT1B/D agonist\nSSRIs (fluoxetine): ↑synaptic 5-HT\nOndansetron: 5-HT3 antagonist","Selective receptor subtype activity","Migraine, depression/anxiety, chemo nausea"],
      ],
    },
    {
      cat:"Kinin / Peptide Pathway", accent:C.green,
      rows:[
        ["ACE inhib","Enalapril, lisinopril, ramipril","Block Kininase II → ↑bradykinin; block AT I→II","Hypertension, heart failure, CKD (↑bradykinin = cough!)"],
        ["HAE drugs","Icatibant (B2 block), ecallantide (kallikrein inhib), C1-INH","Target the kinin-generation cascade","Hereditary angioedema — acute & prophylaxis"],
      ],
    },
    {
      cat:"Eicosanoid Pathway", accent:C.purple,
      rows:[
        ["NSAIDs","Ibuprofen, naproxen, diclofenac","Non-selective COX-1+2 inhibition","Anti-inflammatory, analgesic, antipyretic"],
        ["Aspirin","Low dose: 75–300 mg","Irreversible COX-1 acetylation → ↓TxA2 (platelets)","Antiplatelet — ACS, stroke prevention"],
        ["Coxibs","Celecoxib, etoricoxib","Selective COX-2 → ↓PGI2 only","Arthritis — note ↑CV risk (↓PGI2/↑TxA2 imbalance)"],
        ["LT drugs","Montelukast (CysLT1)\nZileuton (5-LOX)","Block leukotriene pathway","Asthma, allergic rhinitis, aspirin-exacerbated RD"],
        ["PG analogs","Misoprostol (PGE1): gastric/cervical\nLatanoprost (PGF2α): IOP\nEpoprostenol (PGI2): PAH","Selective receptor agonism","Ulcer prophylaxis, glaucoma, PAH"],
        ["Steroids","Dexamethasone, prednisolone","↑Lipocortin → ↓PLA2 → block ALL eicosanoids","Anti-inflammatory, anaphylaxis, immunosuppression"],
      ],
    },
  ];

  let currentY = 0.6;
  drugSections.forEach((sec) => {
    s.addShape(pres.shapes.RECTANGLE, { x:0.22, y:currentY, w:9.56, h:0.28, fill:{color:sec.accent}, line:{color:sec.accent,pt:0} });
    s.addText(sec.cat, { x:0.3, y:currentY, w:9.4, h:0.28, fontSize:9.5, bold:true, color:C.bg, valign:"middle", margin:0 });
    currentY += 0.28;
    const bgs = [C.bgLight, C.bgMid];
    sec.rows.forEach((r, ri) => {
      const rh = r[0]==="5-HT drugs" ? 0.58 : (r[0]==="LT drugs"||r[0]==="PG analogs"?"0.44":0.36);
      const hh = parseFloat(rh);
      tblRow(s, 0.22, currentY, r, [1.05, 3.1, 2.9, 2.51], sec.accent, bgs[ri%2]);
      currentY += hh;
    });
    currentY += 0.05;
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 11 — SUMMARY TABLE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color:C.bg };
  topBar(s, "SUMMARY TABLE — Autocoids at a Glance", C.teal);

  const thead = [[
    { text:"CLASS",    options:{ bold:true, color:C.bg, fill:{color:C.teal} } },
    { text:"AUTOCOID", options:{ bold:true, color:C.bg, fill:{color:C.teal} } },
    { text:"PRECURSOR / SYNTHESIS", options:{ bold:true, color:C.bg, fill:{color:C.teal} } },
    { text:"RECEPTOR / SIGNAL",     options:{ bold:true, color:C.bg, fill:{color:C.teal} } },
    { text:"KEY ACTIONS",           options:{ bold:true, color:C.bg, fill:{color:C.teal} } },
  ]];

  function row(cls, name, pre, rec, act, bg) {
    return [
      { text:cls,  options:{ bold:true, color:C.amber, fill:{color:bg} } },
      { text:name, options:{ color:C.offWhite, fill:{color:bg} } },
      { text:pre,  options:{ color:C.lt, fill:{color:bg} } },
      { text:rec,  options:{ color:C.teal, fill:{color:bg} } },
      { text:act,  options:{ color:C.offWhite, fill:{color:bg} } },
    ];
  }
  const trows = [
    row("AMINE","Histamine","L-Histidine → histidine decarboxylase","H1(Gq) H2(Gs) H3(Gi) H4(Gi)","Allergy, inflammation, gastric acid secretion, itch, bronchoconstriction",C.bgLight),
    row("","Serotonin (5-HT)","L-Tryptophan → tryptophan hydroxylase → AADC","5-HT1(Gi) 5-HT2(Gq) 5-HT3(ion ch.) 5-HT4(Gs)","GI motility, platelet aggregation, mood/anxiety, vasoconstriction, emesis",C.bgMid),
    row("PEPTIDE","Bradykinin","Kininogens + kallikreins; degraded by ACE (Kininase II)","B1(inducible) B2(constitutive) — Gq","Vasodilation (NO+PGI2), pain, ↑vascular permeability, bronchoconstriction",C.bgLight),
    row("","ANP / BNP","Cardiac atria/ventricles; proteolytic cleavage of preproANP","GC-A receptor → ↑cGMP","Natriuresis, diuresis, vasodilation, ↓RAAS (renin, aldosterone, AVP)",C.bgMid),
    row("","Endothelins","Preproendothelin → ECE → ET-1","ETA(Gq vasoconstriction) ETB(vasodilation)","ET-1 = most potent endogenous vasoconstrictor; PAH target (bosentan)",C.bgLight),
    row("","Substance P","Gene-encoded; tachykinin family (11 aa)","NK1 receptor — Gq","Pain transmission, neurogenic inflammation, vasodilation, emesis",C.bgMid),
    row("LIPID","PGE2 / PGI2 / TxA2","Arachidonic acid via COX-1/COX-2","EP, IP, TP receptors","Fever, pain, hemostasis, gastric protection, reproduction, vasoregulation",C.bgLight),
    row("","LTC4 / D4 / E4","Arachidonic acid via 5-LOX","CysLT1, CysLT2","Bronchoconstriction (SRS-A), ↑mucus, ↑vascular permeability — asthma",C.bgMid),
    row("","LTB4","Arachidonic acid via 5-LOX","BLT1, BLT2","Potent neutrophil chemotaxis; acute inflammation amplification",C.bgLight),
    row("","PAF","Membrane phospholipids via PLA2+acetyltransferase","PAF-R (GPCR — Gi/Gq)","Platelet activation, bronchoconstriction, anaphylaxis, sepsis",C.bgMid),
  ];

  s.addTable([...thead, ...trows], {
    x:0.22, y:0.62, w:9.56,
    colW:[0.85, 1.45, 2.2, 2.3, 2.76],
    fontSize:8.5, margin:3, rowH:0.48,
    border:{ pt:0.5, color:"1A3354" },
  });

  s.addText("Katzung's Basic & Clinical Pharmacology 16e  ·  Goodman & Gilman's 13e  ·  Ganong's Review of Medical Physiology 26e", {
    x:0, y:5.38, w:10, h:0.22, fontSize:7.5, color:C.gray, align:"center",
  });
}

// ── WRITE FILE ────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/autocoids-pptx/Autocoids_Pharmacological_Basis.pptx" })
  .then(() => console.log("✅  File saved successfully"))
  .catch(e => { console.error("ERROR:", e.message); process.exit(1); });
Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.

Hi

Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.
This is a shared conversation. Sign in to Orris to start your own chat.