Description Usage Arguments Value References Examples
View source: R/NeedlemanWunsch.R
Core function of the package, performs the Needleman-Wunsch algorithm
1 2 3 4 5 6 7 | globalAlignnmentNeedlemanWunsch(
matchCost,
mismatchCost,
gapPenalty,
sequenceA,
sequenceB
)
|
matchCost |
The cost of a match |
mismatchCost |
The cost of a mismatch |
gapPenalty |
The gap penalty(cost of gap/indel) |
sequenceA |
The first nucleotide sequence (positioned on the rows) |
sequenceB |
The second nucleotide sequence (positioned on the columns) |
a list containing the score matrix, the direction matrix, the first alignment, the second alignment
https://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm
1 2 3 4 5 6 | sequenceA <- "GTT"
sequenceB <- "GCATT"
matchCost <- 7
mismatchCost <- -3
gapPenalty <- -4
result <- globalAlignnmentNeedlemanWunsch(matchCost,mismatchCost,gapPenalty,sequenceA,sequenceB)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.