Description Usage Arguments Value Examples
Simple function using Rcpp to compute semi-global Needleman-Wunsch score. The first set of sequence are short, the second long.
1 2 3 | nw.sg.mult(short, long, S, g)
nws.sg.mult(short, long, S, g)
qnw.sg.mult(short, long)
|
short |
short sequences (list of integer vectors). |
long |
long sequences (list of integer vectors). |
S |
a scoring matrix ( |
g |
an integer vector holding the gap penalty. |
D |
Matrix of scores from queries against satellites |
D_scaled |
Matrix of scores scaled by satellite lengths |
1 2 3 4 5 | short <- char2int(c("ACGT", "ACGG"))
long <- char2int(c("AAACCCACGTATA", "ACGGGACGAGC"))
nw.sg.mult(short, long, matrix(c(1,-1,-1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,-1,-1,1),4,4), -1)
nws.sg.mult(short, long, c(1,-1), -1)
qnw.sg.mult(short, long)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.