Course Description

A computational introduction to the most amazing programming language on the planet: your genome. Topics include genome sequencing (assembling source code from code fragments); the human genome functional landscape: variable assignments (genes), control-flow logic (gene regulation) and run-time stack (epigenomics); human disease and personalized genomics (as a hunt for bugs in the human code); genome editing (code injection) to cure the incurable; and the source code behind amazing animal adaptations. Algorithmic approaches will introduce ideas from computational genomics, machine learning and natural language processing.


There are no biological or computational prerequisites for CS273a. While there are no official prerequisites, a background in programming is strongly encouraged. Introductory sections on molecular biology, text processing in UNIX, and the UCSC Genome Browser will be given early in the quarter (see schedule below).


This course is cross-listed within Developmental Biology and Biomedical Informatics as DBIO273A and BIOMEDIN273A, respectively.

Class Schedule

Tues Thurs 1:30PM-2:50PM in Alway M106; except 1/24 (Munzer Auditorium in Beckman Center), 2/21 (LK120 in LKSC), 3/14 (LK120 in LKSC)

The course is mostly based on current or very recent literature. As such, it does not follow any textbook. Please use the papers mentioned at each lecture as pointers into the relevant literature (for more material, you can look at the papers' references, or at more recent publications that cite those papers). The easiest way to find a paper would be to search for its title and/or authors on Google Scholar or vanilla Google.

As a Stanford student you also have free access to many biomedical journals. To access all biomedical resources Stanford pays for from off campus, you can install a browser extension and a shortcut that allows you to directly search and access Lane Library online resources using your SUNetID.

The following book can be used as a general reference to the biological topics discussed in class: Human Molecular Genetics, 4th edition. The course may also use material from Genomes, Browsers and Databases: Data-Mining Tools for Integrated Genomic Databases.


All course communication will be handled via Piazza. Find our class page at Piazza and enroll to receive announcements and access to other private course resources.


Gill Bejerano
Office: Beckman Center B321
Office hours: Email for appointment
Phone: (650) 723-7666

Teaching Assistants

Bo Yoo
Office: Beckman Center B381 (Mondays) and B402 (Tuesdays)
Office hours: Mondays 4:30-6:30PM and Tuesdays 3:00-5:00PM

Yatish Turakhia
Office: Beckman Center B381
Office hours: Wednesdays 4:00-6:00PM and Fridays 4:00-6:00PM

Course Requirements
There are three course requirements:
  1. Homeworks. Throughout the class there will be two homework assignments. Three late days are awarded for the quarter. Once these late days are used up, homework turned in late will be penalized 20% per late day. The number of late days used is rounded up to the nearest day, so assignments turned in one hour late use one full late day. Late days cannot be applied to the project milestone or final project presentation.

    All codes must be executable on stanford student machines (i.e. cardinal, myth, or rice). No Jupyter notebooks will be allowed. Include how to run your code in your README, and all your codes must be able to run without user modification (e.g. if the code takes in a file as an input the path or the file name should not be hard coded but should be passed in through command line. All files must be named appropriately and your submitted zipped file must include your name. Be as detailed as possible to ensure that you get all the points.

    Because we reuse some problem set questions from previous years' homeworks, looking at previous years' solution sets is not permitted and is an honor code violation.

    Students may discuss homework problems in groups. However, each student must write down the solutions independently, and without referring to written notes from the joint session. In other words, each student must understand the solution well enough in order to reconstruct it by him/herself. In addition, each student should write on the problem set the set of people with whom s/he collaborated.

  2. Project. Students will form groups, and each group will be assigned an individual project. Instead of a final exam, at the end of the class there will be a final presentation where the groups will present their work. There will also be a final survey for your feedbacks.

  3. Attendance. For this class, attendance is mandatory. You may miss up to 2 lectures without affecting your grade, with consideration given if you are not feeling well.

Grades will be determined by roughly the following breakdown: 25% HW1, 30% HW2, 5% Attendance, 40% Final Project.
Honor Code and Regrade Policy

All homework assignments are individual assignments and you may not work in a group. You are allowed to discuss ideas and compare final numeric outputs (e.g. number of lines in a file), but no part of your final code can be shared with other students. We take honor code violations seriously, and any violations will be reported to the Office of Community Standards. We may make mistakes when we grade your homework. If you find one please send an email to cs273a-win1819-staff@lists.stanford.edu to ask for a regrade. We will regrade your entire homework. You cannot redo your homework after grades have been returned. We will not accept anymore submissions after grades have been sent out.

Course Tools

The base course directory is located at /afs/ir.stanford.edu/class/cs273a, and is reachable from the cardinal and corn machines. Source tree executables are available within the bin directory, and are machine-dependent. If you add "/afs/ir.stanford.edu/class/cs273a/bin/@sys" to your PATH variable, the correct version of the executable will be executed.

Previous CS273A Materials

There are course schedules and materials available from the Winter 2017/2018, Autumn 2016/2017, Autumn 2015/2016, Autumn 2014/2015, Autumn 2013/2014, Autumn 2011/2012, Autumn 2010/2011, Autumn 2009/2010, Autumn 2008/2009, Autumn 2007/2008, and Spring 2006/2007 versions of the course. Also see the Winter 2012/13 class of CS173.

Introductory Bio and CS Sessions
The following is a list of introductory sessions for students unfamiliar with (or just wanting a refresher lecture on) biology and computer science to the depth necessary to make the course enjoyable. These primer sessions will be held on the following dates during the class time.

Date Subject
1/15 Introductory Biology Primer
1/22 Introduction to Text Processing
1/24 UCSC Genome Browser