powered by
This function works based on Needleman-Wunsch algorithm which computes similarity score of two sequences.
needleman(seq1, seq2, gap = -1, mismatch = -1, match = 1)
(sequence1) is a string.
(sequence2) is a string.
The penalty for gaps in sequence alignment. Usually, it is a negative value.
The penalty for the mismatch in the sequence alignment. Usually, it is a negative value.
A score for the match in sequence alignment. Usually, it is a positive value.
The function returns a number which indicates the similarity between sequence1 and sequence2.
https://gist.github.com/juliuskittler/ed53696ac1e590b413aac2dddf0457f6
# NOT RUN { simScore<-needleman(seq1="Hello",seq2="Hello",gap=-1,mismatch=-2,match=1) # }
Run the code above in your browser using DataLab