Alignment algorithm
1
0
Entering edit mode
2.1 years ago
artist01 • 0

Hey guys,

Recently I have been asked to implement an alignment algorithm allowing mismatch with not so much code in the script. Which is the best algorithm to implement?

Thanks for your help!

pattern align aligning genome • 1.2k views
ADD COMMENT
1
Entering edit mode

Hi! Is this a school/university assignment? If so, I would suggest you to start trying things and playing with the code and data a bit by yourself, without really thinking of "the best algorithm". If they are already asking you to "not write so much code", I doubt that their goal is to develop the best method to carry this task. Also, there are many and very good alignment tools out there already. I would start by taking a given sequence of length N, and extracting a subsequence from it, manually modify one letter of this subsequence and try to write code to map this subsequence into the larger sequence allowing mismatches. See this for some inspiration.

ADD REPLY
0
Entering edit mode
2.1 years ago
M.O.L.S ▴ 100

Try the Smith-Waterman (Needleman-Wunsch) algorithm.

ADD COMMENT
1
Entering edit mode

Just to clarify: Smith-Waterman and Needleman-Wunsch are related but not the same algorithm. SW finds optimal local alignments, NW finds global alignments

ADD REPLY
0
Entering edit mode

The original question is Which is the best algorithm to implement?

ADD REPLY

Login before adding your answer.

Traffic: 2578 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6