Perl Implementation of a three different techniques for DNA or Protein sequence alignment to calculate similarity between 2 or more sequences by searching for a series of individual characters that are in the same order in the sequences.
In Bioinformatics there are a technique called sequence alignment It is a way of arranging the sequences of DNA, RNA, or protein to identify regions of similarity that may be a consequence of functional, structural, or evolutionary relationships between the sequences.
TGGTAGATTCCCACGAGATCTACCGAGTATGAGTAGGGGGACGTTCGCTCGG GCCTCTAACACACTGCACGAGATCAACCGAGATATGAGTAATACAGCGGTACGGG
CTGTCGCTGCACG TGCCGTG
CAGCACTTGGATTCTCGG CAGCGTGG
\ | Global Alignment | Semi-Global Alignment | Local Alignment |
---|---|---|---|
sequence pair 1 |
77 | 97 | 106 |
sequence pair 2 |
-4 | 21 | 21 |
sequence pair 3 |
-10 | 21 | 21 |
TGG
-T
--A
GATTC
-C
--CACGAGATCTACCGAG
-TATGAGTAGG
GGGAC
-G
TTCGCT
-CGG
-
-GC
CT
CTA
-ACAC
AC
TGCACGAGATCAACCGAG
ATATGAGTAAT
---AC
AG
--CGGT
ACGG
G
CTGTCG
CTG
CACG
-TGCCG
-TG
----
CAGC
ACTTG
GAT
TCTCGG
CAGC
----G
--T
----GG
---TGGTAGATTC-C--CACGAGATCTACCGAG-TATGAGTAGGGGGAC-GTTCGCT-CGG-
GCCTC-TA-ACACACTGCACGAGATCAACCGAGATATGAGTAAT---ACAG--CGGTACGGG
CTGTCG
CTG
GCAC
-TGCCG
-TG
----
CAGCACTTGGGGCTCTTA
CAGCG-T-GG--------
CACGAGATCTACCGAG-TATGAGTA
CACGAGATCAACCGAGATATGAGTA
TGTCGCTG
TGCCG-TG
CAGCACTTGG
CAGCG-T-GG
-
Semi Global Alignment is always better than Global Alignment.
-
Local Alignment is always better than the Global Alignment and maybe equal to the scores in the semi global Alignment.
-
The semi-global alignment algorithm was able to detect better than the global alignment algorithm.
-
The local alignment algorithm was able to detect region(s) of similarity that were overlooked by the global alignment.