Genome 540 Homework Assignment 4
Due Sunday Feb. 10
- Write a program that does the following, for the genome sequence of Francisella tularensis subsp. novicida U112:
- Reads the Genbank file (with suffix .gbk), and from the FEATURES entries infers the locations of the starts of the coding sequences on both strands.
- Uses the information in 1) to compute count and frequency matrices (of the type presented in lecture 8 for C. elegans splice sites) for the translation start sites. These should extend from position -10 (i.e. 10 bases upstream of the first base of the start codon) to position +10 (i.e. 10 bases downstream of that base) -- 21 bases in all. To generate this you will need to read in the genome sequence (which appears later in the Genbank file), and to complement it in order to handle genes on the opposite strand correctly.
- Compute a site weight matrix using the frequency table for the translation start sites, together with the genome nucleotide frequencies. Entries in the weight matrix should be the log, to the base 2, of
the ratio of the appropriate frequencies. Use -99.0 as the weight for any cells that have frequency 0 in the translation start sites.
- Using the weight matrix from (3), generate two score histograms (using a bin size of 1 for the scores):
- a histogram of the scores of all "true" translation start sites (i.e. the ones used to construct the site frequency table)
- a histogram of the scores of all positions in the actual genome sequence (and its complement)
- Generate a list of all positions in the genome and its complement that have scores >= 5.0 but which do NOT correspond to annotated translation start sites.
Your output should conform to the template specified below.
- You must turn in your results and your computer
program, using this template file .
Please put everything into ONE plain text file - do not send an archive
of files or a tar file, or a word processing document file. 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 and Will.
(The XML file includes a DTD, which specifies the XML file format. Place the DTD at the beginning of your XML document. When you are done with your XML check to make
sure it conforms to the DTD using this website: http://www.stg.brown.edu/service/xmlvalid/ and resolve any errors before turning it in. Warnings are acceptable.)