Best Template regarding genetics

Asking for Preferences
Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Finding Sources
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/genetics-pptx && ls /home/daytona/workspace/genetics-pptx

Writing File

~/genetics-pptx/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Genetics — A Medical Overview";
pres.author = "Medical Education";

// ─── THEME ────────────────────────────────────────────────────────────────────
const CLR = {
  dark:    "0D1F3C",   // deep navy  (dominant BG)
  mid:     "1A3A6B",   // mid navy   (header bars)
  accent:  "00C9A7",   // teal/green (accent, titles)
  white:   "FFFFFF",
  light:   "E8F4FD",   // very pale blue (body text on dark)
  gray:    "B0BEC5",   // muted label
  orange:  "FF8C42",   // highlight
  red:     "E53935",   // danger/mutation
};

const FONT = "Calibri";

// ─── HELPERS ──────────────────────────────────────────────────────────────────
function addHeader(slide, title, subtitle) {
  // Full-width header bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: 1.1,
    fill: { color: CLR.mid },
    line: { type: "none" },
  });
  slide.addText(title, {
    x: 0.3, y: 0, w: 9.4, h: 0.85,
    fontSize: 28, bold: true, color: CLR.accent,
    fontFace: FONT, valign: "middle", margin: 0,
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.3, y: 0.8, w: 9.4, h: 0.35,
      fontSize: 13, color: CLR.gray, fontFace: FONT, margin: 0,
    });
  }
}

function bgDark(slide) {
  slide.background = { color: CLR.dark };
}

function addFooter(slide, source) {
  slide.addText(source || "Thompson & Thompson Genetics and Genomics in Medicine, 9th ed.", {
    x: 0.2, y: 5.3, w: 9.6, h: 0.28,
    fontSize: 8, color: CLR.gray, fontFace: FONT, italic: true,
  });
}

function bullet(text, level, color) {
  return {
    text,
    options: {
      bullet: level === 0 ? { type: "bullet", color: CLR.accent } : { type: "bullet", indent: 18, color: CLR.gray },
      color: color || CLR.light,
      fontSize: level === 0 ? 15 : 13,
      breakLine: true,
      bold: level === 0,
      indentLevel: level,
    },
  };
}

// ─── SLIDE 1 — TITLE ──────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);

  // Large decorative DNA helix accent shape
  s.addShape(pres.ShapeType.rect, {
    x: 7.2, y: 0, w: 2.8, h: 5.625,
    fill: { color: CLR.mid },
    line: { type: "none" },
  });
  // Diagonal accent
  s.addShape(pres.ShapeType.rect, {
    x: 6.8, y: 0, w: 0.45, h: 5.625,
    fill: { color: CLR.accent },
    line: { type: "none" },
  });

  s.addText("GENETICS", {
    x: 0.5, y: 0.8, w: 6.1, h: 1.2,
    fontSize: 54, bold: true, color: CLR.accent, fontFace: FONT,
    charSpacing: 8,
  });
  s.addText("A Medical Overview", {
    x: 0.5, y: 2.0, w: 6.1, h: 0.6,
    fontSize: 22, color: CLR.white, fontFace: FONT, italic: true,
  });
  s.addText("For Medical Students", {
    x: 0.5, y: 2.65, w: 6.1, h: 0.4,
    fontSize: 14, color: CLR.gray, fontFace: FONT,
  });

  // Key pillars
  const pillars = ["Chromosomes", "Inheritance", "Mutations", "Genomics"];
  pillars.forEach((p, i) => {
    s.addShape(pres.ShapeType.rect, {
      x: 0.5 + i * 1.5, y: 3.5, w: 1.3, h: 0.5,
      fill: { color: CLR.accent },
      line: { type: "none" },
    });
    s.addText(p, {
      x: 0.5 + i * 1.5, y: 3.5, w: 1.3, h: 0.5,
      fontSize: 10, bold: true, color: CLR.dark, fontFace: FONT,
      align: "center", valign: "middle", margin: 0,
    });
  });

  s.addText("Thompson & Thompson Genetics and Genomics in Medicine, 9th Edition", {
    x: 0.5, y: 5.1, w: 6.1, h: 0.3,
    fontSize: 9, color: CLR.gray, fontFace: FONT, italic: true,
  });
}

// ─── SLIDE 2 — WHAT IS GENETICS? ──────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "What Is Genetics?", "The science of heredity and biological variation");

  s.addText([
    bullet("Medical genetics evolved from Mendel's laws (early 20th century) to a specialty central to all of medicine", 0),
    bullet("The Human Genome Project produced a virtually complete sequence of human DNA — ~3 billion base pairs", 0),
    bullet("Modern approach: whole-genome sequencing (genomics) rather than single-gene analysis (genetics)", 0),
    bullet("At least 7,160 phenotypes caused by variants in 4,629 genes are currently catalogued (OMIM, 2022)", 0),
  ], {
    x: 0.4, y: 1.3, w: 9.2, h: 3.2, fontFace: FONT,
    paraSpaceBefore: 8, paraSpaceAfter: 4,
  });

  // Accent box
  s.addShape(pres.ShapeType.rect, {
    x: 0.4, y: 4.55, w: 9.2, h: 0.65,
    fill: { color: CLR.accent },
    line: { type: "none" },
  });
  s.addText("Key insight: Virtually any disease results from the combined action of genes and environment.", {
    x: 0.5, y: 4.55, w: 9.0, h: 0.65,
    fontSize: 13, bold: true, color: CLR.dark, fontFace: FONT,
    valign: "middle", margin: 0,
  });

  addFooter(s);
}

// ─── SLIDE 3 — THE HUMAN GENOME ───────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "The Human Genome", "Structure, size, and organisation");

  // Stat cards
  const cards = [
    { val: "~3 Billion", lbl: "Base pairs" },
    { val: "46",         lbl: "Chromosomes" },
    { val: "~20,000",    lbl: "Protein-coding genes" },
    { val: "~1.5%",      lbl: "Coding DNA" },
  ];
  cards.forEach((c, i) => {
    const x = 0.3 + i * 2.4;
    s.addShape(pres.ShapeType.rect, {
      x, y: 1.3, w: 2.15, h: 1.3,
      fill: { color: CLR.mid },
      line: { color: CLR.accent, pt: 1.5 },
    });
    s.addText(c.val, {
      x, y: 1.35, w: 2.15, h: 0.7,
      fontSize: 22, bold: true, color: CLR.accent, fontFace: FONT,
      align: "center",
    });
    s.addText(c.lbl, {
      x, y: 2.05, w: 2.15, h: 0.5,
      fontSize: 12, color: CLR.gray, fontFace: FONT, align: "center",
    });
  });

  s.addText([
    bullet("DNA is packaged around histone octamers → nucleosomes (\"beads on a string\")", 0),
    bullet("Nucleosomes coil into solenoid fibres → looped domains attached to protein scaffold", 0),
    bullet("Mitochondrial genome (~16.6 kb, 37 genes) is maternally inherited separately", 0),
    bullet("Only ~1.5% of the genome codes for proteins; the rest includes regulatory sequences & non-coding RNA", 0),
  ], {
    x: 0.4, y: 2.8, w: 9.2, h: 2.5, fontFace: FONT,
    paraSpaceBefore: 6,
  });

  addFooter(s);
}

// ─── SLIDE 4 — CHROMOSOMES ────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Chromosomes", "Structure and the karyotype");

  // Left: textual content
  s.addText([
    bullet("Humans: 46 chromosomes (23 pairs) — 22 autosomes + 1 sex chromosome pair (XX or XY)", 0),
    bullet("Each chromosome has: centromere (p/q arms), telomeres at ends, and euchromatin/heterochromatin regions", 0),
    bullet("Banding techniques (G-, Q-, R-banding) allow cytogenetic identification of each chromosome", 0),
    bullet("Histone modifications regulate chromatin accessibility → gene expression", 0),
    bullet("DNA loops (~100 kb each) are attached to a protein scaffold — likely functional units of the genome", 0),
  ], {
    x: 0.4, y: 1.25, w: 5.8, h: 4.0, fontFace: FONT,
    paraSpaceBefore: 7,
  });

  // Right info box
  s.addShape(pres.ShapeType.rect, {
    x: 6.4, y: 1.25, w: 3.25, h: 4.0,
    fill: { color: CLR.mid },
    line: { color: CLR.accent, pt: 1 },
  });
  s.addText("Karyotype", {
    x: 6.4, y: 1.3, w: 3.25, h: 0.45,
    fontSize: 14, bold: true, color: CLR.accent, fontFace: FONT, align: "center",
  });
  s.addText([
    { text: "Normal male:  ", options: { bold: true, color: CLR.accent, fontSize: 13 } },
    { text: "46,XY", options: { color: CLR.white, fontSize: 13 } },
    { text: "\nNormal female: ", options: { bold: true, color: CLR.accent, fontSize: 13, breakLine: true } },
    { text: "46,XX", options: { color: CLR.white, fontSize: 13 } },
    { text: "\n\nDown syndrome:", options: { bold: true, color: CLR.orange, fontSize: 13, breakLine: true } },
    { text: "\n47,XY,+21", options: { color: CLR.white, fontSize: 12, breakLine: true } },
    { text: "\n\nTurner syndrome:", options: { bold: true, color: CLR.orange, fontSize: 13, breakLine: true } },
    { text: "\n45,X", options: { color: CLR.white, fontSize: 12, breakLine: true } },
    { text: "\n\nKlinefelter:", options: { bold: true, color: CLR.orange, fontSize: 13, breakLine: true } },
    { text: "\n47,XXY", options: { color: CLR.white, fontSize: 12, breakLine: true } },
  ], {
    x: 6.5, y: 1.85, w: 3.0, h: 3.2, fontFace: FONT,
  });

  addFooter(s);
}

// ─── SLIDE 5 — CATEGORIES OF GENETIC DISEASE ─────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Categories of Genetic Disease", "Three main groups based on mechanism");

  const cats = [
    {
      title: "Chromosomal Disorders",
      color: CLR.orange,
      pts: [
        "Change in gene dosage (whole chromosomes or segments)",
        "Trisomies, monosomies, copy number variants (CNVs)",
        "Down syndrome (Trisomy 21)",
        "Prevalence: ~3% of liveborn infants",
      ],
    },
    {
      title: "Monogenic (Mendelian)",
      color: CLR.accent,
      pts: [
        "Single-gene pathogenic variants",
        "Autosomal dominant, recessive, X-linked",
        "CF, Huntington, Marfan syndrome",
        "~1/300 liveborn; 1/50 lifetime prevalence",
      ],
    },
    {
      title: "Multifactorial / Complex",
      color: "#7E57C2",
      pts: [
        "Combined impact of many gene variants",
        "Triggered or modified by environment",
        "Diabetes, heart disease, schizophrenia",
        ">60% of total population burden",
      ],
    },
  ];

  cats.forEach((cat, i) => {
    const x = 0.25 + i * 3.2;
    s.addShape(pres.ShapeType.rect, {
      x, y: 1.2, w: 3.0, h: 0.45,
      fill: { color: cat.color },
      line: { type: "none" },
    });
    s.addText(cat.title, {
      x, y: 1.2, w: 3.0, h: 0.45,
      fontSize: 12, bold: true, color: CLR.dark, fontFace: FONT,
      align: "center", valign: "middle", margin: 0,
    });
    s.addShape(pres.ShapeType.rect, {
      x, y: 1.65, w: 3.0, h: 3.5,
      fill: { color: CLR.mid },
      line: { color: cat.color, pt: 1 },
    });
    const items = cat.pts.map((p, pi) => ({
      text: p,
      options: {
        bullet: { type: "bullet", color: cat.color },
        color: pi === 0 ? CLR.white : CLR.light,
        fontSize: pi === 0 ? 13 : 12,
        bold: pi === 0,
        breakLine: true,
        paraSpaceBefore: 4,
      },
    }));
    s.addText(items, { x: x + 0.1, y: 1.7, w: 2.8, h: 3.3, fontFace: FONT });
  });

  addFooter(s);
}

// ─── SLIDE 6 — PATTERNS OF INHERITANCE ───────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Patterns of Mendelian Inheritance", "Classic pedigree patterns in monogenic disease");

  const patterns = [
    {
      label: "Autosomal\nDominant",
      color: CLR.orange,
      pts: ["One pathogenic allele sufficient", "Vertical transmission", "50% offspring risk", "E.g. Huntington, Marfan, BRCA1/2"],
    },
    {
      label: "Autosomal\nRecessive",
      color: CLR.accent,
      pts: ["Both alleles must be abnormal", "Horizontal pedigree pattern", "25% risk if both parents carriers", "E.g. CF, PKU, Sickle cell"],
    },
    {
      label: "X-Linked\nRecessive",
      color: "#EF5350",
      pts: ["Gene on X chromosome", "Males primarily affected", "Females are carriers", "E.g. Haemophilia A, DMD"],
    },
    {
      label: "X-Linked\nDominant",
      color: "#AB47BC",
      pts: ["One variant allele = disease", "Affects both sexes", "Often lethal in hemizygous males", "E.g. Fragile X, Rett syndrome"],
    },
  ];

  patterns.forEach((p, i) => {
    const x = 0.2 + i * 2.4;
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.2, h: 4.1, fill: { color: CLR.mid }, line: { color: p.color, pt: 1.5 } });
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.2, h: 0.55, fill: { color: p.color }, line: { type: "none" } });
    s.addText(p.label, { x, y: 1.25, w: 2.2, h: 0.55, fontSize: 11, bold: true, color: CLR.dark, fontFace: FONT, align: "center", valign: "middle", margin: 0 });
    const items = p.pts.map((t) => ({
      text: t,
      options: { bullet: { type: "bullet", color: p.color }, color: CLR.light, fontSize: 11.5, breakLine: true, paraSpaceBefore: 5 },
    }));
    s.addText(items, { x: x + 0.1, y: 1.85, w: 2.0, h: 3.4, fontFace: FONT });
  });

  addFooter(s);
}

// ─── SLIDE 7 — MITOCHONDRIAL INHERITANCE ────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Mitochondrial Genetics", "The 'other' genome — maternal inheritance");

  s.addText([
    bullet("Mitochondrial DNA (mtDNA): circular, ~16,569 bp, 37 genes (13 protein-coding, 22 tRNA, 2 rRNA)", 0),
    bullet("Exclusively maternally inherited — all children of an affected mother are at risk", 0),
    bullet("Heteroplasmy: cells may contain a mixture of normal and mutant mtDNA — explains variable expression", 0),
    bullet("High mutation rate (no introns, limited repair) — susceptibility in energy-demanding tissues", 0),
    bullet("Clinical features: myopathy, encephalopathy, lactic acidosis, stroke-like episodes (MELAS)", 0),
    bullet("Classic syndromes: MELAS, MERRF, Leber hereditary optic neuropathy (LHON), Kearns–Sayre", 0),
  ], {
    x: 0.4, y: 1.3, w: 6.0, h: 4.1, fontFace: FONT, paraSpaceBefore: 7,
  });

  // Right sidebar
  s.addShape(pres.ShapeType.rect, { x: 6.7, y: 1.3, w: 3.0, h: 4.1, fill: { color: CLR.mid }, line: { color: CLR.orange, pt: 1.5 } });
  s.addText("Key Features", { x: 6.7, y: 1.35, w: 3.0, h: 0.4, fontSize: 13, bold: true, color: CLR.orange, fontFace: FONT, align: "center" });
  s.addText([
    { text: "✔ ", options: { color: CLR.accent, bold: true, fontSize: 13 } },
    { text: "Maternal-only transmission\n", options: { color: CLR.white, fontSize: 12 } },
    { text: "✔ ", options: { color: CLR.accent, bold: true, fontSize: 13 } },
    { text: "No Mendelian ratio\n", options: { color: CLR.white, fontSize: 12 } },
    { text: "✔ ", options: { color: CLR.accent, bold: true, fontSize: 13 } },
    { text: "Threshold effect\n", options: { color: CLR.white, fontSize: 12 } },
    { text: "✔ ", options: { color: CLR.accent, bold: true, fontSize: 13 } },
    { text: "Replicative segregation\n", options: { color: CLR.white, fontSize: 12 } },
    { text: "✔ ", options: { color: CLR.accent, bold: true, fontSize: 13 } },
    { text: "Affects tissues with high energy demand", options: { color: CLR.white, fontSize: 12 } },
  ], { x: 6.8, y: 1.85, w: 2.8, h: 3.3, fontFace: FONT, paraSpaceBefore: 8 });

  addFooter(s);
}

// ─── SLIDE 8 — MUTATIONS ──────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Types of Mutations", "Pathogenic variants — from base changes to chromosomal rearrangements");

  const types = [
    { type: "Point Mutations", color: CLR.accent, items: ["Missense — amino acid change", "Nonsense — premature stop codon", "Silent — no amino acid change"] },
    { type: "Frameshift", color: CLR.orange, items: ["Insertion or deletion of non-3x bp", "Alters reading frame downstream", "Usually severe truncating effect"] },
    { type: "Splice Site", color: "#EF5350", items: ["Disrupts donor/acceptor splice sites", "Exon skipping or intron retention", "E.g. some CF CFTR variants"] },
    { type: "Copy Number\nVariants (CNV)", color: "#AB47BC", items: ["Deletions & duplications (kbp–Mbp)", "22q11.2 deletion syndrome", "Detected by array CGH / WGS"] },
  ];

  types.forEach((t, i) => {
    const x = 0.2 + i * 2.4;
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.2, h: 0.5, fill: { color: t.color }, line: { type: "none" } });
    s.addText(t.type, { x, y: 1.25, w: 2.2, h: 0.5, fontSize: 11, bold: true, color: CLR.dark, fontFace: FONT, align: "center", valign: "middle", margin: 0 });
    s.addShape(pres.ShapeType.rect, { x, y: 1.75, w: 2.2, h: 2.4, fill: { color: CLR.mid }, line: { color: t.color, pt: 1 } });
    const items = t.items.map((it) => ({
      text: it,
      options: { bullet: { type: "bullet", color: t.color }, color: CLR.light, fontSize: 12, breakLine: true, paraSpaceBefore: 5 },
    }));
    s.addText(items, { x: x + 0.1, y: 1.8, w: 2.0, h: 2.25, fontFace: FONT });
  });

  // Bottom summary
  s.addShape(pres.ShapeType.rect, { x: 0.2, y: 4.25, w: 9.6, h: 1.0, fill: { color: CLR.mid }, line: { type: "none" } });
  s.addText([
    bullet("Gain-of-function vs. loss-of-function: determines inheritance pattern and therapeutic approach", 0),
    bullet("Somatic mutations (post-conception) underlie most cancers; germline mutations are heritable", 0),
  ], { x: 0.35, y: 4.3, w: 9.3, h: 0.9, fontFace: FONT, paraSpaceBefore: 2 });

  addFooter(s);
}

// ─── SLIDE 9 — EPIGENETICS ─────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Epigenetics", "Gene regulation without DNA sequence changes");

  // Three-column layout
  const cols = [
    {
      title: "DNA Methylation",
      icon: "CH₃",
      color: CLR.accent,
      pts: ["CpG islands at promoters", "Methylation → gene silencing", "Cancer epigenetics", "Imprinting (Prader-Willi, Angelman)"],
    },
    {
      title: "Histone Modification",
      icon: "H3/H4",
      color: CLR.orange,
      pts: ["Acetylation → gene activation", "Methylation → context dependent", "Phosphorylation, ubiquitylation", "Chromatin remodelling complexes"],
    },
    {
      title: "Non-coding RNA",
      icon: "ncRNA",
      color: "#AB47BC",
      pts: ["miRNA — post-transcriptional silencing", "lncRNA — chromatin regulation", "X-inactivation (XIST lncRNA)", "Tissue-specific gene control"],
    },
  ];

  cols.forEach((c, i) => {
    const x = 0.3 + i * 3.15;
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.9, h: 4.1, fill: { color: CLR.mid }, line: { color: c.color, pt: 1.5 } });
    s.addShape(pres.ShapeType.rect, { x, y: 1.25, w: 2.9, h: 0.5, fill: { color: c.color }, line: { type: "none" } });
    s.addText(c.title, { x, y: 1.25, w: 2.9, h: 0.5, fontSize: 12, bold: true, color: CLR.dark, fontFace: FONT, align: "center", valign: "middle", margin: 0 });
    s.addText(c.icon, { x, y: 1.8, w: 2.9, h: 0.5, fontSize: 20, bold: true, color: c.color, fontFace: FONT, align: "center" });
    const items = c.pts.map((p) => ({
      text: p,
      options: { bullet: { type: "bullet", color: c.color }, color: CLR.light, fontSize: 12, breakLine: true, paraSpaceBefore: 5 },
    }));
    s.addText(items, { x: x + 0.12, y: 2.35, w: 2.65, h: 2.9, fontFace: FONT });
  });

  addFooter(s);
}

// ─── SLIDE 10 — GENOMIC TECHNOLOGIES ─────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Genomic Technologies", "From karyotyping to whole-genome sequencing");

  const techs = [
    { label: "Karyotype / G-banding", era: "1970s–", use: "Gross chromosomal abnormalities, aneuploidies" },
    { label: "FISH", era: "1990s–", use: "Targeted deletion/duplication; interphase cells" },
    { label: "Microarray (aCGH / SNP)", era: "2000s–", use: "Genome-wide CNVs; autism, ID, miscarriage" },
    { label: "Gene Panel Sequencing", era: "2010s–", use: "Targeted NGS for defined disease groups (e.g. cardiomyopathy panel)" },
    { label: "Whole Exome Sequencing", era: "2012–", use: "All ~20,000 protein-coding exons; rare disease diagnosis" },
    { label: "Whole Genome Sequencing", era: "2020s–", use: "First-tier test for heritable disease; structural variants, non-coding regions" },
  ];

  techs.forEach((t, i) => {
    const y = 1.3 + i * 0.68;
    const barW = 0.8 + (i / 5) * 3.5;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: barW, h: 0.45, fill: { color: i < 2 ? CLR.gray : i < 4 ? CLR.orange : CLR.accent }, line: { type: "none" } });
    s.addText(t.label, { x: 0.35, y, w: barW - 0.1, h: 0.45, fontSize: 11, bold: true, color: CLR.dark, fontFace: FONT, valign: "middle", margin: 0 });
    s.addText(`[${t.era}] ${t.use}`, { x: 0.35 + barW, y, w: 9.3 - barW, h: 0.45, fontSize: 11, color: CLR.light, fontFace: FONT, valign: "middle" });
  });

  addFooter(s);
}

// ─── SLIDE 11 — CLINICAL APPLICATIONS ────────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);
  addHeader(s, "Clinical Applications of Genetics", "Where genetics meets patient care");

  s.addText([
    bullet("Genetic counselling: risk estimation, carrier testing, family communication, psychosocial support", 0),
    bullet("Prenatal diagnosis: CVS, amniocentesis, cell-free fetal DNA — chromosomal & monogenic screening", 0),
    bullet("Newborn screening: tandem mass spectrometry identifies treatable IEMs before symptom onset", 0),
    bullet("Pharmacogenomics: CYP2D6, TPMT, HLA-B*5701 — guiding drug selection and dosing", 0),
    bullet("Hereditary cancer: BRCA1/2, Lynch syndrome — prophylactic interventions, surveillance protocols", 0),
    bullet("Rare disease diagnosis: WGS has cut the 'diagnostic odyssey' from years to weeks for many families", 0),
    bullet("Somatic genomics in oncology: tumour mutation burden, driver mutations, targeted therapy selection", 0),
  ], {
    x: 0.4, y: 1.3, w: 9.2, h: 4.0, fontFace: FONT, paraSpaceBefore: 6,
  });

  addFooter(s);
}

// ─── SLIDE 12 — SUMMARY & KEY TAKEAWAYS ──────────────────────────────────────
{
  const s = pres.addSlide();
  bgDark(s);

  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 1.1, fill: { color: CLR.mid }, line: { type: "none" } });
  s.addText("Summary & Key Takeaways", {
    x: 0.3, y: 0, w: 9.4, h: 1.0, fontSize: 26, bold: true, color: CLR.accent, fontFace: FONT, valign: "middle", margin: 0,
  });

  const takes = [
    { n: "01", text: "Genetic disease spans chromosomal, monogenic, and multifactorial categories — each with distinct mechanisms and inheritance patterns." },
    { n: "02", text: "The human genome contains ~20,000 genes within ~3 billion base pairs; non-coding DNA has critical regulatory roles." },
    { n: "03", text: "Classic Mendelian inheritance (AD, AR, XLR, XLD) and mitochondrial inheritance govern different risk calculations in pedigrees." },
    { n: "04", text: "Epigenetic mechanisms — methylation, histone modification, ncRNA — modulate gene expression without altering DNA sequence." },
    { n: "05", text: "Whole-genome sequencing is rapidly becoming the first-tier clinical diagnostic test for heritable disease." },
  ];

  takes.forEach((t, i) => {
    const y = 1.2 + i * 0.85;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 0.55, h: 0.6, fill: { color: CLR.accent }, line: { type: "none" } });
    s.addText(t.n, { x: 0.3, y, w: 0.55, h: 0.6, fontSize: 14, bold: true, color: CLR.dark, fontFace: FONT, align: "center", valign: "middle", margin: 0 });
    s.addText(t.text, { x: 1.0, y: y + 0.05, w: 8.65, h: 0.65, fontSize: 13, color: CLR.light, fontFace: FONT, valign: "middle" });
  });

  s.addText("Source: Thompson & Thompson Genetics and Genomics in Medicine, 9th Edition (ISBN 9780323547628)", {
    x: 0.3, y: 5.28, w: 9.4, h: 0.25, fontSize: 8, color: CLR.gray, fontFace: FONT, italic: true,
  });
}

// ─── WRITE FILE ───────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/genetics-pptx/Genetics_Medical_Overview.pptx" })
  .then(() => console.log("✅  Saved: Genetics_Medical_Overview.pptx"))
  .catch(err => { console.error(err); process.exit(1); });
Running Command

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

Running Command

ls -lh /home/daytona/workspace/genetics-pptx/Genetics_Medical_Overview.pptx

Your presentation is ready. Download it here:

Genetics Medical Overview

Presentation · PPTX


What's inside (12 slides)

#SlideHighlights
1TitleBold DNA-themed cover with 4 pillar badges
2What is Genetics?Evolution from Mendel → Human Genome Project → genomics-first era
3The Human Genome4 stat cards (3 billion bp, 46 chromosomes, ~20,000 genes, 1.5% coding) + chromatin structure
4ChromosomesKaryotype notation panel with key syndromes (Down, Turner, Klinefelter)
5Categories of Genetic Disease3-column layout — Chromosomal, Monogenic, Multifactorial
6Mendelian InheritanceAD / AR / XLR / XLD in 4 comparison columns with clinical examples
7Mitochondrial GeneticsMaternal inheritance, heteroplasmy, classic syndromes (MELAS, LHON)
8Types of MutationsPoint, frameshift, splice-site, CNV — gain/loss of function distinction
9EpigeneticsDNA methylation, histone modification, ncRNA in a 3-column visual
10Genomic TechnologiesTimeline bar chart from karyotyping → WGS
11Clinical ApplicationsCounselling, prenatal diagnosis, newborn screening, pharmacogenomics, oncology
12Key Takeaways5 numbered summary points
Design: Deep navy background with teal accent throughout, high-contrast colour-coded columns per topic, sourced from Thompson & Thompson Genetics and Genomics in Medicine, 9th Edition.

I need a good template for genetics

I just built one for you in this conversation! You can download it right here:

Genetics Medical Overview

Presentation · PPTX

It's a 12-slide PowerPoint for medical students covering:
  1. Title slide
  2. What is Genetics?
  3. The Human Genome
  4. Chromosomes & Karyotype
  5. Categories of Genetic Disease
  6. Mendelian Inheritance Patterns
  7. Mitochondrial Genetics
  8. Types of Mutations
  9. Epigenetics
  10. Genomic Technologies
  11. Clinical Applications
  12. Key Takeaways
Design: Deep navy + teal theme, colour-coded columns, stat cards, and timeline bar chart — sourced from Thompson & Thompson Genetics and Genomics in Medicine, 9th Edition.
If you'd like changes (different colour scheme, additional slides, different audience level, or a different format like Word/PDF), just let me know!
This is a shared conversation. Sign in to Orris to start your own chat.