Description Usage Arguments Value Examples
View source: R/NeedlemanWunsch.R
creatingMatrix creates a matrix containing the scores of the alignment for the NW algorithm
1 | creatingMatrix(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 matrix containing the scores of the alignment
1 2 3 4 5 6 | sequenceA <- "GTT"
sequenceB <- "GCATT"
matchCost <- 7
mismatchCost <- -3
gapPenalty <- -4
scoreMatrix <- creatingMatrix(matchCost,mismatchCost,gapPenalty,sequenceA,sequenceB)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.