SlideShare a Scribd company logo
1 of 8
Download to read offline
Alignments II
Dynamic programming table
Maximum sum subarray problem
Given array of numbers [a_1, a_2, ... a_n] find
continuous sub array with maximum sum.
Local alignment
Find most common regions of two sequences
Formal problem
Find two substrings with maximal score
Score[0, i] = -gap_penalty * i
Score[j, 0] = -gap_penalty * j
Score[i, j] =
max(
Score[i-1, j] - gap_penalty,
Score[i, j-1] - gap_penalty,
Score[i, j] + match_score)
Smith-Waterman
Score[0, i] = 0
Score[j, 0] = 0
Score[i, j] =
max(
0,
Score[i-1, j] - gap_penalty,
Score[i, j-1] - gap_penalty,
Score[i, j] + match_score)
FItting alignment
Align the whole pattern(TAGATA) against
substring of the text(GTAGGCTTAAGGTTA)
Affine gap penalty
total_penalty =
gap_open + gap_extend * (length-1)
- -- --- ----
10 11 12 13

More Related Content

What's hot

Solving Linear Systems
Solving Linear SystemsSolving Linear Systems
Solving Linear SystemsKristen T
 
Algebra 1 Unit 2.7 Distributive Property
Algebra 1 Unit 2.7 Distributive PropertyAlgebra 1 Unit 2.7 Distributive Property
Algebra 1 Unit 2.7 Distributive PropertyJaqueline Vallejo
 
Addition and subtraction of polynomial functions
Addition and subtraction of polynomial functionsAddition and subtraction of polynomial functions
Addition and subtraction of polynomial functionsMartinGeraldine
 
7th pre alg -l51
7th pre alg -l517th pre alg -l51
7th pre alg -l51jdurst65
 
Dr graphically worked
Dr graphically workedDr graphically worked
Dr graphically workedJonna Ramsey
 
Chapter 2, Section 2: Distributive Property
Chapter 2, Section 2: Distributive PropertyChapter 2, Section 2: Distributive Property
Chapter 2, Section 2: Distributive PropertyJessca Lundin
 
C 9 Coordinate Geometry Graphs
C 9 Coordinate Geometry GraphsC 9 Coordinate Geometry Graphs
C 9 Coordinate Geometry GraphsRashmi Taneja
 
Distributive property ppt
Distributive property pptDistributive property ppt
Distributive property pptnglaze10
 
03 boolean algebra
03 boolean algebra03 boolean algebra
03 boolean algebrachaturape
 
4.1 inverse functions t
4.1 inverse functions t4.1 inverse functions t
4.1 inverse functions tmath260
 
Transforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard FormTransforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard FormIvy Estrella
 
Integration with limits
Integration with limitsIntegration with limits
Integration with limitsShaun Wilson
 
Exam of second semster g9
Exam of second semster g9Exam of second semster g9
Exam of second semster g9zeinabze
 
Bca3010 computer oriented numerical methods
Bca3010  computer oriented numerical methodsBca3010  computer oriented numerical methods
Bca3010 computer oriented numerical methodssmumbahelp
 
Algebra tiles and equations 022614 altered
Algebra tiles and equations   022614 alteredAlgebra tiles and equations   022614 altered
Algebra tiles and equations 022614 alteredCassie Rice
 
Speed of Light
Speed of LightSpeed of Light
Speed of LightMarc King
 
Zeros of a polynomial function
Zeros of a polynomial functionZeros of a polynomial function
Zeros of a polynomial functionMartinGeraldine
 
8th pre alg -l51
8th pre alg -l518th pre alg -l51
8th pre alg -l51jdurst65
 

What's hot (20)

Solving Linear Systems
Solving Linear SystemsSolving Linear Systems
Solving Linear Systems
 
Algebra 1 Unit 2.7 Distributive Property
Algebra 1 Unit 2.7 Distributive PropertyAlgebra 1 Unit 2.7 Distributive Property
Algebra 1 Unit 2.7 Distributive Property
 
Addition and subtraction of polynomial functions
Addition and subtraction of polynomial functionsAddition and subtraction of polynomial functions
Addition and subtraction of polynomial functions
 
Multiplying monomial
Multiplying monomialMultiplying monomial
Multiplying monomial
 
7th pre alg -l51
7th pre alg -l517th pre alg -l51
7th pre alg -l51
 
Dr graphically worked
Dr graphically workedDr graphically worked
Dr graphically worked
 
Chapter 2, Section 2: Distributive Property
Chapter 2, Section 2: Distributive PropertyChapter 2, Section 2: Distributive Property
Chapter 2, Section 2: Distributive Property
 
C 9 Coordinate Geometry Graphs
C 9 Coordinate Geometry GraphsC 9 Coordinate Geometry Graphs
C 9 Coordinate Geometry Graphs
 
Distributive property ppt
Distributive property pptDistributive property ppt
Distributive property ppt
 
03 boolean algebra
03 boolean algebra03 boolean algebra
03 boolean algebra
 
4.1 inverse functions t
4.1 inverse functions t4.1 inverse functions t
4.1 inverse functions t
 
Transforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard FormTransforming Quadratic functions from General Form to Standard Form
Transforming Quadratic functions from General Form to Standard Form
 
Integration with limits
Integration with limitsIntegration with limits
Integration with limits
 
Exam of second semster g9
Exam of second semster g9Exam of second semster g9
Exam of second semster g9
 
Power set
Power setPower set
Power set
 
Bca3010 computer oriented numerical methods
Bca3010  computer oriented numerical methodsBca3010  computer oriented numerical methods
Bca3010 computer oriented numerical methods
 
Algebra tiles and equations 022614 altered
Algebra tiles and equations   022614 alteredAlgebra tiles and equations   022614 altered
Algebra tiles and equations 022614 altered
 
Speed of Light
Speed of LightSpeed of Light
Speed of Light
 
Zeros of a polynomial function
Zeros of a polynomial functionZeros of a polynomial function
Zeros of a polynomial function
 
8th pre alg -l51
8th pre alg -l518th pre alg -l51
8th pre alg -l51
 

More from BioinformaticsInstitute

Comparative Genomics and de Bruijn graphs
Comparative Genomics and de Bruijn graphsComparative Genomics and de Bruijn graphs
Comparative Genomics and de Bruijn graphsBioinformaticsInstitute
 
Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...
 Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес... Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...
Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...BioinformaticsInstitute
 
Вперед в прошлое. Методы генетической диагностики древней днк
Вперед в прошлое. Методы генетической диагностики древней днкВперед в прошлое. Методы генетической диагностики древней днк
Вперед в прошлое. Методы генетической диагностики древней днкBioinformaticsInstitute
 
"Зачем биологам суперкомпьютеры", Александр Предеус
"Зачем биологам суперкомпьютеры", Александр Предеус"Зачем биологам суперкомпьютеры", Александр Предеус
"Зачем биологам суперкомпьютеры", Александр ПредеусBioinformaticsInstitute
 
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...BioinformaticsInstitute
 
Рак 101 (Мария Шутова, ИоГЕН РАН)
Рак 101 (Мария Шутова, ИоГЕН РАН)Рак 101 (Мария Шутова, ИоГЕН РАН)
Рак 101 (Мария Шутова, ИоГЕН РАН)BioinformaticsInstitute
 
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...Секвенирование как инструмент исследования сложных фенотипов человека: от ген...
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...BioinformaticsInstitute
 
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)Инвестиции в биоинформатику и биотех (Андрей Афанасьев)
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)BioinformaticsInstitute
 

More from BioinformaticsInstitute (20)

Graph genome
Graph genome Graph genome
Graph genome
 
Nanopores sequencing
Nanopores sequencingNanopores sequencing
Nanopores sequencing
 
A superglue for string comparison
A superglue for string comparisonA superglue for string comparison
A superglue for string comparison
 
Comparative Genomics and de Bruijn graphs
Comparative Genomics and de Bruijn graphsComparative Genomics and de Bruijn graphs
Comparative Genomics and de Bruijn graphs
 
Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...
 Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес... Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...
Биоинформатический анализ данных полноэкзомного секвенирования: анализ качес...
 
Вперед в прошлое. Методы генетической диагностики древней днк
Вперед в прошлое. Методы генетической диагностики древней днкВперед в прошлое. Методы генетической диагностики древней днк
Вперед в прошлое. Методы генетической диагностики древней днк
 
Knime & bioinformatics
Knime & bioinformaticsKnime & bioinformatics
Knime & bioinformatics
 
"Зачем биологам суперкомпьютеры", Александр Предеус
"Зачем биологам суперкомпьютеры", Александр Предеус"Зачем биологам суперкомпьютеры", Александр Предеус
"Зачем биологам суперкомпьютеры", Александр Предеус
 
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...
Иммунотерапия раковых опухолей: взгляд со стороны системной биологии. Максим ...
 
Рак 101 (Мария Шутова, ИоГЕН РАН)
Рак 101 (Мария Шутова, ИоГЕН РАН)Рак 101 (Мария Шутова, ИоГЕН РАН)
Рак 101 (Мария Шутова, ИоГЕН РАН)
 
Плюрипотентность 101
Плюрипотентность 101Плюрипотентность 101
Плюрипотентность 101
 
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...Секвенирование как инструмент исследования сложных фенотипов человека: от ген...
Секвенирование как инструмент исследования сложных фенотипов человека: от ген...
 
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)Инвестиции в биоинформатику и биотех (Андрей Афанасьев)
Инвестиции в биоинформатику и биотех (Андрей Афанасьев)
 
Biodb 2011-everything
Biodb 2011-everythingBiodb 2011-everything
Biodb 2011-everything
 
Biodb 2011-05
Biodb 2011-05Biodb 2011-05
Biodb 2011-05
 
Biodb 2011-04
Biodb 2011-04Biodb 2011-04
Biodb 2011-04
 
Biodb 2011-03
Biodb 2011-03Biodb 2011-03
Biodb 2011-03
 
Biodb 2011-01
Biodb 2011-01Biodb 2011-01
Biodb 2011-01
 
Biodb 2011-02
Biodb 2011-02Biodb 2011-02
Biodb 2011-02
 
Ngs 3 1
Ngs 3 1Ngs 3 1
Ngs 3 1
 

Recently uploaded

Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjjVector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjjjoshuaclack73
 
The Gaming Quiz - 17th April 2024, Quiz Club NITW
The Gaming Quiz - 17th April 2024,  Quiz Club NITWThe Gaming Quiz - 17th April 2024,  Quiz Club NITW
The Gaming Quiz - 17th April 2024, Quiz Club NITWQuiz Club NITW
 
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdfThe Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdfXtreame HDTV
 
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdfWHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdfOptimistic18
 
C&C Artists' Websites .
C&C Artists' Websites                       .C&C Artists' Websites                       .
C&C Artists' Websites .LukeNash7
 
batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01Patricia Pham
 
small presentation about Star Wars/.pptx
small presentation about Star Wars/.pptxsmall presentation about Star Wars/.pptx
small presentation about Star Wars/.pptxuzkovanuxs
 
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdfKhaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdfnadatt7801
 
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...Model Neeha Mumbai
 
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...Amil Baba Dawood bangali
 
the red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdointhe red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdoinkomalbattersea123
 
week 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptxweek 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptxjoshuaclack73
 
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...Marwah Studios
 
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...Model Neeha Mumbai
 
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样ahafux
 
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdfTitle Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdfToca boca
 
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjjVibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjjjoshuaclack73
 
Online Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports IDOnline Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports IDcruzeallie1
 
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...Amil Baba Dawood bangali
 

Recently uploaded (20)

Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjjVector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
Vector Methods.pptxjjjjjjjjjjjjjjjjjjjjjj
 
The Gaming Quiz - 17th April 2024, Quiz Club NITW
The Gaming Quiz - 17th April 2024,  Quiz Club NITWThe Gaming Quiz - 17th April 2024,  Quiz Club NITW
The Gaming Quiz - 17th April 2024, Quiz Club NITW
 
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdfThe Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
The Ultimate Guide to Choosing the Best HD IPTV Service in 2024.pdf
 
kiff2
kiff2kiff2
kiff2
 
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdfWHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
WHO KILLED ALASKA? #15: "5½ STORIES Part Two" Transcript .pdf
 
C&C Artists' Websites .
C&C Artists' Websites                       .C&C Artists' Websites                       .
C&C Artists' Websites .
 
batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01batwheels_01
batwheels_01batwheels_01batwheels_01batwheels_01
 
small presentation about Star Wars/.pptx
small presentation about Star Wars/.pptxsmall presentation about Star Wars/.pptx
small presentation about Star Wars/.pptx
 
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdfKhaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
Khaki-Files-Inside-Stories-of-Police-Missions-Kumar-Neeraj-Z-Library.pdf
 
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
Young & Hot ℂall Girls Visakhapatnam 8250077686 WhatsApp Number Best Rates of...
 
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
NO1 Pakistan kala jadu Specialist Expert in Quetta, Gujranwala, muzaffarabad,...
 
the red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdointhe red riding girl story fkjgoifdjgijogifdoin
the red riding girl story fkjgoifdjgijogifdoin
 
week 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptxweek 3 questions and answers.phhhhhhhhhhptx
week 3 questions and answers.phhhhhhhhhhptx
 
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
8th Global Fashion and Design Week Noida 2024 Sets New Standards in Creative ...
 
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
Young & Hot ℂall Girls Jaipur 8250077686 WhatsApp Number Best Rates of Jaipur...
 
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
在线办理(concordia学位证书)康考迪亚大学毕业证学历学位证书学费发票原版一模一样
 
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdfTitle Unlocking Imagination The Importance of Toca Boca for Kids.pdf
Title Unlocking Imagination The Importance of Toca Boca for Kids.pdf
 
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjjVibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
Vibration Control.pptxjjjjjjjjjjjjjjjjjjjjj
 
Online Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports IDOnline Winbuzz ID Provider in India | Get Your Sports ID
Online Winbuzz ID Provider in India | Get Your Sports ID
 
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
NO1 Pakistan Vashikaran Specialist in Uk Black Magic Specialist in Uk Black M...
 

Bioalgo 2013-07-alignment-2