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 sequential fashion.
1 | distIUPACmatrix(dnavector, scoreMatrix)
|
dnavector |
|
scoreMatrix |
|
Kristian K Ullrich
scoreMatrix
,
rcpp_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()
distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix)
##change scoring matrix
MyScoreMatrix["A", "R"]<-10.0
##calculate IUPAC distance with altered scoring
distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.