Description Usage Arguments Details Value Author(s) See Also Examples
Calculates the number of diagnostic nucleotides in sliding windows.
1 | slideNucDiag(DNAbin, sppVector, width, interval = 1)
|
DNAbin |
A DNA alignment of class ‘DNAbin’. |
sppVector |
Species vector (see |
width |
Desired width of windows in number of base pairs. |
interval |
Distance between each window in number of base pairs. Default of 1. Giving the option of |
Determines the number of diagnostic nucleotides for each species in each window.
A matrix giving the number of diagnostic nucleotides for each species (rows) in each window (columns).
Samuel Brown <s_d_j_brown@hotmail.com>
slideAnalyses
, slideBoxplots
, slidingWindow
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
slideNucDiag(dolomedes, doloSpp, 200, interval = 3)
slidND <- slideNucDiag(dolomedes, doloSpp, 200, interval = 3)
#Number of basepairs for each species
matplot(t(slidND), type = "l")
#Number of basepairs for a single species
plot(slidND[4, ], type = "l")
#Total number of basepairs per window
plot(colSums(slidND), type = "l")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.