traceBack | R Documentation |
Function computes an optimal global or local alignment based on a trace back
matrix as provided by function stringDist
or stringSim
.
traceBack(D, global = TRUE)
D |
object of class |
global |
logical, global or local alignment |
Computes one possible optimal global or local alignment based on the trace back
matrix saved in an object of class "stringDist"
or "stringSim"
.
matrix: pairwise global/local alignment
The function is mainly for teaching purposes.
For distances between strings and string alignments see Bioconductor package Biostrings.
Matthias Kohl Matthias.Kohl@stamats.de
R. Merkl and S. Waack (2009). Bioinformatik Interaktiv. Wiley.
stringDist
x <- "GACGGATTATG" y <- "GATCGGAATAG" ## Levenshtein distance d <- stringDist(x, y) ## optimal global alignment traceBack(d) ## Optimal global alignment score d <- stringSim(x, y) ## optimal global alignment traceBack(d) ## Optimal local alignment score d <- stringSim(x, y, global = FALSE) ## optimal local alignment traceBack(d, global = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.