码迷,mamicode.com
首页 > 其他好文 > 详细

De Bruijn 图--I

时间:2014-05-23 09:35:09      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   c   ext   http   

意外发现的文章,等忙完这阵子,准备全都翻译出来!

==============================================

 原作者文章链接:http://www.homolog.us/blogs/blog/2011/07/28/de-bruijn-graphs-i/

De Bruijn graphs – I

New algorithms for short read assembly (categories B and D) often use de Bruijn graphs to store and represent sequence data. What is a de Bruijn graph and why is it so popular for analyzing short read sequences? We will explain the concept here.

De Bruijn graph is an efficient way to represent a sequence in terms of its k-mer components. Although de Bruijn graphs can be used for a broad range of problems, our discussion will be limited to nucleotide sequences. Most papers talk about constructing de Bruijn graphs from short reads and derive the genome sequence from the de Bruijn graph. For simplicity, here we will first introduce de Bruijn graph of a genome, and then explain how short reads fit into the picture.

A de Bruijn graph can be constructed for any sequence, short or long. Here is a simple example –

bubuko.com,布布扣

In the above example, the sequence ATGGAAGTCGCGGAATC is split into overlapping K-mers (K=7), and a directed graph is constructed with those 7-mers as nodes. Edges are drawn between 7-mers adjacent on the original sequence. This method of construction also ensures that connected nodes have overlaps of 6 (=K-1) nucleotides.

The above example is simple, because none of the 7-mers repeated within the original sequence. In the next example, we introduce some repetition. The 5′-most 7-mer in this example is identical to the 3′-most 7-mer (both marked in blue). The de Bruijn graph forms a loop in this case.

bubuko.com,布布扣

Although the nodes displayed in the above examples did not show sequences for both strands, in reality, each node is double-stranded as shown below –

bubuko.com,布布扣

In the above example, 3′-most 7-mer is the reverse complement of the 5′-most 7-mer. The links in the double-stranded de Bruijn graph were constructed accordingly.

The steps shown above can be repeated to construct de Bruijn graph of a large genome of any size. We note that even if a genome has 2 separate chromosomes, the de Bruijn graphs may not remain separate, if those chromosomes have overlapping K-mers as shown below.

bubuko.com,布布扣

All of the above examples considered K=7, but K can be any small or big integer. At its lowest extreme, K can be 1. However, a K=1 de Bruijn graph is not very useful as you can see from the following figure.

bubuko.com,布布扣

The above discussion introduces de Bruijn graphs for our purpose. Why they are so popular for genome assembly programs will be explained in the following post. Before closing, we will note few more points about de Bruijn graphs that will be helpful in our future discussions.

1. Given any sequence and K-mer size, we can create a de Bruijn graph in an unique manner.

2. The other direction is not true. Any de Bruijn graph cannot be resolved into an unique sequence. Unless the de Bruijn graph is in its simplest form, it usually resolves into many possible sequences.

3. Larger the K-mers, more easy it is to convert the de Bruijn graph into an unique sequence.

4. Higher K-mer size generally requires more computer memory to store and process the graph. Therefore, how much RAM a machine has sets the upper limit for value of K.

De Bruijn 图--I,布布扣,bubuko.com

De Bruijn 图--I

标签:des   style   blog   c   ext   http   

原文地址:http://www.cnblogs.com/xiahualin/p/3737915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!