Genome 540
Introduction to Computational Molecular Biology:
Genome and Protein Sequence Analysis
(Winter Quarter 2027)
- Synopsis: Together with Genome 541, a two-quarter
introduction to protein and DNA
sequence analysis and molecular evolution, with weekly programming assignments to analyze genomic data. Material covered
includes probabilistic models of sequences and of sequence
evolution, computational gene identification, pairwise sequence
comparison and alignment (algorithms and statistical issues), multiple
sequence alignment and evolutionary tree construction, comparative
genomics, and protein sequence/structure relationships.
These represent the central computational approaches for
interpreting genomes. The
statistical and algorithmic ideas discussed (which include maximum
likelihood estimation, hidden Markov models, dynamic programming) have
wide applicability in other areas of computational & mathematical
biology as well.
- Prerequisites:
- Ability to write computer programs for data
analysis in a general purpose programming language such as Python, C++, or Java (R and MATLAB are not suitable). You should already be able to write and debug a program that reads a text file, stores the data, and analyzes it, without using AI. (The first assignment requires comparing two 10-million-base DNA sequences, using an algorithm (suffix arrays) that will be presented in Lecture 2.) If you are instead new to programming, some possible UW courses to prepare you for taking Genome 540 are:
- Some
prior exposure to probability and statistics, and molecular biology, is
desirable but not essential.
- Course organization: We follow the 'inverted lecture' model. Recorded lectures are to be viewed (or the transcript file read) by students prior to the corresponding class discussion.
- Lectures: posted below as Zoom recordings (recommended viewing speed: 1.25X or 1.5X), slide PDFs, and PDFs of transcripts with slides (as available).
- Discussions (not recorded, but TA discussion slides will be posted following each class): TuTh 10:30-11:50 in Foege S-110. Discussion topics include the lecture, homework, and related material.
- The approximate syllabus is in the lecture schedule below.
- Grading & homework policies:
- The course grade is based on the weekly homework assignments (90%), and class participation (10%; full participation credit requires regular attendance except for pre-excused absences, and engagement in class discussions). There is no final exam.
- The homework assignments involve writing programs for data analysis (using a general-purpose programming language -- R and MATLAB are not suitable for these assignments!), and running them on a computer you have access to (we do not provide computers, but your laptop will almost certainly be adequate if you use a compiled language). We don't require a specific language,
but it is important to use a language that allows you to
write programs that will run fast on large (genome-scale) datasets; ideally a compiled
language such as C, C++, Java, Rust, Go, or Julia. You may be able to get by with an interpreted
language such as Python -- particularly if you can accelerate it using Numba, Cython, or NumPy -- however there is a
definite risk that programs in such languages will take very long to
run, which means that you will need to get the program
written early enough that you can allow 2 or 3 days for the run and
still be able to turn in the assignment on time. Students often start the course knowing only Python, and use it as an opportunity to learn C, C++, or Rust. Some (free) resources for that are:
- Use of library and built-in routines. Routines for standard sorts and array math are fine; suffix-array, alignment and HMM library routines are not.
- It is OK to run your program on someone else's input datafile, and
compare outputs to see if you get the same results; or to trade ideas about getting programs to work. However it is not OK
to share programs, or to get someone else to debug your program. A key
part of the course is learning to write and debug your own programs for
data analysis.
- Use of AI. The program and output you submit must be entirely your own (not generated by AI): You must implement the assigned algorithm and write and debug the code yourself. You may ask AI to explain an error, suggest a test case, or discuss syntax in your chosen language. Write and test any changes yourself. You should be able to explain every line of your code. Why we require this:
- An algorithm or probability model often seems clear in lecture until you try to turn it into a program. Writing the program yourself shows you which steps you understand and which you still need to work out.
- It also puts you in a position to judge the help you get. A program can run successfully and give a plausible answer to a slightly different question from the one you meant to ask. If you draw a biological conclusion from its output, you're responsible for understanding what the program computed and checking that the conclusion follows.
- See Ten simple rules for responsible use of AI and LLMs in computational biology, especially its discussion of the expertise needed to evaluate AI-generated code (Rule 3) and appropriate and inappropriate uses of AI in coding (Rules 4, 5 & 6).
- Homework is due by 11:59 pm on the indicated date. After creating a single plain text file (NOT
a word processing document file, or a PDF, or an archive of files) in the format specified for the assignment (containing both your program output and a copy of your program), compress it (using gzip -- for example "gzip hw1.txt"; on Windows, 7-Zip or Python's gzip module can create .gz files), and email it as an attachment to all three instructors (addresses below).
- Each assignment is worth 10 points, with a score of 7.0 equivalent to a 'B'. There is a late penalty of half a point for each day (or fraction thereof) past the deadline.
- You can redo the assignment, and take the new score (with the late penalty that applies to the date of the resubmission) if you wish. Multiple resubmissions are allowed. For each assignment, we retain your highest score after applying the late penalty separately to each submission.
- Incorrectly formatted homework submissions will not be graded. They can be resubmitted, but a late penalty (as above) may apply.
- Assignments submitted either more than 20 days late (i.e. with a late penalty exceeding 10 points) or after the last day of finals week (11:59 pm Friday Mar 19) will not be graded.
- Instructors:
- Phil Green (phg [ a t ] uw.edu). Office hrs: by appointment.
- TA: Marazzano Colon (mdcolon [ a t ] uw.edu). Office hrs: by appointment.
- TA: Val Browning (vbrow [ a t ] uw.edu). Office hrs: by appointment.
- To register for credit, contact Phil Green for permission (please include a brief summary of your programming experience, after reading the above). Enrollment is limited to 25 students. Auditing is allowed.
LECTURES (to watch before class), DISCUSSION SLIDES (posted after class), READINGS (suggested), ASSIGNMENTS (required)
- BACKGROUND
- Math Notation
- Biological Review Slides: Gene and genome structure in prokaryotes and eukaryotes; the genetic code & codon usage; "global" genome organization. Sources and characteristics of sequence data; Genbank and other sequence databases.
- Suggested texts (not required!):
- Tue Jan 5
- Thu Jan 7
- Tue Jan 12
- Lecture 3 Video (100 min) Slides (33)
Probability models. 'Background' sequence models; failure of equal frequency & independence assumptions. Neutralist v selectionist interpretations. Markov models. Assessing significance of sequence patterns; simulations.
- Discussion 3 Slides
- Introduction to Probability by Joe Blitzstein & Jessica Hwang (free PDF). See chaps 1 (Probability and counting), 2 (Conditional probability), chap 11 (Markov chains).
- Thu Jan 14
- Tue Jan 19
- Lecture 5 Video (68 min) (orig recorded as Lec 4) Slides (25)
Comparing probability models. Likelihood ratios and the Neyman-Pearson lemma. Weight matrices. Score distributions.
- Discussion 5 Slides
- Thu Jan 21
- Tue Jan 26
- Thu Jan 28
- Lecture 8 Video (73 min) Slides (20)
Weighted linked lists as simple WDAGs. Sequence graphs & compositionally biased regions. Defining and interpreting scores. Other applications.
- Discussion 8 Slides
- Assignment 4 (finding highest-weight paths in a WDAG), due Sunday Feb 7
- Tue Feb 2
- Lecture 9 Video (86 min) Slides (33)
Sequence alignment, evolution, & mutations. Edit graphs & Smith-Waterman alignment. Multiple sequence alignment: higher dimensional edit graphs, progressive alignment.
- Discussion 9 Slides
- Thu Feb 4
- Lecture 10 Video (79 min) Slides (30)
Local vs global alignments. Alignment scoring: background models for proteins, score matrices, profiles. Statistical significance.
- Discussion 10 Slides
- Assignment 5 (finding multiple sequence alignments), due Sunday Feb 14
- Tue Feb 9
- Thu Feb 11
- Lecture 12 Video (65 min) Slides (24)
More on WDAGs: inverted WDAGs, fwd/backwd algorithm, finding multiple high-scoring paths. Multiple paths in edit graphs: Finding repeats. Multiple paths in WLLs. D-segments.
- Discussion 12 Slides
- Assignment 6 (detecting regions of elevated read depth), due Sunday Feb 21
- Tue Feb 16
- Thu Feb 18
- Tue Feb 23
- Lecture 15 Video (72 min) (orig recorded as Lec 14) Slides (25)
Forward & forward/backward algorithms. Parameter estimation: Viterbi & Baum-Welch training.
- Discussion 15 Slides
- Thu Feb 25
- Tue Mar 2
- Thu Mar 4
- Tue Mar 9
- Lecture 19
(In-person lecture by Marazzano & Val -- no prerecorded video to watch beforehand; topic TBA).
- Thu Mar 11