Genome 540 Homework Assignment 1

Due Sunday Jan. 14

Late homework policy is described on course web page.

  1. Download and begin reading Initial sequencing and analysis of the human genome. The Genome International Sequencing Consortium. Nature 409, 860-921 (15 February 2001) . (To print this out, I would recommend the pdf format which corresponds exactly to the printed version, rather than the html format.) For next week, read:
  2. Write a program that implements the method described in Lecture 2 to find the longest exactly matching subsequence between two sequences. Specifically, your program should:
  3. Using this program, you should then find the longest exactly matching sequences in the Acetobacterium woodii genome and the Cyanobacterium aponinum genome. Once you find the longest match(es) using your program, you should then try to figure out what biological feature they correspond to. You can do this by exploring the features tables for both organisms here and here.
  4. To test whether your program is working correctly, run it first on the test example indicated below (with two different bacterial genomes) to see whether you get the right answer. The FASTA files for the test examples can be found here and here. The Genbank files are here and here. In general, FASTA files for these and other bacterial genomes can be found by going to the NCBI web site and following appropriate links. (On the NCBI site, the FASTA files containing the full genome sequences have the suffix .fna. To find the biological features, look in the 'Genbank format' files for the organisms (which have the suffix .gbk on the NCBI site) and find the annotated 'feature' in each genome that overlaps the matching segment you found. You don't need to write a program to do this -- you can just read the .gbk file on the website.)
  5. You must turn in your results and your computer program, using the template (file format) described below. Please put everything into ONE file - do not send an archive of files or a tar file. After creating a plain text file (NOT a word processing document file) in this format, compress it (using either Unix compress, or gzip -- if you don't have access to either of these programs, let us know), and send it as an attachment to both Phil at phg@uw.edu and Serena at selenay@uw.edu.
Between the "=============" below is an example of a homework file with the fields filled in with the correct answers for the test case (see genomes provided in #4 above). Several items are explained in detail in the notes below the template:

=============
Assignment: GS 540 HW1
Name: Serena Liu
Email: selenay@uw.edu
Language: Java
Runtime: 8 sec

Fasta 1: CP003913.fna
>gi|440453185|gb|CP003913.1| Mycoplasma pneumoniae M129-B7, complete genome
A=249201
C=162924
G=163697
T=240551
N=0
*=816373

Fasta 2: CP001872.fna
>gi|284930242|gb|CP001872.1| Mycoplasma gallisepticum str. R(high), complete genome
A=349322
C=159094
G=159365
T=344246
N=0
*=1012027

Match length: 122
Number of match strings: 2

Match string: GGGGTCTTTCCGTCCCGTTGCGCCTAACGGGTGTCTTCACCCGTACCTGGATTTCACCGAGTCTATAGCCGAGACAGTCAAGAGATGGTTACACCATTCAAGCGGGACGGAATTTACCCGAC
Description: This sequence comes from the 23S ribosomal RNA gene.

Fasta: CP001872.fna
Position: 338240
Strand: reverse

Fasta: CP003913.fna
Position: 122005
Strand: reverse

Fasta: CP001872.fna
Position: 82469
Strand: reverse

Match string: GTCGGGTAAATTCCGTCCCGCTTGAATGGTGTAACCATCTCTTGACTGTCTCGGCTATAGACTCGGTGAAATCCAGGTACGGGTGAAGACACCCGTTAGGCGCAACGGGACGGAAAGACCCC
Description: This sequence comes from the 23S ribosomal RNA gene.

Fasta: CP001872.fna
Position: 82469
Strand: forward

Fasta: CP003913.fna
Position: 122005
Strand: forward

Fasta: CP001872.fna
Position: 338240
Strand: forward

Program:

int main() {
	do_analysis();
	return 0;
}

=============

Details:

Fasta: put the name of the fasta file, along with the first line.

Nucleotide histogram: count the total number of bases ("*") and the number of times each specific base occurs. i.e.:

A=349623
C=159237
G=159490
T=344450
N=0
*=1012800

Description: Put a short identification of the shared DNA subsequence, for instance: "This DNA sequence is the first 20 bases of an RNA polymerase gene."

Position: Put the location of the matching subsequence within the input sequence here. The location should be the index of the DNA base in the sequence that is closest to the beginning of the forward strand. Use a coordinate system starting at 1 rather than 0. For example, if the two chromosomal strands are:

			 5'-ACTGA-3'
			 3'-TGACT-5'
and you found the subsequence TCA on the reverse strand to be the longest match to the other sequence, then the location should be reported as 3. If instead you found CTG on the forward strand, then the location should be reported as 2.