Docsity

Markov Chain in Genomics, Essays (university) of Genomics

Toggle sidebar
bg1
Markov Chain (1)
•Markov chains are able to model local correlations
among nucleotides.
•Markov chain is a process defined by a set of states
(in this case the symbols of an alphabet) and by a
transition probability from one state to the next. The
transition probabilities are organized in the transition
matrix T .
•The trajectory of the process through the state space
defines a sequence
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download Markov Chain in Genomics and more Essays (university) Genomics in PDF only on Docsity!

Markov Chain (1)

  • Markov chains are able to model local correlations among nucleotides.
  • Markov chain is a process defined by a set of states (in this case the symbols of an alphabet) and by a transition probability from one state to the next. The transition probabilities are organized in the transition matrix T.
  • The trajectory of the process through the state space defines a sequence

Markov Chain (2)

  • The figure shows that, starting at any one of the four nucleotides, the probability of the next nucleotide in the sequence is determined by the current state.
  • If we start at G, the probabilities of any of the four other nucleotides appearing next are given by pGA , pGC , pGG , and pGT.
  • Moving to another nucleotide state means that there are new transition probabilities: if we moved to state A, these would be pAA , pAC , pAG , and pAT. In this manner, a Markov chain defines a DNA sequence.
  • All of the transition probabilities are given by the matrix T , and the probability for the

start state is given by π = ( πA, πC, πG, πT ), again with the obvious normalization

constraint:

The Markov model therefore no longer assumes that the symbols are independent, and short-range correlations can be captured (if the transition probabilities are all 0_._ 25, we are again back at a multinomial model).

  • The entries in the transition matrix are defined formally as follows:
  • This says that the probability of going from state x to state y is equivalent to the conditional probability of seeing state y given that it was preceded by state x.
  • We generally define the probability of an entire sequence as a joint probability:
  • The computation of this probability can be greatly simplified when we can factorize it. In the case of multinomial models, the factorization is obvious:
  • ; for Markov chains (of order 1) it is only slightly more complicated: or

where π ( s

1

= x ) represents the probability of seeing symbol x in position s 1. In other

words, we exploit the fact that the probability of a symbol depends only on the previous

one to simplify the computation of the joint probability of the entire sequence.

Annotating a genome: statistical sequence analysis (1)

  • Base composition. One of the most fundamental properties of a genome sequence is its base composition, the proportion of A, G, C, and T nucleotides present.
  • For H. influenzae , we can easily count the number of each type of base and divide by the total length of the genome (performing both operations on only one strand of the DNA sequence) to obtain the frequency of each base.
  • Table 1.2 shows the number of times each base appears in the genome , and its relative frequency (the total length, L , of the H. influenzae genomes is 1 830 138 bp). The complementary sequence: T = 0_._ 3102, G = 0_._ 1916, C = 0_._ 1898, A = 0_._ 3083

Annotating a genome: statistical sequence analysis (3)

  • In addition to the global base composition of a genome, it is of interest to consider local fluctuations in the frequencies of nucleotides across the sequence.
  • We can measure local base composition by sliding a window of size k along a chromosome, measuring the frequency of each base in the window, and assigning these values to the central position of the window.
  • This produces a vector of length L − k + 1 that can be plotted, as seen in Figures 1.2 and 1.3 (with window sizes 90 000 bp and 20 000 bp, respectively).

Annotating a genome: statistical sequence analysis (4)

  • Smaller window sizes reveal a higher variance in base composition, and larger windows may miss small regions with different base composition, so a trade-off is inherent in choosing k.
  • Both extremes may hide interesting patterns, and hence some exploration is necessary when choosing k.
  • There is clearly quite a lot of variance in base composition along the genome of H. influenzae. This variation highlights a first important violation of the assumption of the multinomial model that nucleotides are drawn from an i.i.d. (independent and identically distributed) probability distribution. This distribution clearly changes along the chromosome.
  • Based on this statistical analysis, various other analyses can be performed: for example we may be interested in identifying positions in the sequence where the base composition changes, or in the variation of the joint frequency of some class of nucleotides (C + G vs. A
    • T), and so on.
  • We will also examine the frequency of dimers (pairs of letters, such as ‘AT’) and other short DNA words.

GC content (1)

  • The analysis of frequencies of the four nucleotides performed above seems quite natural, but in fact is overly complex for most biological needs.
  • What most papers report (and is all that is generally necessary) is the aggregate frequencies for C and G (called GC content ) versus the aggregate frequencies for A and T ( AT content ).
  • Given that these two quantities are required to always sum to 1, only the GC content is typically reported.
  • The motivation for reporting simply the GC content is that – due to a number of chemical reasons – the content of G and C in a genome is often very similar, as is the content of A and T.
  • In this way, only one value needs to be reported instead of four. Looking back at Table 1.2 we can see that this is exactly the case in the H. influenzae genome.

GC content (3)

  • Because of this, an analysis of GC content can be used to detect foreign genetic

material that has been inserted into a genome by identifying locations where this

content is different from the genomic average.

  • It is indeed well known that a species may acquire subsequences from other

organisms – such as viruses – in a phenomenon known as horizontal gene

transfer ➔ After completing each bacterial genome sequence, researchers look

for horizontally acquired genes, and do so by scanning the sequence for regions

of atypical base composition.

  • As an example, the H. influenzae genome contains a 30Kb region of unusual GC

content 1.56 Mb into the genome (positions in circular chromosomes are

generally given relative to the site where DNA replication starts during cell

division).

  • We can see this region by plotting the GC content landscape of the H. influenzae genome, as seen in Figure 1.2, towards the right end of the plot.

GC content (4)

  • Examining that plot, we see that there is a short stretch of DNA from

approximately 1.56 Mb to 1.59 Mb with a highly different GC content than

the rest of the genome.

  • This stretch is attributed to an ancient insertion of viral DNA into the H.

influenzae genome. Further analysis could reveal the identity of these alien

sequences and their most likely origin.

  • A natural next step for this kind of analysis is to have a method to

automatically detect regions with statistical properties that are much

different from the average, or that can define the boundaries between

very different regions. We call this class of methods change point analysis.

Change point analysis (2)

• Of course setting this threshold is a statistical problem, as is the

size of the window used.

• Both have to do with the probability of finding variation in

random data, a question of hypothesis testing.

• For now, we will just give a simple example where the change

point in GC content is quite obvious without the need for a

statistical analysis.

k-mer frequency and motif bias (1)

  • Another simple and important property of a genome to be measured is the frequency of all nucleotide words of length 2 ( dinucleotides or dimers ), or higher ( trimers, k - mers ).
  • We will also consider the algorithmic and statistical problems associated with finding unusual k - mers for small to moderate values of k (between 1 and 15).
  • We define “unusual” k - mers as any words that appear more or less often than is expected. Bias in the number or position of these words can reveal important information about their function.

k-mer frequency and motif bias (2)

  • We count k - mers by again looking at only one strand of the genome.
  • For a window of size k , we move along the sequence one base at a time – in an overlapping manner – and record every k - mer that we observe.
  • This means that there are L − k + 1 possible k - mers in a sequence of length L (e.g. L − 1 dimers in a sequence of length L ).