# Biomod/2011/Caltech/DeoxyriboNucleicAwesome/Random Walk Formula

(Difference between revisions)
 Revision as of 22:55, 8 October 2011 (view source) (→Explicit Expression of Formulae)← Previous diff Current revision (09:20, 2 November 2011) (view source) (→Cumulative Function) (10 intermediate revisions not shown.) Line 51: Line 51: ==Parameter Estimation== ==Parameter Estimation== - Possible positions of walkers on the origami can be grouped into two categories, either in the center of rectangles (Figure 1, Line 2) or at the sides (Figure 1, Lines 1&3), and the values of $p\!$, $q\!$ and $r\!$ are different in each category. Hence there is a need to find out the distribution of walkers in these two categories in order to estimate $p\!$, $q\!$ and $r\!$. Due to the nature of our design, each walker has a probability of 50% to stay at its original track after one branch migration. Assuming no reflecting boundaries, when the walker is in the center (Figure 1, Line 2), the probability of staying in Line 2 after one branch migration is $\frac {1}{2}+\frac{1}{2} \times \frac{1}{2}=\frac{3}{4}$, while the probability of going to Lines 1 or 3 is $1- \frac{3}{4}=\frac{1}{4}$. Similarly, when it is in Lines 1 or 3, the probability of staying in the same line after one branch migration is $\frac{1}{2}+\frac{1}{2} \times \frac{2}{3}=\frac{5}{6}$ while the probability of going to Line 2 is $1- \frac{5}{6}=\frac{1}{6}$. Here we assume no reflecting barrier in the system. The distribution of relative positions of walkers can be modeled using Markov chain as follows. + Possible positions of walkers on the origami can be grouped into two categories, either in the center of rectangles (Figure 1, Line 2) or at the sides (Figure 1, Lines 1&3), and the values of $p\!$, $q\!$ and $r\!$ are different in each category. Hence there is a need to find out the distribution of walkers in these two categories in order to estimate $p\!$, $q\!$ and $r\!$. Assuming no reflecting boundaries, when the walker is in the center (Figure 1, Line 2), the probability of staying in Line 2 after one branch migration is $\frac {1}{2}\!$, while the probability of going to Lines 1 or 3 is $\frac{1}{2}\!$. Similarly, when it is in Lines 1 or 3, the probability of staying in the same line after one branch migration is $\frac{2}{3}\!$ while the probability of going to Line 2 is $\frac{1}{3}\!$. Here we assume no reflecting barrier in the system. The distribution of relative positions of walkers can be modeled using Markov chain as follows. - Let $v(t) = (a, 1–a)\!$ denote the proportion of walkers in Line 2 $(a)\!$ and Lines 1&3 $(1–a)\!$ after $t\!$ branch migrations. Since all the walkers are initially planted in the center, $v(0) = (1, 0)\!$. Define the transition matrix + Let $v(t) = (a, 1-a)\!$ denote the proportion of walkers in Line 2 $(a)$ and Lines 1&3 $(1-a)$ after $t\!$ branch migrations. Since all the walkers are initially planted in the center, $v(0) = (1, 0)\!$. Define the transition matrix
$M = \begin{pmatrix} [itex] M = \begin{pmatrix} - 3/4 & 1/4 \\ + 1/2 & 1/2 \\ - 1/6 & 5/6 + 1/3 & 2/3 \end{pmatrix}. \!$
\end{pmatrix}. \![/itex]
Line 63: Line 63:
$v(t)=v(0). \underbrace{M.M.M...M}_{t} \!$
$v(t)=v(0). \underbrace{M.M.M...M}_{t} \!$
- It was found that $\lim_{t \to \infty} v(t)= (0.4,0.6).$Hence at the stable state, 40% of the walkers are in Line 2 while 60% are in Lines 1 or 3. Since $v(8) = (0.408,0.592)\!$, the distribution of relative positions of walkers on the origami stabilizes after approximately 8 branch migrations. + It was found that $\lim_{t \to \infty} v(t)= (0.4,0.6).$Hence at the stable state, 40% of the walkers are in Line 2 while 60% are in Lines 1 or 3. Since $v(4) = v(4) = (0.40007,0.59993)\!$, the distribution of relative positions of walkers on the origami stabilizes after approximately 4 branch migrations. The overall probabilities $p, q, r, \alpha,\beta\!$ can thus be calculated (Table 1). The overall probabilities $p, q, r, \alpha,\beta\!$ can thus be calculated (Table 1). Line 77: Line 77: !width="120"|$\beta\!$ !width="120"|$\beta\!$ |- |- - || Walkers at the center (Line 2) (40%) || $\frac{1}{8}$|| $\frac{1}{8}$|| $\frac{3}{4}$|| $\frac{5}{6}$|| $\frac{1}{6}$ + || Walkers at the center (Line 2) (40%) || $\frac{1}{4}$|| $\frac{1}{4}$|| $\frac{1}{2}$|| $\frac{2}{3}$|| $\frac{1}{3}$ |- |- - || Walkers at the sides (Lines 1 and 3) (60%) || $\frac{1}{6}$|| $\frac{1}{6}$|| $\frac{2}{3}$|| $\frac{3}{4}$|| $\frac{1}{4}$ + || Walkers at the sides (Lines 1 and 3) (60%) || $\frac{1}{3}$|| $\frac{1}{3}$|| $\frac{1}{3}$|| $\frac{1}{2}$|| $\frac{1}{2}$ |- |- - || Overall Probability|| $\frac{3}{20}$|| $\frac{3}{20}$|| $\frac{7}{10}$|| $\frac{47}{60}$|| $\frac{13}{60}$ + || Overall Probability|| $\frac{3}{10}$|| $\frac{3}{10}$|| $\frac{2}{5}$|| $\frac{17}{30}$|| $\frac{13}{30}$ |} |} Line 94: Line 94: $SP10: h(t;12)= \begin{cases} 0, 0\leqslant t < 12\\ [itex]SP10: h(t;12)= \begin{cases} 0, 0\leqslant t < 12\\ - \frac{0.0032}{1.0025^{t+1}} - \frac{0.0097}{1.0226^{t+1}} + \frac{0.0166}{1.0639^{t+1}} - \frac{0.02407}{1.1283^{t+1}} + \frac{0.0323}{1.2189^{t+1}} -\frac{0.0410}{1.3387^{t+1}} \\ \quad +\frac{0.0494}{1.4908^{t+1}} -\frac{0.0556}{1.6753^{t+1}} +\frac{0.0565}{1.8863^{t+1}} -\frac{0.0482}{2.1070^{t+1}} +\frac{0.0301}{2.3071^{t+1}} -\frac{0.0094}{2.4487^{t+1}} + \frac{8.4287}{19.6975^{t+1}} - \frac{0.6389}{7.5119^{t+1}} + \frac{0.0938}{5.4569^{t+1}} + \frac{0.0064}{1.0050^{t+1}} - \frac{0.0202}{1.0463^{t+1}} + \frac{0.0378}{1.1365^{t+1}} \\ \quad - \frac{0.0634}{1.2945^{t+1}} + \frac{0.1058}{1.5602^{t+1}} - \frac{0.1876}{2.0242^{t+1}} + \frac{0.3811}{2.9273^{t+1}} - \frac{1.0555}{5.1593^{t+1}} + \frac{8.7388}{16.5916^{t+1}} ,t \geqslant 12\end{cases}$ ,t \geqslant 12\end{cases}[/itex] $SP22: h(t;8)= \begin{cases} 0, 0\leqslant t < 8\\ [itex]SP22: h(t;8)= \begin{cases} 0, 0\leqslant t < 8\\ - \frac{0.0070}{1.0055^{t+1}} -\frac{0.0218}{1.0507^{t+1}} +\frac{0.0383}{1.1458^{t+1}} -\frac{0.0569}{1.2998^{t+1}} +\frac{0.0751}{1.5222^{t+1}} -\frac{0.0838}{1.8117^{t+1}} +\frac{0.0677}{2.1327^{t+1}} -\frac{0.0257}{2.3970^{t+1}} + -\frac{7.6854}{16.0673^{t+1}} + \frac{0.3265}{6.0382^{t+1}} +\frac{0.0143}{1.0111^{t+1}} -\frac{0.0484}{1.1067^{t+1}} +\frac{0.1051}{1.3413^{t+1}} -\frac{0.2323}{1.8564^{t+1}} +\frac{0.6577}{3.1862^{t+1}} -\frac{4.7287}{9.6237^{t+1}} ,t \geqslant 8\end{cases}$ ,t \geqslant 8\end{cases}[/itex] Line 105: Line 105: $SP34: h(t;4)= \begin{cases} 0, 0\leqslant t < 4\\ [itex]SP34: h(t;4)= \begin{cases} 0, 0\leqslant t < 4\\ - \frac{0.0272}{1.0212^{t+1}} -\frac{0.0893}{1.2034^{t+1}} +\frac{0.1522}{1.6168^{t+1}} -\frac{0.1094}{2.1994^{t+1}} + \frac{5.4999}{11.0280^{t+1}} + \frac{0.05677}{1.0434^{t+1}} - \frac{0.2816}{1.5107^{t+1}} + \frac{2.0738}{4.2196^{t+1}} ,t \geqslant 4\end{cases}$ ,t \geqslant 4\end{cases}[/itex] + + == Cumulative Function== + The cumulative density function of $h(t;i)\!$ can be computed and used to fit with SPEX experimental data. +
$C(t;i)= \sum_{t=0}^\infty h(t;i)\!$
+ + A plot of  $C(t;i)\!$ verses $t\!$ can be used as a good model to fit the experimental data (Figure 3), where $C(t;i)$ is the proportion of walkers that reach the walker goal and $t\!$  is the number of steps needed. It can be found that the number of steps needed for half of the walkers to reach WG decreases as we move SP nearer to the WG. + + [[Image:Cumulative_RW.PNG|thumb|center|800px|Figure 3. A plot of the cumulative proportion of walkers reaching the walker goal versus number of steps. Blue, SP10. Green, SP22. Red, SP34. SP10 is the longest track, followed by SP22, while SP34 is the shortest.]] + + ==Number of Branch Migrations per Step== + To further study the validity of this model, the number of branch migrations per step was calculated in order to obtain the average rate of branch migration. + Let $P(x)\!$ denote the probability of walking to the adjacent column after $x\!$ branch migrations. + + For walkers at the center line(Line 2), + +
$P(x) =\begin{cases} \frac {1} {2} \times ({\frac{2}{3}})^{\frac{x}{2}} \times ({\frac{1}{4}})^{\frac{x-2}{2}}, x=2,4,6,8,...\\ + \frac {1}{2} \times ({\frac {2}{3}})^{\frac{x-1}{2}} \times ({\frac{1}{4}})^{\frac {x-1}{2}},x=1,3,5,7,...\end{cases} \!$
+ + + For walkers at the sides (Lines 1 or 3), + +
$P(x) =\begin{cases} \frac {2} {3} \times ({\frac{1}{4}})^{\frac{x}{2}} \times ({\frac{2}{3}})^{\frac{x-2}{2}}, x=2,4,6,8,...\\ + \frac {2}{3} \times ({\frac {1}{4}})^{\frac{x-1}{2}} \times ({\frac{2}{3}})^{\frac {x-1}{2}},x=1,3,5,7,...\end{cases} \!$
+ + + The expected number of branch migrations in each case per step can hence be calculated as + +
$\sum_{x=1}^\infty xP(x),x=1,2,3,4,... \!$
+ + It follows that the expected number of branch migrations per step is $\frac{9}{5}\!$ and $\frac{8}{5}$ for walkers at the center and sides, respectively. + + Taking into account that 40% of walkers are in Line 2 while 60% are in Lines 1 and 3, the overall number of branch migrations per step is thus +
$40% \times \frac{9}{5} + 60% \times \frac{8}{5} = 1.68$
=References= =References=

## Current revision

Tuesday, May 5, 2015

Home

Members

Project

Protocols

Progress

Discussion

References

# Random Walk Formula

## Modeling Idea

The random walk on DNA origami can be modeled as one dimensional random walk with a reflecting and an absorbing barrier (Figure 1). Tracks in the same column are grouped into rectangles, and each step is defined as walking from one rectangle to an adjacent one. We are interested in expressing the probability of reaching the walker goal as a function of the number of steps taken.

Figure 1. Modeling the random walk on DNA origami as one dimensional random walk. Cyan, markers. Blue, Track 1. Red, Track 2. White, DNA staples only. Five-pointed star, walker goal. Each step is modeled as walking from one rectangle to an adjacent one. SP 10, 22, 34 indicate different starting positions. Note that in the cases of SP22 and SP34, there are no tracks to the left of starting positions.

Consider a random walk on a line segment with N+1 sites denoted by integers (0,1,2, … , N) (Figure 2). The walker starts random walk at site i, 0 < i ≤ N. Let p be the probability for the walker to move one segment to the left, q be the probability for the walker to move one segment to the right. The probability for the walker to stay at a particular site for the next unit time is thus r = 1 – p – q. When the walker reaches site N, the partially reflecting barrier, it has a probability of β to be reflected back to site N – 1, and a probability of α = 1 – β to stay at site N in the next unit time. When reaching site 0, the absorbing barrier, it stays there for 100% probability and the random walk ends.

Figure 2. A line segment with N+1 distinct sites. The walker starts the random walk at i and is reflected at N with a probability of β. The random walk ends once it reaches site 0.

## General Approach

Two assumptions are made in our case. 1) The DNA origami is immune to any free floating walkers in solution, meaning that free floating walkers cannot bind to an origami and starts random walking; 2) walkers are immediately absorbed when reaching the rectangles with WGs, despite the presence of two TR2 in the same rectangle.

Let $h(t;i)\!$ be the probability that the walker reaches 0 for the first time after $t\!$ steps given its starting position being $i\!$. $h(t;i)\!$ obeys the following difference equation

$h(t;i) = q·h(t-1;i-1) + r·h(t-1;i) + p·h(t-1; i + 1)\!$

for $t = 1,2,3,...\!$ and $i = 1,2,3,...,N-1\!$. We define $h(t;0)= 1\!$ $if\!$ $t = 0\!$; $h(t;0)= 0\!$ $if\!$ $t > 0\!$. Also, $h(t;i) = 0\!$ $for\!$ $t < i\!$.

When $i = N\!$ we have

$h(t;N) = αh(t-1;N)+ βh(t-1; N-1) \!$

The generating function for $h(t;i)\!$ can be expressed as

$H_i (s) = \sum_{t=0}^\infty h(t;1)s^t,|s| <1 \!$

Following Netus (1963), the explicit expression of the generating function is

$H_i (s) =\begin{cases} \frac {q^i s^i T_i (s)} {T_0 (s)}, 0\leqslant i < N\\ \frac {\beta q^{N-1} s^N (\lambda_1 - \lambda_2)} {T_0 (s)},i=N\end{cases}\!$

where

$T_i (s) = (1-\alpha s)(\lambda_1 ^{N-i}-\lambda_2 ^{N-i})-\beta p s^2 (\lambda_1 ^{N-i-1}-\lambda_2 ^{N-i-1})\!$

and

$\lambda_{1,2} = \frac {1} {2} ( \pm \sqrt{{(1-rs)}^2-4 p q s^2} +1-rs ).\!$

The explicit expression of $h(t;i)\!$ can thus be deduced from $H_i (s)\!$ using partial fraction expansion (Feller, 1971).

Assume that $T_0 (s)\!$ has $k\!$ distinct roots $s_1,s_2,..., s_k . H_i (s)\!$ can then be decomposed into partial fractions

$H_i (s) = \frac {\rho_1} {s-s_1} + \frac{\rho_2}{s-s_2} +...+ \frac {\rho_k}{s-s_k} \!$

where

$\rho_k = \frac {-q^i {s_m}^i T_i (S_m)}{{T_0}^' (s_m)}, m\leqslant k \!$

It follows that

$h(t;i) = \sum_{m=1}^k \frac {\rho_m}{{s_m}^{t+1}} \!$

$h(t;N)\!$ can be similarly deduced from $H_N (s)\!$ using the same method.

## Parameter Estimation

Possible positions of walkers on the origami can be grouped into two categories, either in the center of rectangles (Figure 1, Line 2) or at the sides (Figure 1, Lines 1&3), and the values of $p\!$, $q\!$ and $r\!$ are different in each category. Hence there is a need to find out the distribution of walkers in these two categories in order to estimate $p\!$, $q\!$ and $r\!$. Assuming no reflecting boundaries, when the walker is in the center (Figure 1, Line 2), the probability of staying in Line 2 after one branch migration is $\frac {1}{2}\!$, while the probability of going to Lines 1 or 3 is $\frac{1}{2}\!$. Similarly, when it is in Lines 1 or 3, the probability of staying in the same line after one branch migration is $\frac{2}{3}\!$ while the probability of going to Line 2 is $\frac{1}{3}\!$. Here we assume no reflecting barrier in the system. The distribution of relative positions of walkers can be modeled using Markov chain as follows.

Let $v(t) = (a, 1-a)\!$ denote the proportion of walkers in Line 2 (a) and Lines 1&3 (1 − a) after $t\!$ branch migrations. Since all the walkers are initially planted in the center, $v(0) = (1, 0)\!$. Define the transition matrix

$M = \begin{pmatrix} 1/2 & 1/2 \\ 1/3 & 2/3 \end{pmatrix}. \!$

It follows that

$v(t)=v(0). \underbrace{M.M.M...M}_{t} \!$

It was found that $\lim_{t \to \infty} v(t)= (0.4,0.6).$Hence at the stable state, 40% of the walkers are in Line 2 while 60% are in Lines 1 or 3. Since $v(4) = v(4) = (0.40007,0.59993)\!$, the distribution of relative positions of walkers on the origami stabilizes after approximately 4 branch migrations.

The overall probabilities $p, q, r, \alpha,\beta\!$ can thus be calculated (Table 1).

Table 1. Calculation of overall probabilities used in random walk modeling.
$p\!$
$q\!$ $r\!$ $\alpha\!$ $\beta\!$
Walkers at the center (Line 2) (40%) $\frac{1}{4}$ $\frac{1}{4}$ $\frac{1}{2}$ $\frac{2}{3}$ $\frac{1}{3}$
Walkers at the sides (Lines 1 and 3) (60%) $\frac{1}{3}$ $\frac{1}{3}$ $\frac{1}{3}$ $\frac{1}{2}$ $\frac{1}{2}$
Overall Probability $\frac{3}{10}$ $\frac{3}{10}$ $\frac{2}{5}$ $\frac{17}{30}$ $\frac{13}{30}$

Determination of the overall probabilities allow us to derive the explicit probability distribution functions for SP10, 22 and 34.

## Explicit Expression of Formulae

The explicit expression for the probability of reaching the walker goal (h(t;i)) as a function of the number of steps taken (t) can then be deduced using the general approach and the estimated parameters.

$SP10: h(t;12)= \begin{cases} 0, 0\leqslant t < 12\\ \frac{8.4287}{19.6975^{t+1}} - \frac{0.6389}{7.5119^{t+1}} + \frac{0.0938}{5.4569^{t+1}} + \frac{0.0064}{1.0050^{t+1}} - \frac{0.0202}{1.0463^{t+1}} + \frac{0.0378}{1.1365^{t+1}} \\ \quad - \frac{0.0634}{1.2945^{t+1}} + \frac{0.1058}{1.5602^{t+1}} - \frac{0.1876}{2.0242^{t+1}} + \frac{0.3811}{2.9273^{t+1}} - \frac{1.0555}{5.1593^{t+1}} + \frac{8.7388}{16.5916^{t+1}} ,t \geqslant 12\end{cases}$

$SP22: h(t;8)= \begin{cases} 0, 0\leqslant t < 8\\ -\frac{7.6854}{16.0673^{t+1}} + \frac{0.3265}{6.0382^{t+1}} +\frac{0.0143}{1.0111^{t+1}} -\frac{0.0484}{1.1067^{t+1}} +\frac{0.1051}{1.3413^{t+1}} -\frac{0.2323}{1.8564^{t+1}} +\frac{0.6577}{3.1862^{t+1}} -\frac{4.7287}{9.6237^{t+1}} ,t \geqslant 8\end{cases}$

$SP34: h(t;4)= \begin{cases} 0, 0\leqslant t < 4\\ \frac{5.4999}{11.0280^{t+1}} + \frac{0.05677}{1.0434^{t+1}} - \frac{0.2816}{1.5107^{t+1}} + \frac{2.0738}{4.2196^{t+1}} ,t \geqslant 4\end{cases}$

## Cumulative Function

The cumulative density function of $h(t;i)\!$ can be computed and used to fit with SPEX experimental data.

$C(t;i)= \sum_{t=0}^\infty h(t;i)\!$

A plot of $C(t;i)\!$ verses $t\!$ can be used as a good model to fit the experimental data (Figure 3), where C(t;i) is the proportion of walkers that reach the walker goal and $t\!$ is the number of steps needed. It can be found that the number of steps needed for half of the walkers to reach WG decreases as we move SP nearer to the WG.

Figure 3. A plot of the cumulative proportion of walkers reaching the walker goal versus number of steps. Blue, SP10. Green, SP22. Red, SP34. SP10 is the longest track, followed by SP22, while SP34 is the shortest.

## Number of Branch Migrations per Step

To further study the validity of this model, the number of branch migrations per step was calculated in order to obtain the average rate of branch migration. Let $P(x)\!$ denote the probability of walking to the adjacent column after $x\!$ branch migrations.

For walkers at the center line(Line 2),

$P(x) =\begin{cases} \frac {1} {2} \times ({\frac{2}{3}})^{\frac{x}{2}} \times ({\frac{1}{4}})^{\frac{x-2}{2}}, x=2,4,6,8,...\\ \frac {1}{2} \times ({\frac {2}{3}})^{\frac{x-1}{2}} \times ({\frac{1}{4}})^{\frac {x-1}{2}},x=1,3,5,7,...\end{cases} \!$

For walkers at the sides (Lines 1 or 3),

$P(x) =\begin{cases} \frac {2} {3} \times ({\frac{1}{4}})^{\frac{x}{2}} \times ({\frac{2}{3}})^{\frac{x-2}{2}}, x=2,4,6,8,...\\ \frac {2}{3} \times ({\frac {1}{4}})^{\frac{x-1}{2}} \times ({\frac{2}{3}})^{\frac {x-1}{2}},x=1,3,5,7,...\end{cases} \!$

The expected number of branch migrations in each case per step can hence be calculated as

$\sum_{x=1}^\infty xP(x),x=1,2,3,4,... \!$

It follows that the expected number of branch migrations per step is $\frac{9}{5}\!$ and $\frac{8}{5}$ for walkers at the center and sides, respectively.

Taking into account that 40% of walkers are in Line 2 while 60% are in Lines 1 and 3, the overall number of branch migrations per step is thus

$40% \times \frac{9}{5} + 60% \times \frac{8}{5} = 1.68$

# References

• Ahmed El-Shehawy (1992). On absorption probabilities for a random walk between two different barriers. Annals De La Faculte Des Sciences De Toulouse, 1(1), 95-103.
• Feller, W. (1971). An introduction to probability theory and its applications.
• Netus, M. (1963). Absorption probabilities for a random walk between a reflecting and an absorbing barrier. Bull. Soc. Math. Belgique, 15, 253-258.