needleman: Needleman-Wunsch (needleman)

Description Usage Arguments Value References Examples

View source: R/needleman.R

Description

This function works based on Needleman-Wunsch algorithm which computes similarity score of two sequences.

Usage

1
needleman(seq1, seq2, gap = -1, mismatch = -1, match = 1)

Arguments

seq1

(sequence1) is a string.

seq2

(sequence2) is a string.

gap

The penalty for gaps in sequence alignment. Usually, it is a negative value.

mismatch

The penalty for the mismatch in the sequence alignment. Usually, it is a negative value.

match

A score for the match in sequence alignment. Usually, it is a positive value.

Value

The function returns a number which indicates the similarity between sequence1 and sequence2.

References

https://gist.github.com/juliuskittler/ed53696ac1e590b413aac2dddf0457f6

Examples

1
simScore<-needleman(seq1="Hello",seq2="Hello",gap=-1,mismatch=-2,match=1)

ftrCOOL documentation built on Nov. 30, 2021, 1:07 a.m.

Related to needleman in ftrCOOL...