Hello now plz try to understand me these are 3 ppt of microbiology I have to make power point presentations comparing all information provided in these ppt about all bacteria and other information given about them individually in format table format to understand and remember information So now you make it for me which any mistake

Asking for Preferences
Reading File
Reading File
Running Command

cd /home/daytona/workspace && python3 -c " import pdfplumber pdfs = [ '/hom…

Reading File
Running Command

mkdir -p /home/daytona/workspace/microbiology-comparison && ls /home/daytona/wor…

Writing File

~/microbiology-comparison/build.js

const pptxgen = require("pptxgenjs");

let pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" x 7.5"
pres.title = "Microbiology Bacteria Comparison";
pres.author = "Microbiology Study Guide";

// ===== COLOR PALETTE =====
const BG_DARK = "1A1A2E";       // deep navy
const BG_MID  = "16213E";       // mid navy
const ACCENT1 = "0F3460";       // dark blue
const ACCENT2 = "E94560";       // vivid red/pink
const ACCENT3 = "533483";       // purple
const COL_HDR_CLOST = "1B5E20"; // dark green for Clostridium header
const COL_HDR_DIPH  = "1A237E"; // dark blue for C.diphtheriae header
const COL_HDR_BORD  = "4A148C"; // dark purple for B.pertussis header
const ROW_ALT1 = "E8F5E9";      // light green
const ROW_ALT2 = "E8EAF6";      // light blue
const ROW_ALT3 = "F3E5F5";      // light purple
const WHITE = "FFFFFF";
const DARK_TEXT = "1A1A2E";

// Helper: slide title bar
function addTitleBar(slide, title, color) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 0.65, fill: { color: color } });
  slide.addText(title, {
    x: 0.2, y: 0, w: 12.9, h: 0.65,
    fontSize: 22, bold: true, color: WHITE,
    valign: "middle", align: "left", margin: 0
  });
}

// Helper: add background
function addBg(slide, color) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 7.5, fill: { color: color } });
}

// ================================================================
// SLIDE 1 – TITLE SLIDE
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, BG_DARK);
  // decorative bars
  s.addShape(pres.ShapeType.rect, { x: 0, y: 2.2, w: 13.3, h: 0.08, fill: { color: ACCENT2 } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.1, w: 13.3, h: 0.08, fill: { color: ACCENT2 } });
  s.addText("MICROBIOLOGY", {
    x: 0.5, y: 0.5, w: 12.3, h: 1.2,
    fontSize: 52, bold: true, color: WHITE, align: "center", valign: "middle"
  });
  s.addText("BACTERIA COMPARISON STUDY GUIDE", {
    x: 0.5, y: 1.6, w: 12.3, h: 0.7,
    fontSize: 24, bold: false, color: ACCENT2, align: "center", valign: "middle", charSpacing: 4
  });
  s.addText("Clostridium spp  |  Corynebacterium diphtheriae  |  Bordetella pertussis", {
    x: 0.5, y: 2.55, w: 12.3, h: 0.6,
    fontSize: 16, color: "AAAACC", align: "center", italic: true
  });

  // summary boxes
  const boxes = [
    { label: "C. difficile", x: 0.4 },
    { label: "C. perfringens", x: 2.65 },
    { label: "C. tetani", x: 4.9 },
    { label: "C. botulinum", x: 7.15 },
    { label: "C. diphtheriae", x: 9.4 },
    { label: "B. pertussis", x: 11.65 }
  ];
  boxes.forEach(b => {
    s.addShape(pres.ShapeType.rect, { x: b.x, y: 3.4, w: 1.9, h: 0.8, fill: { color: ACCENT1 }, line: { color: ACCENT2, width: 1 } });
    s.addText(b.label, { x: b.x, y: 3.4, w: 1.9, h: 0.8, fontSize: 10, bold: true, color: WHITE, align: "center", valign: "middle" });
  });

  s.addText("Topics Covered:", {
    x: 0.5, y: 4.4, w: 12.3, h: 0.4, fontSize: 13, color: ACCENT2, bold: true
  });
  const topics = ["Morphology & Classification", "Pathogenesis & Toxins", "Epidemiology", "Clinical Diseases", "Lab Diagnosis", "Treatment & Prevention"];
  topics.forEach((t, i) => {
    s.addText("✓  " + t, {
      x: 0.5 + (i % 3) * 4.3, y: 4.85 + Math.floor(i / 3) * 0.55,
      w: 4.0, h: 0.5, fontSize: 12, color: "CCCCEE"
    });
  });
}

// ================================================================
// SLIDE 2 – GENERAL CHARACTERISTICS (OVERVIEW TABLE)
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "F5F5FF");
  addTitleBar(s, "OVERVIEW: General Characteristics of All 5 Bacteria", ACCENT1);

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["Gram Stain",            "Gram +ve rod",         "Gram +ve rod",         "Gram +ve rod",          "Gram +ve rod",           "Gram +ve rod\n(club-shaped)", "Gram -ve coccobacillus"],
    ["Morphology",            "Large rod\n(0.5–1.9 × 3–17 µm)", "Rectangular rod\n(0.6–2.4 × 1.3–19 µm)", "Large rod\n(0.5–2 × 2–18 µm)", "Large rod\n(0.6–1.4 × 3–20 µm)", "Pleomorphic rod\n(0.3–0.8 × 1–8 µm)", "Very small\n(0.2–0.5 × 1 µm)"],
    ["Oxygen Requirement",    "Anaerobic",            "Anaerobic",            "Anaerobic",             "Anaerobic",              "Aerobic/Facultative",       "Strictly Aerobic"],
    ["Spore Formation",       "Yes (oval)",            "Rarely in vivo",       "Yes – TERMINAL\n(drumstick)", "Yes",              "No",                        "No"],
    ["Motility",              "Non-motile",           "Non-motile",           "Motile",                "Non-motile",             "Non-motile",                "Non-motile"],
    ["Capsule",               "No",                   "No",                   "No",                    "No",                     "No",                        "No"],
    ["Genus",                 "Clostridioides",       "Clostridium",          "Clostridium",           "Clostridium",            "Corynebacterium",           "Bordetella"],
    ["Special Feature",       ">400 strains;\n'barnyard' smell", "β-hemolysis;\nRapid growth", "Film growth\n(no discrete colonies)", "7 antigenically\ndistinct toxins", "4 biotypes;\nMetachromatic granules", "8 species;\nRequires enriched media"],
  ];

  const colW = [2.0, 1.83, 1.83, 1.83, 1.83, 1.83, 1.83];
  const startX = 0.1;
  const startY = 0.75;
  const rowH = 0.68;
  const hdrH = 0.48;

  // Header row
  let cx = startX;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });

  // Data rows
  const rowBg = ["FFFFFF", "E8F5E9", "FFFFFF", "E8F5E9", "FFFFFF", "E8F5E9", "FFFFFF", "E8F5E9"];
  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 8, color: DARK_TEXT, align: "center", valign: "middle", margin: 2, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 3 – TOXINS COMPARISON TABLE
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "FFF8F5");
  addTitleBar(s, "TOXINS & VIRULENCE FACTORS Comparison", "B71C1C");

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["Main Toxin(s)",
     "Toxin A (enterotoxin)\nToxin B (cytotoxin)",
     "Alpha (CPA)\nBeta (CPB)\nEpsilon (ETX)\nIota (ITX)\nEnterotoxin (CPE)",
     "Tetanospasmin (neurotoxin)\nTetanolysin (hemolysin)",
     "Botulinum neurotoxin\n(Types A–G; A,B,E,F cause human disease)",
     "Diphtheria toxin (DT)\n58,300 Da protein",
     "Pertussis toxin (PT)\nDermonecrotic toxin\nTracheal cytotoxin"],
    ["Toxin Type",
     "Enterotoxin + Cytotoxin",
     "Phospholipase C (alpha)\nNecrotic (beta, iota)",
     "A-B Neurotoxin\n(heat-labile)",
     "A-B Neurotoxin\nComplexed with protective proteins",
     "A-B Exotoxin\n(AB fragment)",
     "A-B Exotoxin (PT)\nType IV secretion system"],
    ["Mechanism",
     "Toxin A: disrupts mucosal adhesion,\ndisrupts tight junctions\nToxin B: depolymerizes actin,\ninduces apoptosis",
     "Alpha toxin: lyses RBCs,\nplatelets, endothelial cells\nBeta toxin: intestinal necrosis\nEpsilon: increases vascular permeability",
     "Tetanospasmin:\nblocks inhibitory neurotransmitters\n(glycine & GABA)\n→ Spastic paralysis",
     "Botulinum toxin:\nblocks acetylcholine release\nat NMJ\n→ Flaccid paralysis",
     "A subunit: inactivates\nElongation Factor-2 (EF-2)\n→ Stops protein synthesis\n→ Cell death",
     "PT: ADP-ribosylates G protein\n→ ↑cAMP → ↑secretions\nTracheal cytotoxin:\ninhibits cilia movement"],
    ["Site of Action",
     "Colon\n(tight junctions, cytoskeleton)",
     "Small intestine\n(ileum & jejunum)\nSoft tissue",
     "Motor neuron\n(inhibitory synapses in spinal cord)",
     "Neuromuscular junction\n(peripheral cholinergic synapses)",
     "Heart & nerve cells\n(via EGF receptor)",
     "Respiratory epithelium\nciliated cells; systemic via bloodstream"],
    ["Toxin Encoding",
     "Chromosomal genes\n(pathogenicity locus)",
     "Chromosomal + plasmid",
     "Plasmid\n(non-conjugative; tetanospasmin)\nChromosome (tetanolysin)",
     "Bacteriophage or plasmid\n(for some types)",
     "Beta-phage (tox gene)\nRegulated by DtxR on chromosome",
     "Bacterial chromosome\n(ptx genes on PT operon)"],
    ["Toxin Regulation",
     "Not iron-regulated",
     "Not iron-regulated",
     "Plasmid-encoded;\nstationary phase production",
     "N/A – preformed in food",
     "Iron-regulated (DtxR):\nLow iron → toxin ON\nHigh iron → toxin OFF",
     "Activated after endocytosis;\nglutathione & ATP activation"],
    ["Paralysis Type",
     "None (diarrhea/colitis)",
     "None (soft tissue/GI)",
     "SPASTIC (tetanic) paralysis",
     "FLACCID paralysis",
     "None (protein synthesis halt)",
     "No paralysis\n(mucus ↑, cough reflex)"],
  ];

  const colW = [1.9, 1.87, 1.87, 1.87, 1.87, 1.87, 1.87];
  const startX = 0.07;
  const startY = 0.72;
  const rowH = 0.87;
  const hdrH = 0.45;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  const rowBg = ["FFFFFF", "FFF3E0", "FFFFFF", "FFF3E0", "FFFFFF", "FFF3E0", "FFFFFF"];

  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });

  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 7.5, color: DARK_TEXT, align: "left", valign: "top", margin: 3, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 4 – EPIDEMIOLOGY COMPARISON
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "F0F4FF");
  addTitleBar(s, "EPIDEMIOLOGY Comparison", "0D47A1");

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["Reservoir",
     "Colon/GI tract;\nhospital environment;\nspores in environment",
     "Soil, water, human &\nanimal intestinal tract",
     "Soil, intestinal tracts\nof animals & humans",
     "Soil, water worldwide;\nfood (canned, preserved fish)",
     "HUMANS ONLY\n(oropharynx, skin)",
     "HUMANS ONLY\n(no animal/env reservoir)"],
    ["Transmission",
     "Faeco-oral route;\nhospital surfaces;\nnosocomial",
     "Ingestion of\ncontaminated food\n(meat products)",
     "Wound infection\n(spore entry);\nNOT person-to-person",
     "Ingestion of contaminated\nfood; infant ingestion\nof spores (honey); wound",
     "Respiratory droplets;\nskin contact;\nAsymptomatic carriers",
     "Infectious aerosols;\nRespiratory droplets;\nHighly contagious"],
    ["Risk Factors",
     "Antibiotic use;\nElderly;\nHospitalized patients",
     "Consuming undercooked\nmeat; improper food storage\n(45–60°C favors growth)",
     "Deep wounds;\nUnvaccinated persons;\nNewborns (umbilical stump)",
     "Home-canned foods;\nInfants (<1 yr);\nWounds (IV drug users)",
     "Unvaccinated;\nPoor urban areas;\nLow immunity",
     "Unvaccinated;\nInfants, adolescents;\npartially immune adults"],
    ["High-Risk Group",
     "Elderly;\nImmunocompromised;\nICU patients",
     "All ages;\nImmuno-compromised\nfor septicemia",
     "Newborns;\nUnvaccinated adults;\nElderly",
     "All ages;\nInfants (<6 months)\nmost at risk",
     "Children (unvaccinated);\nOutbreak in non-immune\npopulations",
     "Infants <1 year\n(highest severity);\nAdolescents & adults\n(reservoir)"],
    ["Incubation Period",
     "Variable;\ndepends on antibiotic\nexposure",
     "8–12 hours\n(food poisoning form)",
     "Few days to weeks;\nRelated to distance\nof wound from CNS",
     "1–3 days\n(foodborne);\n4+ days (wound)",
     "2–4 days\n(respiratory form)",
     "7–10 days"],
    ["Geographic Distribution",
     "Worldwide;\nHospital settings",
     "Worldwide;\nPapua New Guinea\n(necrotizing enteritis)",
     "Worldwide;\nDeveloping countries\n(highest burden)",
     "Worldwide;\nNorth America, Europe\n(foodborne)",
     "Worldwide;\nFormer Soviet Union\n(1994: 48,000 cases)",
     "Worldwide endemic;\n~16 million infections/yr;\n~200,000 deaths/yr"],
  ];

  const colW = [1.9, 1.87, 1.87, 1.87, 1.87, 1.87, 1.87];
  const startX = 0.07;
  const startY = 0.72;
  const rowH = 0.95;
  const hdrH = 0.45;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  const rowBg = ["FFFFFF", "E3F2FD", "FFFFFF", "E3F2FD", "FFFFFF", "E3F2FD"];

  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });
  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 7.5, color: DARK_TEXT, align: "left", valign: "top", margin: 3, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 5 – CLINICAL DISEASES COMPARISON
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "FFF5F5");
  addTitleBar(s, "CLINICAL DISEASES Comparison", "880E4F");

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["Disease(s) Caused",
     "C. diff-associated\ndiarrhea (CDAD)\nPseudomembranous colitis",
     "Gas gangrene (myonecrosis)\nFood poisoning\nNecrotizing enteritis\nSepticemia\nSoft-tissue infections",
     "Generalized tetanus\nLocalized tetanus\nCephalic tetanus\nNeonatal tetanus",
     "Foodborne botulism\nInfant botulism\nWound botulism\nInhalation botulism",
     "Respiratory diphtheria\nCutaneous diphtheria\nSystemic complications",
     "Whooping cough\n(Pertussis)\n3 clinical stages"],
    ["Key Symptoms",
     "Watery diarrhea\nAbdominal cramps\nNo fever/nausea in food poisoning\nColitis in severe disease",
     "Intense pain at wound\nMuscle necrosis\nGas in tissue\nShock, renal failure\nDeath within 2 days (gangrene)",
     "Trismus (lockjaw)\nRisus sardonicus\nOpisthotonos\nSpastic paralysis\nAutonomic dysfunction",
     "Blurred vision\nFixed dilated pupils\nDry mouth, constipation\nDescending flaccid paralysis\nRespiratory paralysis",
     "Pseudomembrane\n(grey-white, bleeds if removed)\nBull neck\nAirway obstruction\nMyocarditis",
     "Stage 1: Cold-like (rhinorrhea)\nStage 2: Paroxysmal cough + whoop\nStage 3: Convalescence\nVomiting, lymphocytosis"],
    ["Hallmark Sign",
     "Pseudomembranous colitis;\nbarnyard-smelling culture",
     "Gas in tissue (gas gangrene);\nNo leukocytes on Gram stain",
     "Spastic (rigid) paralysis;\nLockjaw; Drumstick spores",
     "Flaccid (descending) paralysis;\nDescending weakness;\nNo fever",
     "Pseudomembrane firmly\nadhered (bleeds on removal);\nBull neck",
     "Inspiratory whoop after\nparoxysmal cough;\nUp to 40–50 paroxysms/day"],
    ["Paralysis Type",
     "None",
     "None (tissue destruction)",
     "Spastic/Rigid\n(spinal cord – inhibitory)",
     "Flaccid\n(neuromuscular junction – excitatory)",
     "Loss of motor function\n(neuropathy)",
     "No true paralysis\n(cilia dysfunction)"],
    ["Systemic Complications",
     "Dehydration\nBowel perforation\nHaemorrhage\n~1.5% mortality",
     "Hemolysis\nSeptic shock\nMortality: 40–100% (gangrene)",
     "Cardiac arrhythmias\nFluctuating BP\nMortality high in neonates",
     "Respiratory failure\nMortality: ~5–10% (now)\nPreviously 70%",
     "Myocarditis\nPolyneuropathy\nKidney failure\nCongestive heart failure",
     "Pneumonia\nSeizures\nEncephalopathy"],
    ["Age Group",
     "Elderly most at risk;\nAll ages hospitalized",
     "All ages;\nInfants (Type C – pig bell)",
     "Neonates;\nUnvaccinated adults",
     "Infants (<6 months)\nmost common form now",
     "Children (mainly);\nAdults in non-endemic areas",
     "Infants (<1 year)\nmost severe"],
  ];

  const colW = [1.9, 1.87, 1.87, 1.87, 1.87, 1.87, 1.87];
  const startX = 0.07;
  const startY = 0.72;
  const rowH = 0.96;
  const hdrH = 0.45;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  const rowBg = ["FFFFFF", "FCE4EC", "FFFFFF", "FCE4EC", "FFFFFF", "FCE4EC"];

  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });
  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 7.5, color: DARK_TEXT, align: "left", valign: "top", margin: 3, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 6 – LABORATORY DIAGNOSIS COMPARISON
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "F0FFF0");
  addTitleBar(s, "LABORATORY DIAGNOSIS Comparison", "2E7D32");

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["Specimen",
     "Stool specimen",
     "Stool, food, wound exudate;\nBlood culture",
     "Wound tissue/exudate;\nBlood (rarely useful)",
     "Food, serum, feces,\ngastric fluid;\nWound (wound botulism)",
     "Nasopharynx & throat\nswabs; skin lesion",
     "Nasopharyngeal swab;\nPernasal swab"],
    ["Microscopy",
     "Gram+ rods;\nOval terminal spores",
     "Gram+ rectangular rods;\nNO leukocytes (lysed)\nin gangrene",
     "Gram+ rods;\nDrumstick spores\n(30% culture positive only)",
     "Gram+ rods\n(clinical diagnosis mainly)",
     "Irregular rods;\nMetachromatic granules\n(methylene blue stain)",
     "Gram-ve coccobacilli\n(unreliable microscopy)"],
    ["Culture Media",
     "Anaerobic media;\nCycloserine-cefoxitin\nfructose agar (CCFA)",
     "Blood agar\n(β-hemolysis;\nrapid growth 8–10 min)",
     "Enriched liquid media;\nFilm-like growth on agar\n(not discrete colonies)",
     "Heated specimen at 80°C\n× 10 min; Enriched\nanaerobic media",
     "Blood agar (non-selective)\n+ CTBA / Tinsdale medium\n/ CNA (selective)",
     "Charcoal, starch, blood,\nor albumin-supplemented\nmedia (Bordet-Gengou)"],
    ["Key Diagnostic Test",
     "Toxin A & B detection\nin stool;\nNAA (PCR) for tox genes",
     "Recovery >10⁵ org/g food\nor 10⁶/g feces;\nImmunoassay for CPE",
     "Antitoxin neutralization\ntest in MICE (reference lab);\nCulture (30% positive)",
     "Mouse bioassay\n(antitoxin protection);\nToxin in serum/food",
     "Elek test (in vitro\nimmunodiffusion –\ngold standard)\nPCR for tox gene",
     "PCR (highly sensitive\nand specific);\nELISA for antibodies\nagainst PT, FHA, pertactin"],
    ["Special Note",
     "Isolation ≠ disease;\nToxin must be demonstrated;\nCulture shows colonization",
     "C. perfringens divides\nevery 8–10 min\n(fastest growing anaerobe)",
     "Culture often negative;\nDiagnosis is CLINICAL;\nToxin undetectable in serum",
     "No single test >60%\nsensitivity (foodborne);\nInfant botulism: toxin\nin >90% serum",
     "Treatment starts before\nlab results (1 week delay);\nAll isolates must be\ntested for toxigenicity",
     "B. pertussis very sensitive\nto drying and toxic\nmetabolites; use fresh media;\nCulture recovery difficult"],
  ];

  const colW = [1.9, 1.87, 1.87, 1.87, 1.87, 1.87, 1.87];
  const startX = 0.07;
  const startY = 0.72;
  const rowH = 0.99;
  const hdrH = 0.45;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  const rowBg = ["FFFFFF", "E8F5E9", "FFFFFF", "E8F5E9", "FFFFFF"];

  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });
  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 7.5, color: DARK_TEXT, align: "left", valign: "top", margin: 3, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 7 – TREATMENT & PREVENTION COMPARISON
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "FFFDE7");
  addTitleBar(s, "TREATMENT, PREVENTION & CONTROL Comparison", "E65100");

  const headers = ["Feature", "C. difficile", "C. perfringens", "C. tetani", "C. botulinum", "C. diphtheriae", "B. pertussis"];
  const rows = [
    ["First-line Treatment",
     "Stop causative antibiotic\nMetronidazole or\nVancomycin (severe disease)\nFecal transplant (recurrent)",
     "Surgical debridement\nHigh-dose Penicillin\nHyperbaric oxygen (HBOT)\nOral rehydration (food poisoning)",
     "Wound debridement\nPenicillin or Metronidazole\nHuman tetanus immunoglobulin (HTI)\nTetanus toxoid (active immunity)",
     "Mechanical ventilation\nGastric lavage\nTrivalent antitoxin (A, B, E)\nMetronidazole/Penicillin (wound only)",
     "Diphtheria antitoxin (EARLY!)\nPenicillin or Erythromycin\nBed rest + airway management",
     "Supportive care\nMacrolides (erythromycin,\nazithromycin, clarithromycin)\nTMP-SMX (if macrolide intolerant)"],
    ["Antibiotics Used",
     "Metronidazole\nOral Vancomycin",
     "Penicillin (high-dose)\n(food poisoning: none needed)",
     "Penicillin or Metronidazole",
     "Only for wound botulism:\nMetronidazole or Penicillin",
     "Penicillin or Erythromycin",
     "Erythromycin, Azithromycin,\nClarithromycin;\nTMP-SMX or Fluoroquinolones\n(alternative)"],
    ["Antitoxin / Immunotherapy",
     "None",
     "None",
     "Human Tetanus Immunoglobulin\n(HTI) – passive immunization",
     "Trivalent Botulinum Antitoxin\n(Toxins A, B, E)\nPassive immunity does NOT\ndevelop after disease",
     "Diphtheria Antitoxin\n(most important!)\nMust be given EARLY",
     "None (antitoxin not used)"],
    ["Vaccine Available?",
     "NO (no vaccine)",
     "NO (no human vaccine)",
     "YES – Tetanus Toxoid\n(TT, DT, Td, DTP)\nBooster every 10 years",
     "NO (no routine vaccine)\n(Antitoxin for treatment only)",
     "YES – Diphtheria Toxoid\n(DPT/DTaP)\nBooster every 10 years",
     "YES – Acellular Pertussis\nvaccine (DTaP/Tdap)\nContains: PT, FHA, Pertactin"],
    ["Vaccine Schedule",
     "N/A",
     "N/A",
     "3 doses + boosters\nevery 10 years;\nNeonates via maternal\nvaccination",
     "N/A",
     "5 injections: ages 2, 4, 6,\n15–18 months, 4–6 years;\nBooster every 10 years",
     "5 doses: ages 2, 4, 6,\n15–18 months, 4–6 years;\nAdult booster: age 11–12,\nthen 19–65 years"],
    ["Prevention Strategy",
     "Hand hygiene; contact\nprecautions; limit\nunnecessary antibiotics;\nSpore-resistant to alcohol\n(use bleach for disinfection)",
     "Proper food handling;\nRapid refrigeration;\nReheat to >74°C\nProper wound care",
     "Vaccination (key!)\nProper wound care\nProphylactic antibiotics",
     "Proper food preparation;\nDestroy toxin at 60–100°C\nfor 10 min;\nNo honey for infants <1 yr",
     "Active immunization;\nTreat contacts with\nerythromycin/penicillin;\nBooster within 5 years\nfor contacts",
     "Active immunization;\nAzithromycin prophylaxis\nfor close contacts;\nIdentify and treat carriers"],
  ];

  const colW = [1.9, 1.87, 1.87, 1.87, 1.87, 1.87, 1.87];
  const startX = 0.07;
  const startY = 0.72;
  const rowH = 0.96;
  const hdrH = 0.45;
  const hdrColors = ["303030", COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_CLOST, COL_HDR_DIPH, COL_HDR_BORD];
  const rowBg = ["FFFFFF", "FFF8E1", "FFFFFF", "FFF8E1", "FFFFFF", "FFF8E1"];

  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: startY, w: colW[i], h: hdrH, fill: { color: hdrColors[i] } });
    s.addText(h, { x: cx, y: startY, w: colW[i], h: hdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    cx += colW[i];
  });
  rows.forEach((row, ri) => {
    let cx2 = startX;
    row.forEach((cell, ci) => {
      const bg = ci === 0 ? "EEEEEE" : rowBg[ri];
      s.addShape(pres.ShapeType.rect, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fill: { color: bg }, line: { color: "CCCCCC", width: 0.5 } });
      s.addText(cell, { x: cx2, y: startY + hdrH + ri * rowH, w: colW[ci], h: rowH, fontSize: 7.5, color: DARK_TEXT, align: "left", valign: "top", margin: 3, wrap: true });
      cx2 += colW[ci];
    });
  });
}

// ================================================================
// SLIDE 8 – PATHOGENESIS DEEP DIVE (Individual bacteria)
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "1A1A2E");
  addTitleBar(s, "PATHOGENESIS DEEP DIVE: Tetanus vs Botulism (Key Distinction)", ACCENT2);

  // Tetanus box
  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 0.75, w: 6.2, h: 6.5, fill: { color: "0D2137" }, line: { color: "E94560", width: 2 } });
  s.addText("TETANUS (C. tetani)", { x: 0.3, y: 0.8, w: 6.0, h: 0.45, fontSize: 14, bold: true, color: ACCENT2, align: "center" });
  const tetLines = [
    "• Toxin: TETANOSPASMIN (A-B toxin)",
    "• A chain: Zinc endopeptidase",
    "• B chain: Binds sialic acid receptors on motor neurons",
    "",
    "• Toxin travels RETROGRADE up the axon",
    "  to motor neuron soma in spinal cord",
    "",
    "• Blocks INHIBITORY neurotransmitters:",
    "  Glycine & GABA",
    "",
    "• Result: UNREGULATED excitatory activity",
    "→ SPASTIC (RIGID) PARALYSIS",
    "→ Lockjaw, Risus sardonicus, Opisthotonos",
    "",
    "• Toxin binding = IRREVERSIBLE",
    "• Recovery = new axonal terminal formation",
    "",
    "• Toxin encoded on PLASMID (non-conjugative)",
    "• Lethal dose: <2.5 ng/kg body weight"
  ];
  s.addText(tetLines.join("\n"), { x: 0.3, y: 1.3, w: 6.0, h: 5.7, fontSize: 10.5, color: "DDDDEE", valign: "top", margin: 5, wrap: true });

  // Botulism box
  s.addShape(pres.ShapeType.rect, { x: 6.9, y: 0.75, w: 6.2, h: 6.5, fill: { color: "0D2137" }, line: { color: "00BCD4", width: 2 } });
  s.addText("BOTULISM (C. botulinum)", { x: 7.0, y: 0.8, w: 6.0, h: 0.45, fontSize: 14, bold: true, color: "00BCD4", align: "center" });
  const botLines = [
    "• Toxin: BOTULINUM NEUROTOXIN (A-B toxin)",
    "• A chain: Zinc endopeptidase",
    "• B chain: Binds sialic acid receptors on motor neurons",
    "  (DIFFERENT receptor from tetanospasmin)",
    "",
    "• Toxin stays at NEUROMUSCULAR JUNCTION",
    "  (does NOT travel retrograde to spinal cord)",
    "",
    "• Blocks EXCITATORY neurotransmitter:",
    "  Acetylcholine (ACh)",
    "",
    "• Result: ACh NOT released",
    "→ FLACCID PARALYSIS",
    "→ Descending weakness, respiratory failure",
    "",
    "• Toxin complexed with protective proteins",
    "  (protects against digestion in GI tract)",
    "",
    "• Recovery = nerve ending regeneration",
    "• Types A, B, E, F → human disease"
  ];
  s.addText(botLines.join("\n"), { x: 7.0, y: 1.3, w: 6.0, h: 5.7, fontSize: 10.5, color: "DDDDEE", valign: "top", margin: 5, wrap: true });

  // vs label
  s.addShape(pres.ShapeType.ellipse, { x: 6.15, y: 3.5, w: 0.7, h: 0.7, fill: { color: ACCENT2 } });
  s.addText("VS", { x: 6.15, y: 3.5, w: 0.7, h: 0.7, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle" });
}

// ================================================================
// SLIDE 9 – PERTUSSIS STAGES + DIPHTHERIA TOXIN MECHANISM
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "0A0A1A");
  addTitleBar(s, "PERTUSSIS Stages & DIPHTHERIA Toxin Mechanism", "7B1FA2");

  // Pertussis table (top half)
  s.addText("B. PERTUSSIS – Three Stages of Whooping Cough", { x: 0.2, y: 0.75, w: 12.9, h: 0.4, fontSize: 13, bold: true, color: "CE93D8" });

  const stageHeaders = ["Stage", "Duration", "Symptoms", "Key Bacteriology", "Contagiousness"];
  const stageData = [
    ["Incubation", "7–10 days", "None", "Bacteria attaching to ciliated cells", "Not yet contagious"],
    ["Catarrhal", "1–2 weeks", "Rhinorrhea, malaise, low fever, sneezing, anorexia", "PEAK bacterial numbers;\nmost contagious stage", "HIGHEST risk to contacts"],
    ["Paroxysmal", "2–4 weeks", "Classic whoop; repetitive coughs;\nvomiting; exhaustion;\n40–50 paroxysms/day;\nLymphocytosis", "Cilia extruded; mucus clearance impaired", "Moderate contagion"],
    ["Convalescent", "3–4+ weeks", "Diminishing paroxysms;\nSecondary complications\n(pneumonia, seizures, encephalopathy)", "Bacterial elimination starting", "Low contagion"],
  ];
  const sColW = [1.5, 1.4, 3.8, 3.5, 3.7];
  const sStartX = 0.12; const sStartY = 1.2; const sRowH = 0.62; const sHdrH = 0.42;
  let scx = sStartX;
  stageHeaders.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: scx, y: sStartY, w: sColW[i], h: sHdrH, fill: { color: "4A148C" } });
    s.addText(h, { x: scx, y: sStartY, w: sColW[i], h: sHdrH, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    scx += sColW[i];
  });
  const sBg = ["1B2A3A", "162035", "1B2A3A", "162035"];
  stageData.forEach((row, ri) => {
    let scx2 = sStartX;
    row.forEach((cell, ci) => {
      s.addShape(pres.ShapeType.rect, { x: scx2, y: sStartY + sHdrH + ri * sRowH, w: sColW[ci], h: sRowH, fill: { color: sBg[ri] }, line: { color: "4A148C", width: 0.5 } });
      s.addText(cell, { x: scx2, y: sStartY + sHdrH + ri * sRowH, w: sColW[ci], h: sRowH, fontSize: 8, color: "DDDDEE", align: "left", valign: "middle", margin: 3, wrap: true });
      scx2 += sColW[ci];
    });
  });

  // Diphtheria mechanism (bottom half)
  s.addText("C. DIPHTHERIAE – Toxin Mechanism", { x: 0.2, y: 3.95, w: 12.9, h: 0.4, fontSize: 13, bold: true, color: "90CAF9" });
  const steps = [
    ["1. IRON\nDEPLETED", "DtxR repressor\ninactivated;\ntox gene\nde-repressed"],
    ["2. TOXIN\nSYNTHESIS", "Beta-phage tox\ngene transcribed;\nDT secreted from\nbacterium"],
    ["3. RECEPTOR\nBINDING", "B subunit binds\nheparin-binding\nEGF receptor on\nheart & nerve cells"],
    ["4. INTERNALIZATION", "Toxin-receptor\ncomplex endocytosed;\ntranslocation region\ninserted into endosome"],
    ["5. EF-2\nINACTIVATION", "A subunit (catalytic)\ninactivates EF-2\n(elongation factor-2)"],
    ["6. CELL\nDEATH", "Protein synthesis\nstops entirely;\nTissue destruction;\nMyocarditis, neuropathy"],
  ];
  const stepW = 2.15;
  steps.forEach((step, i) => {
    const sx = 0.12 + i * (stepW + 0.03);
    s.addShape(pres.ShapeType.rect, { x: sx, y: 4.4, w: stepW, h: 2.7, fill: { color: "0D1F3A" }, line: { color: "1565C0", width: 1 } });
    s.addShape(pres.ShapeType.rect, { x: sx, y: 4.4, w: stepW, h: 0.5, fill: { color: "1565C0" } });
    s.addText(step[0], { x: sx, y: 4.4, w: stepW, h: 0.5, fontSize: 9, bold: true, color: WHITE, align: "center", valign: "middle", margin: 2 });
    s.addText(step[1], { x: sx, y: 4.92, w: stepW, h: 2.1, fontSize: 9.5, color: "CCDDFF", align: "center", valign: "top", margin: 4, wrap: true });
    // Arrow
    if (i < steps.length - 1) {
      s.addText("→", { x: sx + stepW - 0.1, y: 5.5, w: 0.3, h: 0.4, fontSize: 14, color: ACCENT2, align: "center" });
    }
  });
}

// ================================================================
// SLIDE 10 – QUICK MEMORY TABLE: KEY FACTS
// ================================================================
{
  let s = pres.addSlide();
  addBg(s, "0E0E1A");
  addTitleBar(s, "QUICK MEMORY TABLE: Must-Know Facts for Exams", "F57F17");

  const facts = [
    { bacteria: "C. difficile", color: "1B5E20", facts: [
      "Only toxin-PRODUCING strains cause disease",
      "Toxin A (enterotoxin) + Toxin B (cytotoxin) – BOTH needed",
      "Dx: toxin in stool (NOT culture alone)",
      "Tx: stop antibiotic + metronidazole/vancomycin",
      "Spores resistant to alcohol (use bleach)",
      "Relapse 20–30% (spores survive antibiotics)",
    ]},
    { bacteria: "C. perfringens", color: "1A237E", facts: [
      "Alpha toxin = phospholipase C (lecithinase)",
      "5 types (A–E) based on major lethal toxins",
      "Gas gangrene = NO leukocytes on Gram stain",
      "Type C = necrotizing enteritis (pig bell)",
      "Food poisoning: 8–12h incubation, no fever",
      "HBOT: clostridia lack superoxide dismutase",
    ]},
    { bacteria: "C. tetani", color: "880E4F", facts: [
      "Drumstick / tennis racket spores",
      "Tetanospasmin on NON-conjugative PLASMID",
      "Blocks GABA & glycine → SPASTIC paralysis",
      "Clinical diagnosis (culture only 30% positive)",
      "Treatment = HTI + toxoid + penicillin + debridement",
      "Risus sardonicus + Opisthotonos = hallmarks",
    ]},
    { bacteria: "C. botulinum", color: "4E342E", facts: [
      "7 toxin types; A, B, E, F cause human disease",
      "Blocks ACETYLCHOLINE → FLACCID paralysis",
      "Toxin complexed with protective proteins",
      "Infant botulism = most common form in developed world",
      "Diagnosis: mouse bioassay",
      "No honey for infants <1 year old",
    ]},
    { bacteria: "C. diphtheriae", color: "006064", facts: [
      "Toxin encoded by BETA-PHAGE (not chromosome)",
      "Low iron → toxin ON (DtxR de-repressed)",
      "Inactivates EF-2 → stops protein synthesis",
      "Pseudomembrane firmly adhered (bleeds if removed)",
      "Gold standard Dx: ELEK TEST",
      "Antitoxin is MOST important treatment (give early!)",
    ]},
    { bacteria: "B. pertussis", color: "33691E", facts: [
      "Only B. pertussis produces pertussis toxin (PT)",
      "PT: ADP-ribosylates G protein → ↑cAMP",
      "Tracheal cytotoxin: inhibits cilia movement",
      "Catarrhal stage = most contagious (cold-like)",
      "Paroxysmal stage: up to 40–50 paroxysms/day",
      "Diagnosis: PCR (gold standard); culture difficult",
    ]},
  ];

  const colW = 4.15;
  const rowH = 3.35;
  facts.forEach((item, i) => {
    const col = i % 3;
    const row = Math.floor(i / 3);
    const x = 0.12 + col * (colW + 0.2);
    const y = 0.75 + row * (rowH + 0.1);
    s.addShape(pres.ShapeType.rect, { x, y, w: colW, h: rowH, fill: { color: "111122" }, line: { color: item.color, width: 2 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: colW, h: 0.48, fill: { color: item.color } });
    s.addText(item.bacteria, { x, y, w: colW, h: 0.48, fontSize: 11.5, bold: true, color: WHITE, align: "center", valign: "middle" });
    const factText = item.facts.map((f, fi) => `${fi + 1}. ${f}`).join("\n");
    s.addText(factText, { x: x + 0.05, y: y + 0.52, w: colW - 0.1, h: rowH - 0.58, fontSize: 9.5, color: "DDDDEE", valign: "top", align: "left", margin: 4, wrap: true });
  });
}

// ================================================================
// OUTPUT
// ================================================================
const outPath = "/home/daytona/workspace/microbiology-comparison/Microbiology_Bacteria_Comparison.pptx";
pres.writeFile({ fileName: outPath }).then(() => {
  console.log("SUCCESS: " + outPath);
}).catch(err => {
  console.error("ERROR:", err);
});
Running Command

cd /home/daytona/workspace/microbiology-comparison && node build.js

Running Command

ls -lh /home/daytona/workspace/microbiology-comparison/Microbiology_Bacteria_Com…

Your PowerPoint is ready! Download it here:

Microbiology Bacteria Comparison

Presentation · PPTX


What's Inside (10 Slides)

SlideContent
1Title Slide - Dark navy theme with all 6 bacteria listed
2General Characteristics - Gram stain, morphology, oxygen, spores, size for all 5 organisms
3Toxins & Virulence Factors - Toxin names, types, mechanisms, site of action, encoding, paralysis type
4Epidemiology - Reservoir, transmission, risk factors, high-risk groups, incubation, geography
5Clinical Diseases - Diseases caused, key symptoms, hallmark signs, paralysis, complications
6Laboratory Diagnosis - Specimen, microscopy, culture media, key test, special notes
7Treatment & Prevention - First-line treatment, antibiotics, antitoxin, vaccines, schedules
8Tetanus vs Botulism Deep Dive - Side-by-side comparison of the two neurotoxins (spastic vs flaccid)
9Pertussis 3 Stages + Diphtheria Toxin Mechanism - Stage table + step-by-step DT mechanism
10Quick Memory Table - 6 color-coded boxes, 6 must-know exam facts per bacterium

Bacteria covered across all tables:

  • C. difficile (green headers)
  • C. perfringens (green headers)
  • C. tetani (green headers)
  • C. botulinum (green headers)
  • C. diphtheriae (blue headers)
  • B. pertussis (purple headers)
All information is taken directly from your two PPTs - no outside sources added.
This is a shared conversation. Sign in to Orris to start your own chat.