Close to great derivation: dna substitution

In summary, the author is trying to calculate the probability of a particular DNA molecule (base) remaining the same while it suffers changes both to and from the other 3 types of DNA molecules. This probability is described by a rate which is instantaneous (symbolized by \alpha) and which is based on the principle that over time the P_c(t) will eventually settle to a steady state. The author derives the equation for P_c(t) from first principles and then applies it to two time points to get a general equation for P_c(t). This equation can be solved to give the probability of a site being a "C" at a given time.
  • #1
stabu
26
0
Hi,

I'm really close to deriving something that many biology textbooks like to skip: the probability of a certain DNA molecule (base) remaining the same while it suffers changes both to and from the other 3 types of DNA molecules.

This sounds specificially biological, but as probably a good deal of you know, it can be applied to a ton of other situations: migrations in and out of cities, influx and outflux of liquids, growth and decay and lots more besides. DNA substitution is also nice to treat however.

However, I am stuck at a certain point, mainly that I am not getting the right answer, and I am definitely missing something, so if anybody could shine any light, especially in relation to my missteps, I'd appreciate it.

Ok, let's start. We have a DNA site which happens to be a "C", a cytosine molecule. Over time, the site changes into either of the other three DNA molecules, "A", "G", or "T". We want to calculate [itex]P_c(t)[/itex], which is the probability of the site being a "C" at time [itex]t[/itex]

Now, let's characterise a rate that we can use: we will say it is instantaneous, which is somewhat disconcerting in reality, because we'd be unable to count changes in a split instant of time, but we're in the world of theory right now, so it's possible to give it a symbol [itex]\alpha[/itex]. I already know the solution, and it makes pefect sense: it's

[itex]P_c(t)=\frac{1}{4} +\frac{3}{4} e^{-4 \alpha t}[/itex]

It make sense, because the [itex]P_c(t)[/itex] will eventually settle to a steady state [itex]\frac{1}{4}[/itex], but in the beginning the [itex]\frac{3}{4}[/itex] part will decrease exponentially with time. But, I want to derive this from (fairly) first principles.

So, we're going to observe a site for a certain unit of time, and we say we'll start at [itex]t = 0[/itex].

So we start at the beginning with our "C". What's [itex]P_c(t)[/itex] at [itex]t= 0[/itex]? Easy one:

[itex]P_c(0)=1[/itex]

Great, let's move on to our second time unit.

[itex]P_c(1)=1-3\alpha[/itex]

i.e. during this time, there's been "move" to the other bases, each at [itex]\alpha[/itex]. Let's move on

[itex]P_c(2) = (1-3 \alpha) P_c(1) + \alpha (1-P_c(1))[/itex]

Here we get the two main phenomena at work: we continue to lose chances of staying at "C" by [itex]3 \alpha[/itex], but the bases that now are not "C" will also suffer a rate of change back into "C" again. This second step allows us to generalise to any time point [itex]t[/itex] and a time advance [itex]\triangle t[/itex]. We must replace our [itex]\alpha[/itex] with [itex]\alpha \triangle t[/itex] to get

[itex]P_c(t + \triangle t) = (1-3 \alpha \triangle t) P_c(t) + \alpha \triangle t (1-P_c(t))[/itex]

which is

[itex]P_c(t + \triangle t) = P_c(t) - 4 \alpha \triangle t P_c(t) + \alpha \triangle t[/itex]

and also

[itex]\frac{P_c(t + \triangle t) - P_c(t)}{\triangle t} = \alpha - 4 \alpha P_c(t)[/itex]

So taking limits we get

[itex]\frac{d P_c(t)}{dt} = \alpha ( 1 - 4 P_c(t))[/itex]

And we can start gearing up to do an integration as we re-arrange:

[itex]\frac{d P_c(t)}{1 - 4 P_c(t)} = \alpha dt [/itex]

At this point, I'm going to drop the pseudo-authoritative tone, which I guess you noticed, and admit that I'm getting unsteady at this point because I'm unsure whether to go for indefinite integral or start apply some limits. However, there is time for a substitution before I make that nasty decision:

Our integral:

[itex]\int \frac{d P_c(t)}{1 - 4 P_c(t)} = \int \alpha dt [/itex]

Let [itex]Q = 1 -4 P_c(t)[/itex], so that

Let [itex]dQ = -4 dP_c(t)[/itex]

and [itex]dP_c(t) = - \frac{dQ}{4}[/itex]

which we apply to the above integral to get

[itex]- \frac{1}{4} \int \frac{dQ}{Q} = \int \alpha dt [/itex]

OK, time to do the dirty. I'm going to go for indefinite integrals and combine constant terms.

[itex]\ln |Q| = - 4 \alpha t + C [/itex]

which is

[itex]\ln |1-4 P_c(t)| = - 4 \alpha t + C [/itex]

So,

[itex]|1-4 P_c(t)| = e^{-4 \alpha t} + C [/itex]

and I move awkwardly ahead

[itex]4 P_c(t) = 1 - e^{-4 \alpha t} + C [/itex]

Initial condition:

[itex]P_c(0) = 1[/itex], so [itex]C = 4[/itex]

And so,

[itex]P_c(t) = \frac{1}{4} - \frac{1}{4} e^{-4 \alpha t} + 1 [/itex]

Which is not the right answer, though it would be if that final 1 was also multiplied by
[itex]e^{-4 \alpha t}[/itex]

But my suspect way of integrating has not given this.

Which leads me to my humble request for guidance on this.

Many thanks in advance!
 
Last edited:
Physics news on Phys.org
  • #2
Me again, whoops, while editting a post, I seem to have lost the maths notation, so I tediously repeat the whole post: let's hope it works and that I don't bore the teeth out of people:

re-rectification. No it came out properly. Thanks for reading.
 
  • #3
This board currently has a mildly annoying bug- if you edit a post the "LaTeX" will not automatically format. Fortunately, it is "mild"- just click on the "refresh" button on you internet reader and it will format. (Unless, of course, you have incorrect code.)
 
  • #4
Yep, that's true, an annoyance rather than a bug.

In relation to my derivation, it's drilling a little hole in my head, because it's only a small thing in the way of finshing it. I'm definitely scanning a lot of websites, but I'm getting no joy. Each time, I have to read over the same old integration basics, in the hope that somebody will drop in a the key insight.

Cheers.
 
  • #5
stabu said:
[itex]P_c(1)=1-3\alpha[/itex]

Explain that step.
 
  • #6
I don't understand the jump from:

ln| 1- 4Pc(t)|= -4at+ C

into |1-4Pc(t)|= e^(-4at)+C ;

Shouldn't it be:

from:

ln|1-4Pc(t)|=-4at+C ; raise both sides to e:

|1-4Pc(t)|=e^C *e^(-4at) ?

(Sorry, I have put of learning yet another version of Tex)
 
  • #7
Oh great, some replies and interest. Thanks guys.

Stephen Tashi, I'll reply to you first, first in explanatory words, and then using the general term. [itex]P_c(1)[/itex] represents the probability of of the site having a "C" after the very first unit time step. The site started as "C" to begin with, so during this single unit time, the rate change has been at work, imposing a migration to the other three possible bases or symbols: "A", "G" or "T" at a rate [itex]\alpha[/itex], for each. You could say that each of the other three bases try to pull the original "C" towards themselves at rate [itex]\alpha[/itex], so you have to multiply [itex]\alpha[/itex] by 3 to reflect this, and it must be a subtraction, because you are taking away from the original "C".

The general term (and sticking to our unit time steps) is:

[itex]P_c(t +1) = (1-3 \alpha) P_c(t) + \alpha (1-P_c(t))[/itex]

So if you set [itex]t = 0[/itex], you get:

[itex]P_c(1) = (1-3 \alpha) P_c(0) + \alpha (1-P_c(0))[/itex]

But [itex]P_c(0) = 1[/itex] because we started with a C, so that means

[itex]P_c(1)=1-3\alpha[/itex]

Bacle, you are exactly right and it's actually down to laziness on my part that I didn't say [itex]e^C[/itex]. When using indefinite integrals in this way I use capital [itex]C[/itex] (not be be confused in this case with the symbol "C", cystosine) almost as a placeholder, meaning "any constant value which is independent of the changing variables". Certainly [itex]C \neq e^C[/itex] but I continue to call it [itex]C[/itex] because of its role in the problem. It's changed value, sure, and technically the equations are incorrect, but I'm not interested in how [itex]C[/itex] evolves. I will look at it in due course, at the end, but in the middle of the derivation, I want to pay attention to the other terms.

If anybody thinks that is bad and / or erroneous, I'd be happy to mend my ways if I heard why.

In any case, using indefinite integrals doesn't fill my heart with unremitting joy either, so in the meantime, I've tried to use definite ones. This means deciding on the starting and ending states. Now, I'm a little rusty here, but I don't want there to be an fixed end state, I want it to be a variable. So I'm going to define [itex] \tau [/itex] as variable in a certain point of time [itex]t[/itex]. I hope I'm allowed get away with that. So picking up the argument again with this equation


[itex]\frac{d P_c(t)}{1 - 4 P_c(t)} = \alpha dt [/itex]

the right hand side will be

[itex]\int^\tau_0 \alpha dt [/itex]

which is easy and simply equals [itex]\alpha \tau[/itex] with no constant term.

On the left hand side, we will have

[itex]\int^{P_c(\tau)}_1 \frac{d P_c(t)}{1 - 4 P_c(t)} = \alpha dt [/itex]

because at [itex] t=0 [/itex], [itex]P_c(t) = 1[/itex]. Of course, we also carried out a substitution at this point, so I need to calculate these values for Q.

Because our substitution was [itex]Q = 1 -4 P_c(t)[/itex], then at [itex] t=0 [/itex], [itex]Q=-3[/itex], and when [itex]t = \tau[/itex],then [itex]Q = 1 -4 P_c(\tau)[/itex].

So, taking the right hand side as integrated already, I can write the integration equation as:

[itex]- \frac{1}{4} \int^{1 -4 P_c(\tau)}_{-3} \frac{dQ}{Q}[/itex] and integrate:

[itex]- \frac{1}{4} \ln |Q| |^{1 -4 P_c(\tau)}_{-3}[/itex]

Now the appearance of [itex]-3[/itex] on the lower bound looks threatening, but I'm going to be able to lean on the idea that I can simply use the absolute value, i.e. [itex]+ 3[/itex] when this is set against a logarithm. In a way, this felt almost too convenient and googling up this little detail came up with very few people questioning it, but the bigger problem is the upper bound, because it's a variable. Sometimes it's positive, other times it's negative, but I also want to lose the absolute value (the norm) operation, so I get stuck here, but headstrong as ever, I continue regardless and decide to make it disappear (gosh, I feel proud of myself):

[itex]- \frac{1}{4} ( \ln(1 -4 P_c(\tau)) -\ln(3) ) = \alpha \tau [/itex]

which can also be put as:

[itex]- \frac{1}{4} \ln(\frac{1 -4 P_c(\tau)}{3} = \alpha \tau [/itex]

which leads to

[itex]\ln\frac{1 -4 P_c(\tau)}{3} = - 4 \alpha \tau [/itex]

and

[itex]1 -4 P_c(\tau) = 3 e^{-4 \alpha \tau}[/itex]

So, I can say

[itex]4 P_c(\tau) = 1- 3 e^{-4 \alpha \tau}[/itex]

and so

[itex]P_c(\tau) = \frac{1}{4} - \frac{3}{4} e^{-4 \alpha \tau}[/itex]

which is almost the right answer except for the minus sign! So, it means I'm getting closer! In fact if, after the integration, when I got

[itex]- \frac{1}{4} ( \ln(1 -4 P_c(\tau)) -\ln(3) )= \alpha \tau [/itex]

I instead said

[itex]- \frac{1}{4} ( \ln(4 P_c(\tau) -1) -\ln(3) )= \alpha \tau [/itex]

i.e. changing [itex]4 P_c(\tau) -1[/itex] to [itex]1 - 4 P_c(\tau)[/itex]

I would get the the right answer, but that would appear to be cheating.

If anybody has any further questions or insights, I'd be very happy to hear them. Also I appreciate my posts are on the long side, so thank you for reading and try to follow it.
 
  • #8
stabu said:
Bacle, you are exactly right and it's actually down to laziness on my part that I didn't say [itex]e^C[/itex]. When using indefinite integrals in this way I use capital [itex]C[/itex] (not be be confused in this case with the symbol "C", cystosine) almost as a placeholder, meaning "any constant value which is independent of the changing variables". Certainly [itex]C \neq e^C[/itex] but I continue to call it [itex]C[/itex] because of its role in the problem. It's changed value, sure, and technically the equations are incorrect, but I'm not interested in how [itex]C[/itex] evolves. I will look at it in due course, at the end, but in the middle of the derivation, I want to pay attention to the other terms.

You misunderstood Bacle's point. When you exponentiate both sides of your equation, the resulting right hand side should be [itex]Ae^{-4\alpha t}[/itex], where A = e^C. The right hand side that you wrote down was [itex]e^{-4\alpha t} + C[/itex], which is not the same. This is why your first attempt was incorrect.

For your second attempt, you do need to be careful when dealing with the absolute value sign, but I wouldn't call changing the order of the terms in the absolute value sign cheating: you know the absolute value has two possible results, and only one of them gives you the correct initial condition. The other gives [itex]P_c(0) = -1/2[/itex].
 
  • #9
OK, many thanks Mute, because that seems to clear it up.

Yes. I now see my error in the first attempt, and how correcting it gives the answer I wanted. That was a lame answer I gave Bacle! I need to be more careful there.

Having to use the absolute value when applying the logarithm is critical for this right answer. I'm going to try and get a more intuitive hold on it, because it doesn't feel quite right.

In amy case, I appear to have got there. Many thanks for all your help!
 
  • #10
stabu said:
Oh great, some replies and interest. Thanks guys.

Stephen Tashi, I'll reply to you first, first in explanatory words, and then using the general term. [itex]P_c(1)[/itex] represents the probability of of the site having a "C" after the very first unit time step. The site started as "C" to begin with, so during this single unit time, the rate change has been at work, imposing a migration to the other three possible bases or symbols: "A", "G" or "T" at a rate [itex]\alpha[/itex], for each. You could say that each of the other three bases try to pull the original "C" towards themselves at rate [itex]\alpha[/itex], so you have to multiply [itex]\alpha[/itex] by 3 to reflect this, and it must be a subtraction, because you are taking away from the original "C".

That doesn't give a mathematical explanation of why [itex] P_C(t) = \frac{1}{4} + \frac{3}{4} e^{-4\alpha t} [/itex] implies [itex] P_C(1) = 1 - 3\alpha [/itex]. You are apparently using the approximation [itex] e^{x} \approx 1 + x [/itex] for small values of [itex] x [/itex].
 
  • #11
Stephen Tashi said:
That doesn't give a mathematical explanation of why [itex] P_C(t) = \frac{1}{4} + \frac{3}{4} e^{-4\alpha t} [/itex] implies [itex] P_C(1) = 1 - 3\alpha [/itex]. You are apparently using the approximation [itex] e^{x} \approx 1 + x [/itex] for small values of [itex] x [/itex].

"Pc(1) = 1 - 3α" is really "Pc(Δt) = 1 - 3αΔt". Once the general difference equation for Pc(n) was obtained, the timestep was made explicit and taken to zero, giving the differential equation. So, "Pc(1) = 1 - 3α" is really equivalent to saying [itex]P_c(dt) = 1/4 + 3/4e^{-\alpha t} \approx 1 - 3\alpha dt[/itex].
 

FAQ: Close to great derivation: dna substitution

What is a DNA substitution?

A DNA substitution, also known as a point mutation, is a type of genetic mutation where a single nucleotide base is replaced by another in the DNA sequence. This can result in changes to the amino acid sequence during protein synthesis, potentially leading to changes in the structure and function of the protein.

How does DNA substitution contribute to evolution?

DNA substitution is one of the main mechanisms of genetic variation, which is essential for evolution to occur. As mutations accumulate over time, they can lead to changes in the genetic makeup of a population and ultimately drive the process of natural selection.

What are the different types of DNA substitutions?

There are four main types of DNA substitutions: silent, missense, nonsense, and frameshift. A silent substitution results in no change to the amino acid sequence, while missense, nonsense, and frameshift substitutions can lead to changes in the protein sequence and potentially alter its structure and function.

How is DNA substitution detected in the laboratory?

DNA substitution can be detected through various techniques, such as DNA sequencing, polymerase chain reaction (PCR), and gel electrophoresis. These methods allow scientists to analyze the DNA sequence and identify any changes or mutations that may have occurred.

Can DNA substitution cause genetic disorders?

Yes, DNA substitution can potentially cause genetic disorders if the mutation occurs in a gene that is responsible for a critical biological process. For example, a frameshift substitution in the CFTR gene can lead to cystic fibrosis, a genetic disorder that affects the lungs and digestive system.

Similar threads

Back
Top