
Homework 1
BINF 730 Biological Sequence Analysis
January 30, 2008
Due February 13, 2008
Do one of the following:
1. Create a program to simulate mutations to an amino acid sequence. To do this,
one must create a Monte Carlo simulation that uses the random number generator
and specified mutation rates to cause mutations to a given amino acid sequence.
a. The first task is to determine reasonable values for the probability of
substitution of amino acids. These can be obtained from the PAM1 matrix
specified by Dayhoff in which 1 PAM unit signifies an expected
substitution frequency of 1%. (Hint: To determine substitution probability,
note that the column of the PAM matrix adds up to 10000). In class on
February 5, we will discuss these findings.
b. The second task is to make a program that allows the input of a amino
sequence and the amount of time (arbitrary units i.e. evolutionary time,
generations, years) that will elapse. Successive runs of the program
should produce different sequences (i. e. the seed of the random number
generator must be different in different runs).
2. Create a program to simulate the random creation of a sequence of amino acids.
To do this one must find in the literature the frequency at which amino acids
appear and create a Monte Carlo Simulation to create a random sequence of these
amino acids
a. The first task is to determine reasonable values for the probability of
appearance of each amino acid. This has been calculated for different
organism in the scientific literature. In class on February 5, we will
discuss these findings.
b. The second task is to make a program that uses a specified probability of
appearance for each amino acid and accepts as input the desired length of
the sequence to calculate a random sequence of amino acids. Successive
runs of the program should produce different sequences (i. e. the seed of
the random number generator must be different in different runs).
3. Consider the PAM 60 matrix. Can you calculate the PAM 120 matrix? How does
the calculated value compare to the actual matrix? If we apply the PAM 60 twice
to a sequence twice do you expect the same results as applying the PAM 120
matrix once? Do so. What results do you get? Explain the results.