nwalign | R Documentation |
This function performs a Needleman-Wunsch alignment between two sequences.
nwalign(
s1,
s2,
match = getDadaOpt("MATCH"),
mismatch = getDadaOpt("MISMATCH"),
gap = getDadaOpt("GAP_PENALTY"),
homo_gap = NULL,
band = -1,
endsfree = TRUE,
vec = FALSE
)
s1 |
(Required). |
s2 |
(Required). |
match |
(Optional). |
mismatch |
(Optional). |
gap |
(Optional). |
homo_gap |
(Optional). |
band |
(Optional). |
endsfree |
(Optional). |
vec |
(Optional). |
character(2)
. The aligned sequences.
sq1 <- "CTAATACATGCAAGTCGAGCGAGTCTGCCTTGAAGATCGGAGTGCTTGCACTCTGTGAAACAAGATA"
sq2 <- "TTAACACATGCAAGTCGAACGGAAAGGCCAGTGCTTGCACTGGTACTCGAGTGGCGAACGGGTGAGT"
nwalign(sq1, sq2)
nwalign(sq1, sq2, band=16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.