Description Usage Arguments Author(s) See Also Examples
This function calculates scaled pairwise IUPAC
distances on
Biostrings
DNAStringSet
and BStringSet
objects using a
specific scoreMatrix
in a parallel fashion.
1 | rcpp_distIUPACmatrix(dnavector, scoreMatrix, ncores=1)
|
dnavector |
|
scoreMatrix |
|
ncores |
number of parallel cores to process pairwise distance calculation [default: 1] |
Kristian K Ullrich
scoreMatrix
,
distIUPACmatrix
,
rcpp_distIUPACmatrix_ab
,
dist.dna
1 2 3 4 5 6 7 8 9 | ##load sequence data
data("MySequences", package="distIUPAC")
##load scoring matrix
MyScoreMatrix<-scoreMatrix()
rcpp_distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix, ncores=2)
##change scoring matrix
MyScoreMatrix["A","R"] <- 10.0
##calculate IUPAC distance with altered scoring
rcpp_distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix, ncores=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.