Description Usage Arguments Author(s) See Also Examples
This function calculates pairwise IUPAC
distance between
two character
objects (a
, b
)of length nsites
using
a specific scoreMatrix
and returns the number of used sites.
1 | rcpp_distIUPACmatrix_ab(a, b, scoreMatrix, nsites)
|
a |
|
b |
|
scoreMatrix |
|
nsites |
number of sites |
Kristian K Ullrich
scoreMatrix
,
distIUPACmatrix
,
rcpp_distIUPACmatrix
,
dist.dna
1 2 3 4 5 6 | ##load sequence data
data("MySequences", package="distIUPAC")
##load scoring matrix
MyScoreMatrix<-scoreMatrix()
rcpp_distIUPACmatrix_ab(as.character(MySequences[1]), as.character(MySequences[2]),
scoreMatrix=MyScoreMatrix, nsites=nchar(as.character(MySequences[1]))[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.