- Write a program that generates the FASTA files of four simulated sequences. This program should:
- read in a file in FASTA format
- determine the nucleotide counts and frequencies, the dinucleotide counts and frequencies, and the length, for the input sequence
- using the equal frequency assumption, produce a simulated sequence with the same length and then output a file in FASTA format containing the simulated sequence
- using an order-0 Markov model with sampling probabilities equal to the nucleotide frequencies estimated from the input sequence, produce a simulated sequence with the same length as the input, and then output a file in FASTA format containing the simulated sequence
- using an order-1 Markov model with sampling probabilities equal to the conditional probabilities estimated from the dinucleotide frequencies of the input, produce a simulated sequence with the same length as the input, and then output a file in FASTA format containing the simulated sequence
- again using the order-1 Markov model, produce a simulated sequence with 10 times the length of the input, and then output a file in FASTA format containing the simulated sequence
The sequence names for your output sequences should indicate that they are simulated (and the model used). Note that the nucleotide and dinucleotide counts & frequencies in your simulated sequences may differ slightly from those in the input, due to the randomization process.
- Use your program in #1 above to generate four simulated FASTA files based on the length and nucleotide or dinucleotide frequency of the 10-megabase mouse genomic region used in homework 1.
Your output should include the information below for each of the five fasta files (the original and four simulated)
- the name and first line of the fasta file
- the nucleotide count histogram
- the nucleotide frequencies
- the dinucleotide count matrix
- the dinucleotide frequency matrix
- the conditional frequency matrix
All frequencies should be given to 4 decimal places; and you should use the nucleotide order A, C, G, T for the matrix rows and columns.
- Run your program from homework 1 four times. In all four runs, sequence 1 should be the 10-megabase human genomic region used in homework 1. In the first run, sequence 2 should be the simulated equal frequency sequence (from # 2 above). In the second run, sequence 2 should be the order-0 Markov model simulated sequence. In the third and fourth runs, sequence 2 should be the order-1 Markov model simulated sequences (of the same or 10X length). Your output for each run should be the same format as for homework 1 (with fasta file names added, per the template).
-
Answer the following questions after the simulated histogram, as shown in the template file:
- Given your results, what can you conclude about the statistical significance of matches between the orthologous mouse and human regions in homework 1?
- Several interesting genes are located here. For example, the CPEB3 gene contains an intron-encoded self-cleaving ribozyme; Insulin Degrading Enzyme (IDE), an insulin protease has clinical significance for Alzheimer's disease. The HHEX gene encodes a member of the homeobox family of transcription factors, many of which are involved in developmental processes, etc. Using the longest match sequence(s) you found in Assignment 1, you should then try to figure out what biological feature they correspond to. You can do this by exploring the UCSC browser (hg38 and mm39). As a first step, it may be helpful to BLAST your longest match sequence(s) against the Human and Mouse genomes using this link
- Based on your histogram, how many UCEs are there in this region? Justify your answer. Hint: see this Science paper on "ultraconserved elements" (UCEs; >=200 bp exact match between mouse and human).
- Use this file as the template for submission but modified slightly as follows:
- that template is only for three simulated sequencies, whereas you'll be analyzing four.
- The program you include should be only the program in #1 above -- you don't need to turn in your HW1 program again!