Docsity

Decoding DNA: Understanding the Role of Computer Science in Biology - Prof. David Evans, Study notes of Computer Science

Toggle sidebar
bg1
1
David Evans
http://www.cs.virginia.edu/evans
CS150: Computer Science
University of Virginia
Computer Science
Class 35:
Decoding DNA
DNA Helix Photomosaic from cover of
Nature, 15 Feb 2001 (made by Eric Lander)
Sign up for your PS8
team design review!
2
CS150 Fall 2005: Lecture 35: Decoding DNA
Speculations
• Must study math for 15+ years before
understanding an (important) open problem
– Was ~10 until Andrew Wiles proved Fermat’s Last
Theorem
• Must study physics for ~6 years before
understanding an open problem
• Must study computer science for 1 semester before
understanding the most important open problem
– Unless you’re a 6-year old at Cracker Barrel
• But, every 5 year-old understands the most
important open problems in biology!
3
CS150 Fall 2005: Lecture 35: Decoding DNA
Biology’s Open Problem
Which came first, the chicken
or the egg?
How can a (relatively) simple,
single cell turn into a chicken?
4
CS150 Fall 2005: Lecture 35: Decoding DNA
Brief History of Biology
Life is
about
magic.
(ā€œvitalismā€)
Most biologists work on Classification
Aristotle (~300BC) - genera and species
Descartes (1641)
explain life mechanically
Life is
about
chemistry.
Life is
about
information.
Life is
about
computation.
1850 1950 2000
Schrƶdinger (1944)
life is information
crack the information code
Watson and Crick (1953)
DNA stores the information
5
CS150 Fall 2005: Lecture 35: Decoding DNA
DNA
• Sequence of
nucleotides: adenine
(A), guanine (G),
cytosine (C), and
thymine (T)
• Two strands, A must
attach to T and G must
attach to C
A
G
T
C
C
6
CS150 Fall 2005: Lecture 35: Decoding DNA
Central Dogma of Biology
• RNA makes copies of DNA segments
• RNA describes sequences of amino acids
• Chains of amino acids make proteins
DNA
Transcription
RNA
Translation
Protein
Image from http://www.umich.edu/~protein/
pf3
pf4
pf5

Partial preview of the text

Download Decoding DNA: Understanding the Role of Computer Science in Biology - Prof. David Evans and more Study notes Computer Science in PDF only on Docsity!

David Evans http://www.cs.virginia.edu/evans

CS150: Computer Science University of Virginia Computer Science

Class 35:

Decoding DNA

DNA Helix Photomosaic from cover of Nature , 15 Feb 2001 (made by Eric Lander)

Sign up for your PS team design review!

CS150 Fall 2005: Lecture 35: Decoding DNA 2

Speculations

  • Must study math for 15+ years before understanding an (important) open problem - Was ~10 until Andrew Wiles proved Fermat’s Last Theorem
  • Must study physics for ~6 years before understanding an open problem
  • Must study computer science for 1 semester before understanding the most important open problem - Unless you’re a 6-year old at Cracker Barrel
  • But, every 5 year-old understands the most important open problems in biology!

CS150 Fall 2005: Lecture 35: Decoding DNA 3

Biology’s Open Problem

Which came first, the chicken

or the egg?

How can a (relatively) simple,

single cell turn into a chicken?

CS150 Fall 2005: Lecture 35: Decoding DNA 4

Brief History of Biology

Life is about magic. (ā€œvitalismā€) Most biologists work on Classification Aristotle (~300BC) - genera and species Descartes (1641) explain life mechanically

Life is about chemistry.

Life is about information.

Life is about computation.

1850 1950 2000

Schrƶdinger (1944) life is information crack the information code Watson and Crick (1953) DNA stores the information

CS150 Fall 2005: Lecture 35: Decoding DNA 5

DNA

  • Sequence of nucleotides: adenine (A), guanine (G), cytosine (C), and thymine (T)
  • Two strands, A must attach to T and G must attach to C

A

G

T

C C

CS150 Fall 2005: Lecture 35: Decoding DNA 6

Central Dogma of Biology

  • RNA makes copies of DNA segments
  • RNA describes sequences of amino acids
  • Chains of amino acids make proteins

DNA

Transcription RNA

Translation Protein Image from http://www.umich.edu/~protein/

CS150 Fall 2005: Lecture 35: Decoding DNA 7

Encoding Proteins

  • There are 4 nucleotides: adenine (A), guanine (G), cytosine (C), and thymine (T) (replaced with uracil (U) in RNA)
  • There are 20 different amino acids, and a stop marker (to separate proteins)
  • How many nucleotides are needed to encode one amino acid? with 2, could encode 16 things: 4 * 4 with 3, could encode 64 things: 4 * 4 * 4 CS150 Fall 2005: Lecture 35: Decoding DNA 8

Codons

  • Three nucleotides encode an amino acid
  • But, there are only 20 amino acids, so there may be several different ways to encode the same one From http://web.mit.edu/esgbio/www/dogma/dogma.html

CS150 Fall 2005: Lecture 35: Decoding DNA 9

Shortest (Known) Life Program

  • Nanoarchaeum equitans
    • 490,885 bases (522 genes) = 490,885 * ¼ * 21/64 = 40,268 bytes
    • Parasite: no metabolic capacity, must steal from host
    • Complete components for information processing: transcription, replication, enzymes for DNA repair
  • Size of compiling C++ ā€œHello Worldā€: Windows (bcc32): 112,640 bytes Linux (g++): 11,358 bytes

http://www.mediscover.net/Extremophiles.cfmKO Stetter and Dr Rachel Reinhard

CS150 Fall 2005: Lecture 35: Decoding DNA 10

How Big is the

Make-a-Human Program?

  • 3 Billion Base Pairs
    • Each nucleotide is 2 bits (4 possibilities)
    • 3 B pairs * 1 byte/4 pairs = 750 MB
  • Every sequence of 3 base pairs one of 20 amino acids (or stop codon) - 21 possible codons, but 4^3 = 64 possible - So, really only 750MB * (21/64) ~ 250 MB
  • Most of it (> 95%) is probably junk

CS150 Fall 2005: Lecture 35: Decoding DNA 11

1 CD ~ 650 MB

CS150 Fall 2005: Lecture 35: Decoding DNA 12

People are almost all the Same

  • Genetic code for 2 humans differs in only 2.1 million bases - 4 million bits = 0.5 MB
  • How big is 0.5MB?
    • 1/3 of a floppy disk
    • ~22 times the size of the PS6 adventure game code

CS150 Fall 2005: Lecture 35: Decoding DNA 19

Human Genome Race

  • UVa CLAS 1970
  • Yale PhD
  • Tenured Professor at U. Michigan

Francis Collins (Director of public National Center for Human Genome Research) (Picture from UVa Graduation

Craig Venter (President of Celera

vs. Genomics)

  • San Mateo College
  • Court-martialed
  • Denied tenure at SUNY Buffalo CS150 Fall 2005: Lecture 35: Decoding DNA 20

Reading the Genome

Whitehead Institute, MIT

CS150 Fall 2005: Lecture 35: Decoding DNA 21

Gene Reading Machines

  • One read: about 700 base pairs
  • But…don’t know where they are on the chromosome

Genome^ Actual^ AGGCATACCAGAATACCCGTGATCCAGAATAAGC

Read 1 ACCAGAATACC

Read 2 TCCAGAATAA

Read 3 TACCCGTGATCCA

CS150 Fall 2005: Lecture 35: Decoding DNA 22

Genome Assembly

Input: Genome fragments (but without knowing where they are from) Ouput: The full genome

Read 1 ACCAGAATACC Read 2 TCCAGAATAA Read 3 TACCCGTGATCCA

CS150 Fall 2005: Lecture 35: Decoding DNA 23

Genome Assembly

Input: Genome fragments (but without knowing where they are from) Ouput: The smallest genome sequence such that all the fragments are substrings.

Read 1 ACCAGAATACC Read 2 TCCAGAATAA Read 3 TACCCGTGATCCA

CS150 Fall 2005: Lecture 35: Decoding DNA 24

Common Superstring

Input: A set of n substrings and a maximum length k. Output: A string that contains all the substrings with total length ≤ k , or no if no such string exists. ACCAGAATACC TCCAGAATAA TACCCGTGATCCA

TACCCGTGATCCA

TCCAGAATAA

ACCAGAATACC

n = 26

ACCAGAATACCCGTGATCCAGAATAA

CS150 Fall 2005: Lecture 35: Decoding DNA 25

Common Superstring

Input: A set of n substrings and a maximum length k. Output: A string that contains all the substrings with total length ≤ k , or no if no such string exists. ACCAGAATACC TCCAGAATAA TACCCGTGATCCA n = 25

Not possible

CS150 Fall 2005: Lecture 35: Decoding DNA 26

Common Superstring

  • In NP:
    • Easy to verify a ā€œyesā€ solution: just check the letters match up, and count the superstring length
  • NP-Complete
    • Similar to Smiley Puzzle!
    • Could transform 3SAT into Common Superstring problem

CS150 Fall 2005: Lecture 35: Decoding DNA 27

Shortest Common Superstring

Input: A set of n substrings Output: The shortest string that contains all the substrings.

ACCAGAATACC TCCAGAATAA TACCCGTGATCCA

TACCCGTGATCCA

TCCAGAATAA

ACCAGAATACC

ACCAGAATACCCGTGATCCAGAATAA

CS150 Fall 2005: Lecture 35: Decoding DNA 28

Shortest Common Superstring

  • Also is NP-Complete: function scsuperstring (pieces) maxlen = sum of lengths of all pieces for k = 1 to k = maxlen step 1 do if (commonSuperstring (pieces, k)) return commonSuperstring (pieces, k) end for

CS150 Fall 2005: Lecture 35: Decoding DNA 29

Human Genome

  • 3 Billion base pairs
  • 600-700 bases per read
  • ~8X coverage required
  • So, n ā‰ˆ 37 Million sequence fragments
  • Celera used 27.2 Million reads (but could get more than 700 bases per read)

(/ (* 8 (* 3 1000 1000 1000)) 650) 36923076 12/

CS150 Fall 2005: Lecture 35: Decoding DNA 30

Give up?

No way to solve an NP- Complete problem (best known solutions being O(2 n ) for n ā‰ˆ 20 Million)

(^1001) 10000 1E+061E+

1E+101E+

1E+141E+

1E+181E+

1E+221E+

1E+261E+

1E+

2 4 8 16 32 64 128

2 n^

time since ā€œBig Bangā€