DivSampleNum | R Documentation |
Function to generate an integer sequence representing the lengths of nested samples of sample
DivSampleNum(ms, n)
ms |
the main sample, either as a 2-column data.frame (species ID, count of species), or a vector of species IDs. |
n |
desired number of nested samples (integer) |
This function produces the default list of nested sample lengths for the DivE algorithm. For the vector representation of the main sample (ms) it is equivalent to sort(round(seq(from=length(ms)/n, to=length(ms), by=length(ms)/n)), decreasing=TRUE).
A decreasing sequence of nested sample lengths.
Daniel J. Laydon, Aaron Sim, Charles R.M. Bangham, Becca Asquith
Laydon, D. J., Melamed, A., Sim, A., Gillet, N. A., Sim, K., Darko, S., Kroll, S., Douek, D. C., Price, D., Bangham, C. R. M., Asquith, B., Quantification of HTLV-1 clonality and TCR diversity, PLOS Comput. Biol. 2014
require(DivE)
data(Bact1)
DivSampleNum(Bact1, 3)
DivSampleNum(Bact1, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.