Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/compVectorDist.R
Returns all possible permutations of DNA sequences of a given length.
1 | compVectorDist(DNAbin, kval = 6, subBackground = FALSE)
|
DNAbin |
An object of class 'DNAbin'. |
kval |
Numeric. Length of the desired K-strings.Default of 6. |
subBackground |
Logical. Should the background of random mutations be subtracted? Default of FALSE. |
subBackground = TRUE
results in a larger distance between specimens, but increases the processor time substantially.
Processor time increases exponentially as kval
increases. The function takes approximately 16 seconds with the dolomedes
dataset and with kval = 6
. Errors are given when kval
is less than 3.
A matrix giving the composition vector distance between the sequences in the alignment.
Samuel Brown <s_d_j_brown@hotmail.com>
Qi J, Wang B, Hao B-I. 2004. Whole proteome prokaryote phylogeny without sequence alignment: A K-string composition approach. Journal of Molecular Ecology 58:1–11
1 2 3 4 5 6 7 | data(dolomedes)
compVectorDist(dolomedes)
compVectorDist(dolomedes, kval = 5)
compVectorDist(dolomedes, kval = 5, subBackground = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.