a tile based parallel viterbi algorithm for biological
play

A Tile-based Parallel Viterbi Algorithm for Biological Sequence - PowerPoint PPT Presentation

A Tile-based Parallel Viterbi Algorithm for Biological Sequence Alignment on GPU with CUDA Zhihui Du 1 , Zhaoming Yin 2 , David A. Bader 3 1, Department of Computer Science, Tsinghua University. 2, School of Software and Microelectronics, Peking


  1. A Tile-based Parallel Viterbi Algorithm for Biological Sequence Alignment on GPU with CUDA Zhihui Du 1 , Zhaoming Yin 2 , David A. Bader 3 1, Department of Computer Science, Tsinghua University. 2, School of Software and Microelectronics, Peking University. 3, School of Computing, Georgia Institute of Technology

  2. Contents Background 1 5 Experiments 2 Parallel Algorithm Content s 4 3 Tile-based Algorithm Streaming Algorithm

  3. 4 5 3 Background Background 2 1

  4. The Importance of Accelerating Viterbi Algorithm •In the test of SATCHMO, Viterbi algorithm occupy anout 80% compuation time counting modeling initial viterbi scoring join viterbi scoring viterbi aligning

  5. Dynamic Programming Matrix H+ H- H- -∞ -∞ -∞ -∞ -∞ -∞ -∞ -∞ -∞ -1.0 -2.0 -3.0 N/A N/A N/A N/A л N/A N/A DE N/A N/A DE N/A Emit Probability -∞ -∞ -1.3 -0.8 -2.1 -1.8 -1.85 -1.4 -2.6 -2.4 -2.2 -3.8 H- Transition Probability л л N/A N/A IN DE DE MA DE DE DE DE Forward Variable -∞ -∞ -2.6 -2.6 -3.9 -1.8 -1.45 -2.6 -2.0 -1.85 + log(0.5) + log(0.8) -2.25 -2.45 3.0 H- = -2.25 -1.4 + log(0.1) + log(0.5) = -2.7 N/A N/A IN IN IN MA MI IN DE MA MA DE -2.6 + log(0.3) + log(0.5) = -3.4

  6. Trace Back H+ H- H- 0:H - H - N/A N/A N/A N/A л N/A N/A DE N/A N/A DE N/A result 1:H - H - H + H - H - H - H - - H - H - H - H - H + 2: H- - H - H - л л N/A N/A IN DE DE MA DE DE DE DE - - -3.0 H- 2.25 2.45 N/A N/A IN IN IN MA MI IN DE MA MA DE

  7. Related Work � W. Liu, B. Schmidt, G. Voss, W. Muller Wittig. “Streaming Algorithms for Biological Sequence Alignment on GPUs” IEEE TPDS, Vol. 18, No. 9. (2007), pp. 1270 ‐ 1281. � Y. Munekawa, F. Ino, and K. Hagihara. Design and Implementation of the Smith ‐ Waterman Algorithm on the CUDA ‐ Compatible GPU. 8th IEEE International Conference on BioInformatics and BioEngineering, pages 1 C6, Oct .2008

  8. Related Work � S.A. Manavski, G. Valle. CUDA compatible GPU cards as efficient hardware accelerators for Smith ‐ Waterman sequence alignment. BMC Bioinformatics. 2008 Mar 26;9 Suppl 2:S10 � R. Horn, M. Houston, P. Hanrahan. ClawHMMer: A streaming HMMer –search implementation. Proc. Supercomputing (2005).

  9. Parallel Algorithm 4 5 3 Algorithm 2 Parallel 1

  10. Wave ‐ front Algorithm wave-front algorithm: The computing procedure is similar to a frontier of a wave to fill a matrix, where each block’s value in the matrix is calculated based on the values of the previously-calculated blocks.

  11. Streaming Algorithm 4 5 3 Streaming Algorithm 2 1

  12. If the Sequence Length is Too Long! Step i+1 Step i Streaming Algorithm: Transfering data between Host and Device. kernel kernel host device host device

  13. The Tile ‐ based Algorithm 4 5 3 Tile-based Algorithm 2 1

  14. The Tile Based Algorithm AAAATTTTCTACAAACAATAAAAAAA … … Step1: AATTTTCTACAAAAACAATAAA Utilizing Homological Segments to divide long sequence Find Homological Segments AAAATTTT CTAC AAA CAAT AAAAAAA … … AATTTT CTAC AAAAA CAAT AAA See: M. Katoh and M. Kuma. “MAFFT: Align independently a novel method for rapid multiple sequence alignment based on fast Fourier transform”. AAAATTTT CTAC A - - AA CAAT AAAAAAA AA - - TTTT CTAC AAAAA CAAT A - - - - AA In Nucleic Acids Res. 30:3059-3066 2002.

  15. The Tile Based Algorithm Step2: Align sub-matrices Find homological segment pairs Divide sequence(shaded area)

  16. 4 5 3 Experiments Experiments 2 1

  17. Seq-Length Execution Time (Second)/Speedup serial Simple Wave-front Streaming Tile-based Results DW 0.73 0.37 1.97 0.38 1.92 0.28 2.61 RW 0.017 0.007 2.42 0.02 0.85 0.006 2.83 100 DL 0.063 0.008 7.87 0.023 2.74 0.007 9 RL 0.027 0.007 3.86 0.023 1.17 0.007 3.86 DW 2.34 0.39 6 0.44 5.32 0.39 6 RW 0.05 0.03 1.67 0.061 0.82 0.028 1.79 200 DL 0.324 0.035 9.26 0.065 4.98 0.029 11.17 RL 0.142 0.035 4.06 0.065 2.18 0.029 4.9 Intel Core 2 DW 5.89 0.42 14.02 0.46 12.8 0.43 13.7 NVIDIA GeForce 9800 RW 0.12 0.068 1.76 0.1 1.2 0.055 2.18 300 DL 0.647 0.07 9.26 0.112 5.78 0.054 11.98 RL 0.283 0.068 4.16 0.116 2.44 0.054 5.24 DW 9.93 0.50 19.86 0.52 19.1 0.45 22.07 RW 0.21 0.13 1.61 0.159 1.32 0.098 2.14 400 DL 1.112 0.12 9.27 0.2 5.56 0.099 11.23 RL 0.485 0.122 3.98 0.174 2.79 0.097 5 DW 15.9 0.54 29.44 0.54 29.44 0.52 30.58 RW 0.34 0.19 1.78 0.239 1.42 0.174 1.95 500 DL 1.783 0.198 9 0.262 6.8 0.155 11.5 RL 0.783 0.191 4.10 0.251 3.12 0.153 5.12 DW 62.1 0.99 62.73 1.10 56.45 0.86 72.21 RW 1.34 0.64 2.09 0.686 1.95 0.554 2.42 1000 DL 6.98 0.64 10.91 0.725 9.63 0.53 13.17 RL 3.07 0.635 4.83 0.62 4.952 0.512 6.0

  18. Test of Streaming Algorithm 100% 80% Percentage 60% 40% 20% 0% DW RW DW RW DW RW DW RW DW RW DW RW DL RL DL RL DL RL DL RL DL RL DL RL 100 200 300 400 500 1000 Sequence Length computation transmition

  19. Test of Tile based Algorithm

  20. Test of Long Sequences Tile based Windows Tile based Linux Streaming Windows Streaming Linux Under Linux System 12 10 Time (Seconds) 8 6 4 2 0 1800 2300 2800 3300 3800 4300 4800 Sequence Length Tile Based Windows Tile Based Linux Streaming Windows Streaming Linux 40 35 30 Time (Seconds) 25 20 15 Windows System 10 5 0 1800 2300 2800 3300 3800 4300 4800 Sequence Length

  21. Future work � 1: Experiments on multiple GPUs � 2: New Architectures such as FERMI Q&A?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend