Latest / CyberSecurity Summary / Algorithms for Next-Generation Sequencing (Chapman & Hall/CRC Computational Biology Series)
Transcript
- 0:00Speaker 1: Right now, sitting inside almost every single cell of your
- 0:04Speaker 1: body is a three billion letter instruction.
- 0:07Speaker 2: Manual, which is just I mean, it's a staggering scale
- 0:11Speaker 2: to even try to picture.
- 0:12Speaker 1: Yeah, think about that scale for a second. If a
- 0:15Speaker 1: doctor wants to find out why you're sick or you know,
- 0:17Speaker 1: why a medication isn't working, they essentially have to find
- 0:21Speaker 1: a single microscopic typo in a book that is three
- 0:24Speaker 1: million pages long.
- 0:26Speaker 2: Right, and they need to find it fast. I mean,
- 0:28Speaker 2: thirty years ago, doing that was a biological impossibility. It
- 0:31Speaker 2: took over a decade and literally billions of dollars just
- 0:35Speaker 2: to do it once.
- 0:36Speaker 1: Wow.
- 0:36Speaker 2: But today we expect those answers in a matter of days.
- 0:40Speaker 2: It's moved from being this purely biological challenge to what
- 0:43Speaker 2: is essentially a computational miracle.
- 0:46Speaker 1: Okay, let's unpack this because if you've ever wondered how
- 0:48Speaker 1: a simple cheek swab or like a vial of blood
- 0:51Speaker 1: drawn out a clinic actually turns into a highly personalized
- 0:54Speaker 1: medical profile, well, this is exactly the breakdown you need.
- 0:57Speaker 2: Yeah. It's a fascinating journey.
- 0:58Speaker 1: It really is. We're not just talking about the biology today.
- 1:02Speaker 1: We are taking a deep dive into the journey from
- 1:05Speaker 1: the wet, messy chemistry of a human cell to the
- 1:09Speaker 1: digital data on a computer screen. And more importantly, we're
- 1:13Speaker 1: looking at the mind bending mathematical tricks that allow a standard,
- 1:17Speaker 1: cheap laptop to search your entire genetic code without instantly
- 1:22Speaker 1: catching fire.
- 1:22Speaker 2: It really is a collision of two completely different worlds.
- 1:25Speaker 2: I mean, you have to physically extract the data from
- 1:28Speaker 2: the molecule first, Yeah, right, and only then can the
- 1:31Speaker 2: algorithms do their heavy lifting.
- 1:32Speaker 1: Right, So let's start with that physical extraction. We've got
- 1:35Speaker 1: this invisible DNA in a tube. How did we go
- 1:37Speaker 1: from painstakingly reading one genetic sentence at a time to
- 1:41Speaker 1: basically scanning the entire three million page library in an afternoon.
- 1:45Speaker 1: I mean it didn't happen overnight.
- 1:46Speaker 2: No, not at all. It's a story of well, constant,
- 1:49Speaker 2: aggressive problem solving. It started back in nineteen seventy seven
- 1:52Speaker 2: with what we now call first generation sequencing or saying
- 1:54Speaker 2: or sequencing. The foundational idea was brilliant. Honestly, they used
- 1:58Speaker 2: a natural enzyme to copy a strand of DNA, but
- 2:01Speaker 2: they spike the chemical soup with these modified nucleotides. You know,
- 2:05Speaker 2: the ACG and T building blocks.
- 2:07Speaker 1: Right. The sources mentioned these modified blocks have fluorescent glowing
- 2:11Speaker 1: tags on them. They act like molecular stop signs.
- 2:14Speaker 2: Yeah, that's exactly it. That's the key. Imagine you're copying
- 2:17Speaker 2: a sentence, but every time you write the letter A,
- 2:20Speaker 2: your pen freezes.
- 2:21Speaker 1: Oh weird, okay, right, so.
- 2:22Speaker 2: You'd end up with a fragment ending in A. By
- 2:26Speaker 2: running this process over and over, you end up with
- 2:28Speaker 2: a massive mixture of DNA fragments of all different lengths.
- 2:32Speaker 2: You sort them by size using electrical charge, a technique
- 2:36Speaker 2: called electrophoresis, got it, and then a camera reads the
- 2:39Speaker 2: glowing colors at the end of each fragment one by
- 2:42Speaker 2: one to spell.
- 2:42Speaker 1: Out the sequence, which sounds incredibly accurate, but I mean
- 2:46Speaker 1: practically agonizing.
- 2:47Speaker 2: Oh it's painfully slow. Yeah.
- 2:49Speaker 1: The sources say this method maxes out at reading fragments
- 2:52Speaker 1: about eight hundred letters long. If I'm trying to read
- 2:55Speaker 1: a three billion letter genome, that makes me think of
- 2:58Speaker 1: like a medieval monk painstakingly copying an encyclopedia by hand,
- 3:04Speaker 1: letter by single letter.
- 3:05Speaker 2: It's a great analogy.
- 3:06Speaker 1: It works, but you aren't mass producing anything that way.
- 3:09Speaker 2: No, it was a massive bottleneck, and that specific speed
- 3:13Speaker 2: limit is what triggered a complete rethinking of the process.
- 3:16Speaker 2: Companies like Alumina came along and essentially disrupted the biological
- 3:20Speaker 2: space like a Silicon Valley tech company right the introduced
- 3:23Speaker 2: second generation sequencing.
- 3:25Speaker 1: The massively parallel approach. So if Sanger was the medieval monk,
- 3:29Speaker 1: Alumina is like taking that three million page book, tossing
- 3:32Speaker 1: it into a wood schipper and turning it into millions
- 3:35Speaker 1: of tiny pieces of confetti exactly, and then you read
- 3:38Speaker 1: every single shred of confetti at the exact same moment
- 3:40Speaker 1: and basically force a computer to paste the book back together.
- 3:44Speaker 2: That is essentially what they do. Yeah, but to read
- 3:47Speaker 2: millions of tiny shreds at once, the signal has to
- 3:50Speaker 2: be loud enough for a camera sensor to actually pick
- 3:52Speaker 2: it up. A single DNA molecule is just too faint.
- 3:56Speaker 2: So these techniques like a mulsion PCR bridge PCR.
- 3:59Speaker 1: Hold on I see mentioned everywhere in the Deep dive sources,
- 4:02Speaker 1: But what does that actually mean in this context? Bridge
- 4:05Speaker 1: PCR think.
- 4:06Speaker 2: Of it as microscopic photocopying. They wash the DNA fragments
- 4:10Speaker 2: over a tiny glass slide. The fragments attached to the slide,
- 4:13Speaker 2: and enzymes duplicate them right there in.
- 4:15Speaker 1: Place, Okay, right there on the glass.
- 4:17Speaker 2: Yeah, they bend over, forming a bridge and copy themselves
- 4:20Speaker 2: again and again. Suddenly, instead of one faint DNA molecule,
- 4:25Speaker 2: you have a dense little cluster of thousands of identical
- 4:28Speaker 2: clones standing up like a tiny forest on the glass.
- 4:30Speaker 1: Oh wow.
- 4:31Speaker 2: So when you attach a glowing chemical tag to them,
- 4:33Speaker 2: that entire cluster flashes brightly enough for a digital camera
- 4:36Speaker 2: to photograph.
- 4:37Speaker 1: That is wild. So you take a picture, wash the
- 4:40Speaker 1: chemicals away, add the next letter, and take another picture.
- 4:43Speaker 1: Just millions of clusters flashing in sequence. But you know,
- 4:47Speaker 1: reading the sources, there's another second gen variation that completely
- 4:51Speaker 1: blew my mind. Ion Torrent, Oh yeah, they don't use lasers,
- 4:54Speaker 1: they don't use camera because.
- 4:55Speaker 2: They aren't looking at light at all. They are literally
- 4:57Speaker 2: measuring the acidity of the chemical soup.
- 5:00Speaker 1: Hold on, how do you read a genetic code by
- 5:02Speaker 1: checking the pH level?
- 5:03Speaker 2: It comes down to basic chemistry. Really, Every single time
- 5:06Speaker 2: a new nucleotide successfully attaches to a growing DNA strand,
- 5:10Speaker 2: the chemical bond naturally releases a single positively charged hydrogen
- 5:15Speaker 2: ion Okay ion torrent machines use a summit conductor chip
- 5:19Speaker 2: layered with millions of microscopic wells. It's basically a massive
- 5:23Speaker 2: grid of tiny pH meters. It detects that microscopic drop
- 5:27Speaker 2: in pH when the hydrogen ion pops off. So it's
- 5:30Speaker 2: translating a biological event directly into a digital electronic signal.
- 5:34Speaker 1: You're just listening for the electrical pop of a hydrogen atom. Unbelievable.
- 5:37Speaker 2: It is pretty incredible.
- 5:38Speaker 1: But even with that speed, second generation sequencing still relies
- 5:42Speaker 1: on tearing the DNA into tiny confetti, right, which brings
- 5:47Speaker 1: us to the third generation technologies like pack bio and
- 5:51Speaker 1: Oxford nanopore. This reads like pure science fiction. They don't
- 5:55Speaker 1: chop it up, they don't pause to take pictures, they
- 5:57Speaker 1: just read it continuously.
- 5:58Speaker 2: Yeah, it's called single molecule time sequencing with nanopore. Imagine
- 6:03Speaker 2: a microscopic hole, a literal poor punctured through a synthetic membrane.
- 6:08Speaker 2: They apply a steady electrical current across that membrane. Then
- 6:12Speaker 2: they physically pull a single long strand of DNA.
- 6:15Speaker 1: Through that hole, like threading a needle.
- 6:17Speaker 2: Exactly like that, And because the molecular shapes of an
- 6:20Speaker 2: ASCG and a T are slightly different. They each block
- 6:24Speaker 2: the hole in a uniquely different way as they pass through.
- 6:26Speaker 2: Oh I see, yeah, that physically alters the electrical current.
- 6:29Speaker 2: The machine reads this specific changes in the voltage to
- 6:32Speaker 2: spell out the letters as the strand zips through.
- 6:35Speaker 1: Which means you can read massive uninterrupted stretches. The sources
- 6:38Speaker 1: say up to twenty thousand letters in a single read.
- 6:41Speaker 1: It's like feeding the entire intact book through a high
- 6:44Speaker 1: speed ticker tape scanner.
- 6:45Speaker 2: Yep, it's a huge leap and read length.
- 6:47Speaker 1: But I've got to pause you here. I'm looking at
- 6:49Speaker 1: the data from the sources. If this third generation tech
- 6:53Speaker 1: is so revolutionary and reads so fast, why are we
- 6:57Speaker 1: still using the second generation confetti method at all?
- 7:00Speaker 2: Right? Well, what's fascinating here is a very stubborn, hidden
- 7:04Speaker 2: trade off between length and accuracy. When you are violently
- 7:07Speaker 2: pulling a molecule through a microscopic hole at high speed,
- 7:10Speaker 2: the sensor occasionally blinks. It might miss a letter entirely,
- 7:14Speaker 2: or accidentally read the same letter twice. These are called
- 7:17Speaker 2: insertion and deletion errors. Third generation tools historically sit at
- 7:21Speaker 2: an error rate of about seventeen point eight to seventeen
- 7:25Speaker 2: point nine percent, almost.
- 7:26Speaker 1: An eighteen percent error rate in a medical context. I mean,
- 7:30Speaker 1: if I'm looking for a single cancer causing mutation, an
- 7:32Speaker 1: eighteen percent failure rate sounds absolutely terrifying.
- 7:35Speaker 2: It does sound alarming, for sure, but scientists realize something
- 7:38Speaker 2: brilliant about those errors. They're completely random. The nanophore doesn't
- 7:43Speaker 2: systematically struggle with the letter C, for example. It's just
- 7:46Speaker 2: random static.
- 7:47Speaker 1: Okay, So how do you fix random static?
- 7:49Speaker 2: The workaround is actually quite elegant. You just sequence the
- 7:52Speaker 2: exact same strand of DNA twenty or thirty times.
- 7:55Speaker 1: Oh, I see, because the odds of the machine making
- 7:57Speaker 1: the exact same random mistake on the exact same letter
- 8:01Speaker 1: twenty times in a row is basically zero.
- 8:03Speaker 2: Precisely, you layer the thirty reads on top of each other,
- 8:06Speaker 2: the random glitches mathematically cancel out, and the true underlying
- 8:11Speaker 2: sequence emerges clearly.
- 8:12Speaker 1: Okay, So that leads us directly to the next massive problem.
- 8:16Speaker 1: If third generation sequencing has a nearly eighteen percent raw
- 8:19Speaker 1: error rate, just dumping all that text into a computer
- 8:22Speaker 1: file is completely useless. The computer needs to know which
- 8:25Speaker 1: letters are biological facts and which letters are just machine hallucinations.
- 8:29Speaker 1: So how do we tag the trustworthy data.
- 8:32Speaker 2: That's where specialized file formats come in. The most basic
- 8:35Speaker 2: format used to be called FASTA. It was just a
- 8:37Speaker 2: plain text file, literally just a string of acsgs and t's.
- 8:41Speaker 2: But as you point it out, FASTA isn't enough anymore.
- 8:44Speaker 2: We needed a way to track the confidence of every
- 8:46Speaker 2: single letter.
- 8:47Speaker 1: Enter the fast Q format, where the Q literally stands
- 8:51Speaker 1: for quality exactly.
- 8:52Speaker 2: FASTQ attaches a crucial piece of metadata called the phred
- 8:57Speaker 2: quality score or Q score. The sequencing machine actually grades
- 9:01Speaker 2: its own homework. For every single letter it outputs, it
- 9:04Speaker 2: calculates a mathematical probability that it made a mistake.
- 9:07Speaker 1: I found the engineering behind this fascinating. A Q score
- 9:09Speaker 1: is a number, right, say a score of thirty means
- 9:12Speaker 1: a ninety nine point nine percent accuracy rate.
- 9:15Speaker 2: Right, it's a logarithmic scale.
- 9:16Speaker 1: But if you have to store a two digit number
- 9:19Speaker 1: next to every single letter of a three billion letter genome,
- 9:23Speaker 1: you instantly double or triple your file size. Our hard
- 9:26Speaker 1: drives would fill up immediately. So instead, the algorithms take
- 9:29Speaker 1: that Q score number, add exactly thirty three to it,
- 9:33Speaker 1: and map it to a keyboard symbol.
- 9:34Speaker 2: It's an incredibly clever compression hack.
- 9:36Speaker 1: But wait, why add exactly thirty three? Why not just
- 9:39Speaker 1: use the number itself.
- 9:40Speaker 2: Well, it's because of how computers read text using the
- 9:42Speaker 2: ASKI standard. The first thirty two characters in a computer's
- 9:45Speaker 2: language aren't printable. They are invisible commands like escape or return.
- 9:50Speaker 1: Oh right, okay.
- 9:51Speaker 2: By mathematically adding thirty three to the Q score, you
- 9:54Speaker 2: jump past those invisible commands and land perfectly on standard
- 9:58Speaker 2: printable characters. So instead of storing the number thirty the
- 10:01Speaker 2: computer stores a single XH symbol or maybe a question mark.
- 10:05Speaker 2: You fit complex probability data into a single byte of memory.
- 10:09Speaker 1: That is brilliant, And the stakes here are real because
- 10:12Speaker 1: if a doctor is looking at your file and the
- 10:15Speaker 1: sequence shows a genetic marker for a severe disease, they
- 10:18Speaker 1: need to know if that marker have a high Q
- 10:21Speaker 1: score or if it's just a low quality machine glitch.
- 10:23Speaker 2: Exactly, if we connect this to the bigger picture, we
- 10:27Speaker 2: aren't just trusting one read. We look at the read
- 10:29Speaker 2: depth and the genotype quality. If fifty reads show mutation
- 10:33Speaker 2: and have high Q scores, the algorithm confidently called it
- 10:36Speaker 2: a true variant.
- 10:36Speaker 1: It ignores the low quality blitches.
- 10:38Speaker 2: Yes, and once we trust the letters, we have to
- 10:41Speaker 2: figure out what they mean. You take those millions of
- 10:43Speaker 2: verified fast Q shreds and you align them against a
- 10:46Speaker 2: standard reference human genome. It's like checking your puzzle pieces
- 10:50Speaker 2: against the picture on the front of the box. Once
- 10:52Speaker 2: they are aligned, they are saved as a BAM file,
- 10:55Speaker 2: which is a highly compressed binary format.
- 10:57Speaker 1: But humans are fundamentally ninety nine point nine percent identical.
- 11:01Speaker 1: If you sequence my DNA, almost all of it is
- 11:04Speaker 1: exactly the same as the reference map. It seems wildly
- 11:06Speaker 1: inefficient to store three billion letters just to say yep,
- 11:10Speaker 1: still human.
- 11:11Speaker 2: Which is why the final piece of this file pipeline
- 11:14Speaker 2: is the VCF or variant call format. We don't store
- 11:18Speaker 2: your whole genome. The VCF file only stores your mutations,
- 11:22Speaker 2: the differences. It's essentially a list of typos. It says,
- 11:25Speaker 2: at chromosome four position one million, there should be an A,
- 11:28Speaker 2: but in this patient it's a G.
- 11:30Speaker 1: Okay, let's step back. Because I'm looking at the sheer
- 11:32Speaker 1: math of this alignment process. We sort of glossed over
- 11:34Speaker 1: how we actually match the puzzle pieces. If I have
- 11:37Speaker 1: one hundred letter fragment, and I have three billion possible
- 11:40Speaker 1: places to stick it on the reference genome. What in
- 11:43Speaker 1: a standard computer search algorithm just freeze? I mean, how
- 11:46Speaker 1: do they avoid a total system crash?
- 11:48Speaker 2: This is where we get into the real heavy algorithmic lifting.
- 11:51Speaker 2: The first major hurdle is that genetic mutations mean you
- 11:54Speaker 2: almost never have an exact match. You might have a
- 11:56Speaker 2: missing letter or an extra one, so you can't just
- 11:59Speaker 2: hit ctrl as string in search for the exact string.
- 12:03Speaker 2: You have to use something called dynamic programming to calculate
- 12:06Speaker 2: the edit distance.
- 12:07Speaker 1: I read about this. It's about finding the minimum number
- 12:10Speaker 1: of operations insertions, deletions, or substitutions to change one string
- 12:15Speaker 1: of text into another. The source gave a great simple example,
- 12:19Speaker 1: changing the word ants to bent. You substitute the A
- 12:23Speaker 1: for an E, insert a B at the front, and
- 12:25Speaker 1: delete the S at the end. That takes three steps,
- 12:28Speaker 1: perfect exactly. But scaling that up to thousands of letters
- 12:31Speaker 1: creates an astronomical number of possible operations.
- 12:34Speaker 2: Right if you try to calculate every single possible combination
- 12:38Speaker 2: from scratch using standard recursion, which essentially means the computer
- 12:42Speaker 2: solves the problem by breaking it into smaller pieces and
- 12:44Speaker 2: solving every single piece over and over, the computing time
- 12:48Speaker 2: grows exponentially. The universe would literally end before your laptop finished.
- 12:52Speaker 1: Okay, so if recursion crashes the computer, how does dynamic
- 12:55Speaker 1: programming solve it?
- 12:56Speaker 2: By using memory to save time, it builds what's called
- 13:00Speaker 2: a dependency graph or a table. Think of it like
- 13:05Speaker 2: getting driving directions. If you want to calculate the absolute
- 13:09Speaker 2: fastest route from New York to Seattle, and part of
- 13:11Speaker 2: your out goes through Chicago, you calculate the Chicago Seattle
- 13:15Speaker 2: leg once you write that answer down on a sticky note.
- 13:18Speaker 2: Oh okay, so yeah, if you were testing a million
- 13:21Speaker 2: different routes out of New York and a bunch of
- 13:24Speaker 2: them eventually passed through Chicago, you don't mathematically recalculate the
- 13:28Speaker 2: western half of the United States every single time. You
- 13:31Speaker 2: Just look at your sticky.
- 13:31Speaker 1: Note, right, You've already done that math exactly.
- 13:34Speaker 2: Dynamic programming does this for DNA. It solves the tiny
- 13:37Speaker 2: sub problems of the text, saves the answers in a
- 13:40Speaker 2: massive table, and just lifts them up. It drops the
- 13:43Speaker 2: computing time from trillions of years down to minutes.
- 13:46Speaker 1: It catches the answers that makes total sense. But even
- 13:49Speaker 1: with the sticky notes, searching every edge of a three
- 13:52Speaker 1: billion letter genome for millions of tiny confetti fragments is
- 13:55Speaker 1: still too slow, which brings us to a concept called
- 13:59Speaker 1: a bloom filter. And I've got to admit this is
- 14:01Speaker 1: where the computer science gets really counterintuitive for me.
- 14:04Speaker 2: It is a bit mind bending at first.
- 14:06Speaker 1: It's a space efficient probabilistic data structure. Basically, it asks
- 14:11Speaker 1: a massive database, does this sequence exist in here? Without
- 14:15Speaker 1: actually looking through the data. Yeah.
- 14:17Speaker 2: It uses mathematical hash functions and a simple bit array,
- 14:20Speaker 2: just a microscopic sequence of ones and zeros. When you
- 14:23Speaker 2: insert a genetic sequence into the system, it runs it
- 14:26Speaker 2: through a math formula that flips specific zeros to ones. Okay,
- 14:30Speaker 2: when you want to search for a sequence later, you
- 14:32Speaker 2: run it through the same formula. If all the corresponding
- 14:35Speaker 2: bits are ones, it tells you the item is probably there.
- 14:38Speaker 2: But if even a single bit is a zero, it
- 14:41Speaker 2: guarantees with absolute mathematical certainty that the item is not there.
- 14:45Speaker 1: I was trying to picture this, and it makes me
- 14:46Speaker 1: think of a very strict bouncer at a crowded VIP club.
- 14:50Speaker 1: The bouncer uses a series of quick, weird rules to
- 14:53Speaker 1: check people at the door. Are you wearing red shoes?
- 14:56Speaker 1: Do you have a ticket?
- 14:57Speaker 2: That's a good way to look at it right now.
- 15:00Speaker 1: And then the bouncer might mistakenly let a random person
- 15:03Speaker 1: in who isn't on the list. That's a false positive.
- 15:05Speaker 1: But the bouncer will absolutely never ever turn away someone
- 15:09Speaker 1: who is actually on the list. There is zero false negative.
- 15:12Speaker 1: But let me challenge this directly, go for it. Why
- 15:14Speaker 1: would computer scientists intentionally design an algorithm that we know
- 15:18Speaker 1: for a fact gives false positives? Is an accuracy the
- 15:22Speaker 1: entire point of medical science.
- 15:24Speaker 2: This raises an important question about computational trade offs. It's
- 15:28Speaker 2: all about conserving memory and speed. A bloom filter takes
- 15:31Speaker 2: up an unbelievably small amount of memory by intentionally allowing
- 15:35Speaker 2: a tiny predictable margin of error, say a one or
- 15:39Speaker 2: two percent false positive rate. We can achieve near instantaneous search.
- 15:43Speaker 1: Speeds because you aren't using the bloom filter for the
- 15:45Speaker 1: final answer. You use it to instantly discard the ninety
- 15:48Speaker 1: nine percent of the genome where the sequence definitely doesn't belong.
- 15:51Speaker 2: Ray Siicely, you use the cheap fast algorithm to clear
- 15:54Speaker 2: away the junk, and then you only perform the slow,
- 15:57Speaker 2: rigorous dynamic programming check on the few positive hits. You
- 16:01Speaker 2: save your heavy computational artillery for the targets that actually matter.
- 16:04Speaker 1: Okay, so bloom filters tell us if a sequence exists somewhere,
- 16:09Speaker 1: But to find exactly where it lives in the genome,
- 16:11Speaker 1: we need an index, like the index at the back
- 16:13Speaker 1: of a textbook telling you which page a word is on.
- 16:15Speaker 1: But when I was looking at the source text, standard
- 16:18Speaker 1: computer indexes for something this large are impossibly bloated. A
- 16:22Speaker 1: standard index a suffix tree for the human genome takes
- 16:26Speaker 1: up about forty gigabytes of active.
- 16:27Speaker 2: Memory, which is a fatal bottleneck. You can't load forty
- 16:30Speaker 2: gigabytes of data into the ram of a standard computer.
- 16:33Speaker 2: It means the computer would have to constantly read back
- 16:35Speaker 2: and forth from the hard drive, which slows everything to
- 16:38Speaker 2: an absolute crawl.
- 16:39Speaker 1: And this is where we get to the absolute crown
- 16:41Speaker 1: jewel of this whole. Deep dive. Researchers Ferragina and Manzini
- 16:45Speaker 1: created the FM index, and they did it using a
- 16:48Speaker 1: mathematical trick called the Burrows Wheeler transform or BWT, but honestly,
- 16:53Speaker 1: reading the mechanics of this transform broke my brain a
- 16:55Speaker 1: little bit. How does BWT actually work.
- 16:57Speaker 2: It is notoriously difficult to visual lies, but incredibly elegant
- 17:02Speaker 2: once you get it. The BWT is a permutation. It
- 17:06Speaker 2: reorganizes the text. Imagine taking a sequence of letters, rotating
- 17:11Speaker 2: the whole sequence by one letter, writing that down, rotating
- 17:14Speaker 2: it again, and listing out all the possible rotations. Then
- 17:17Speaker 2: you sort those rows alphabetically.
- 17:19Speaker 1: Okay, I'm with you, but why do that? What does
- 17:21Speaker 1: alphabetically sorting a bunch of rotated gibberish actually achieve?
- 17:25Speaker 2: Because of the underlying structure of human language and DNA,
- 17:29Speaker 2: When you sort those rotations alphabetically, a mathematical magic trick happens.
- 17:32Speaker 2: In the final column of that list. Identical characters suddenly
- 17:36Speaker 2: group together. So instead of a random string like acgdac,
- 17:39Speaker 2: the final column will spit out long runs of the
- 17:42Speaker 2: same letter like aaccgt oh.
- 17:44Speaker 1: And because they are grouped together, you can compress them exactly.
- 17:47Speaker 2: It's called run lengthen coding.
- 17:49Speaker 1: Wait, let me make sure I'm picturing this right. Instead
- 17:51Speaker 1: of the computer wasting memory writing out aaaa, run lengthen,
- 17:54Speaker 1: coding just writes five A yes, that.
- 17:57Speaker 2: Single trick allows the FM index to shrink the already
- 18:00Speaker 2: gigabyte in decks down to less than two gigabytes.
- 18:02Speaker 1: Here's where it gets really interesting. Suddenly the entire searchable
- 18:06Speaker 1: map of the human genome fits comfortably into the active
- 18:09Speaker 1: memory of a cheap laptop you could buy at a
- 18:11Speaker 1: big box store.
- 18:12Speaker 2: Yeah, that is just staggering. But the compression isn't even
- 18:16Speaker 2: the craziest part the source is mentioned. It allows for
- 18:19Speaker 2: backward search, which sounds impossible. How do you search compressed
- 18:24Speaker 2: data without uncompressing it first? This is the true genius
- 18:27Speaker 2: of the BWT. Because of how the matrix is mathematically structured,
- 18:31Speaker 2: you can jump between the columns to trace a sequence backwards,
- 18:34Speaker 2: letter by letter without ever unpacking the file. And here
- 18:38Speaker 2: is the kicker. The time it takes to search for
- 18:40Speaker 2: a pattern is proportional only to the length of your
- 18:43Speaker 2: query string. It completely ignores the massive size of the
- 18:46Speaker 2: actual genome.
- 18:47Speaker 1: Hold on, you're saying that if I want to search
- 18:49Speaker 1: for a fifty letter sequence, it takes the exact same
- 18:51Speaker 1: amount of time whether I am searching the tiny genome
- 18:54Speaker 1: of a fruitfly or the three billion letter human genome.
- 18:57Speaker 2: Exactly the size of the haystack no longer matters. The
- 19:00Speaker 2: time it takes only depends on the size of the needle.
- 19:02Speaker 2: It completely democratized genomic research overnight.
- 19:05Speaker 1: Okay, so we've gone from wet chemistry to massive raw data,
- 19:09Speaker 1: to error correcting files to mind blowing compression algorithms. So
- 19:14Speaker 1: what does this all mean? What does all this computational
- 19:17Speaker 1: heavy lifting actually do for the person listening right now?
- 19:21Speaker 1: If you are a patient in a hospital, what are
- 19:23Speaker 1: the steaks.
- 19:24Speaker 2: The steaks for your life? Before these algorithms, the genome
- 19:27Speaker 2: was a black box. Today, because we can search it
- 19:30Speaker 2: so quickly, we discovered incredible things. We found out that
- 19:33Speaker 2: humans only have about twenty thousand protein coding genes. That's
- 19:36Speaker 2: a mere three percent of our total.
- 19:38Speaker 1: DNA here, Really, just three percent actually builds the proteins.
- 19:41Speaker 1: The rest is essentially regulatory instructions.
- 19:44Speaker 2: Yes, and because we can quickly map a patient's DNA
- 19:46Speaker 2: against the reference, we can find the exact microscopic typos
- 19:50Speaker 2: causing their illness. The sources highlight a perfect example, the
- 19:54Speaker 2: bcl abl one fusion gene.
- 19:55Speaker 1: Right, that's a structural variation. It's when a piece of
- 19:57Speaker 1: chromosome nine accidentally breaks off attaches to chromosome twenty two.
- 20:01Speaker 2: Right, and that specific structural TYPO is present in ninety
- 20:05Speaker 2: five percent of patients with chronic myelogenous leukemia. Before this technology,
- 20:10Speaker 2: we just knew a patient had cancer, and we threw
- 20:13Speaker 2: toxic chemotherapy at them, hoping it worked. Today, we sequence
- 20:17Speaker 2: the genome, find the exact broken gear in the cellular machinery,
- 20:21Speaker 2: and use highly targeted drugs designed specifically to block that
- 20:24Speaker 2: mutated protein.
- 20:25Speaker 1: And it isn't just about static DNA either, Right The
- 20:27Speaker 1: sources talk about RNA sec and hippie suck.
- 20:30Speaker 2: Yes, If DNA is the architectural blueprint of a house,
- 20:33Speaker 2: RNA SEC is watching the construction workers actually build it.
- 20:37Speaker 2: It tells us the transcriptome which specific genes are actively
- 20:40Speaker 2: turned on or off in a cell at any given second,
- 20:43Speaker 2: and eachpisick maps out the specific proteins the transcription factors
- 20:47Speaker 2: that are flipping those switches.
- 20:48Speaker 1: It's watching the engine run in real time, which really
- 20:51Speaker 1: means the era of one size fits all medicine is dying.
- 20:54Speaker 1: If you get sick, doctors won't be guessing your treatment
- 20:56Speaker 1: based on population averages anymore. They are going to use
- 20:59Speaker 1: these algorithms to read your specific genetic typos and prescribe personalized,
- 21:03Speaker 1: stratified medicine designed exactly for your unique biology.
- 21:06Speaker 2: It is a complete paradigm shift. We've moved from observing
- 21:10Speaker 2: symptoms to observing the fundamental code of life in real.
- 21:13Speaker 1: Time, and the technology is accelerating. Our source text mentions
- 21:17Speaker 1: that Oxford Nanopor, the company pulling DNA through microscopic holes,
- 21:22Speaker 1: has created a device called the Minion. It's a disposable
- 21:25Speaker 1: DNA sequencer, the exact size and shape of a standard
- 21:28Speaker 1: USB flash drive. You just plug it right into a laptop.
- 21:31Speaker 2: Just think about the implications of that for a moment.
- 21:34Speaker 1: It completely flips the power dynamic, building on everything we've
- 21:36Speaker 1: talked about today, the error correction, the dynamic programming, the
- 21:40Speaker 1: heavily compressed FM index. We are rapidly approaching a world
- 21:44Speaker 1: where you could sequence your own DNA at home. If
- 21:47Speaker 1: the code that dictates whether your cells live, die, or
- 21:50Speaker 1: mutate can be read as easily as scanning a grocery
- 21:53Speaker 1: store barcode in your living room, how is that going
- 21:56Speaker 1: to change our relationship with our own biology? What does
- 21:59Speaker 1: it mean for our ourrivacy or our insurance? If anyone
- 22:01Speaker 1: can plug a thumb, drive in and read our biological destiny.
- 22:04Speaker 2: It's a profound frontier. The diagnostic muddy waters are finally clearing,
- 22:09Speaker 2: but what we find underneath is going to challenge us
- 22:11Speaker 2: as a society in entirely new ways.
- 22:13Speaker 1: It really is something for you to ponder long after
- 22:16Speaker 1: this deep dive ends, because the ultimate instruction manual is
- 22:19Speaker 1: no longer hidden. Thank you so much for joining us
- 22:23Speaker 1: as we impact the invisible architecture of your own biology.
- 22:26Speaker 1: Keep questioning, keep learning, and join us next time as
- 22:29Speaker 1: we continue to explore the absolute edges of human knowledge.