// research/notebook · v0.42 · seed d9894b85

Decoding the
double helix
one base at a time.

A developer's lab notebook exploring chromosomal biology through generative code. Telomeres shorten, replication forks split, base pairs hum a four-letter song — we render the song.

organism H. sapiens
chromosome 17q · ~83 Mb
telomere length 8,247 bp
5'-ATGCATGCATGCATGCATGC-3' 3'-TACGTACGTACGTACGTACG-5'
02

Interactive Experiment // telomere_decay.ts

Adjust the parameters. Watch the chromosome cap shrink with each cell division.

telomere_decay.ts
// each division strips ~50 bp from the cap
function divide(chrom: Chromosome): Chromosome {
  const loss = 50;
  const rate = 1.00;
  const gens = 40;

  return {
    ...chrom,
    cap: Math.max(
      0,
      chrom.cap - (loss * rate)
    ),
    age: chrom.age + 1,
    senescent: chrom.cap < 2000
  };
}

// simulate 40 generations
let chrom = { cap: 10000, age: 0 };
for (let i = 0; i < gens; i++) {
  chrom = divide(chrom);
}

// → cap: 8000 bp · senescent: false
visualization.svg
cap length 8,000 bp
03

Research Log // notebook entries

Field notes from the boundary between code and biology.

2026.04.28 methods

Rendering chromatin as a force-directed graph

Treated each nucleosome as a node and Hi-C contact frequency as edge weight. The 3-D embedding self-organizes into the canonical A/B compartment pattern within ~600 iterations. Code splits cleanly into load.ts, solve.ts, and render.glsl.

2026.04.21 observation

Telomerase activity in stem-cell models

Replotted Blasco et al. data with the four-color base-pair palette below. The TERT-positive cohort shows a clear plateau where the mortal cohort decays linearly. The figure ships as an SVG sparkline embedded in the post.

2026.04.14 tooling

A tiny CIGAR-string parser in 38 lines

Wrote a zero-dependency parser for SAM/BAM CIGAR operations. Streams over the input, allocates nothing, handles the long N skips found in spliced RNA-seq alignments. Benchmarks at 1.2 GB/s on the M-series test box.

2026.04.07 aside

On reading The Eighth Day of Creation again

Judson's account of Crick walking into the Eagle still hits differently after a decade in software. There is a kind of debugging in molecular biology that programmers immediately recognize — print statements, but the printer is a gel.

04

Live Sequence Stream // stdout

A randomly-walking strand. A · T · G · C, scrolling at the speed of replication.

$ ./sequence --random-walk --colorize
Adenine · A Thymine · T Guanine · G Cytosine · C

// fork · clone · branch

Build with biology in the loop.

Open notebooks, open data, open source. The repository is mirrored at git://telomere.dev/lab.

return to top of helix