View source: R/compute_marker_summaries.R
compute_diversities | R Documentation |
Given a matrix of marker allele frequencies, compute_diversities
returns the diversities of t = 1,...,m markers, where m is the
marker count. Each diversity is calculated as described in [1], i.e. without
correcting for finite sample sizes or considering uncertainty.
compute_diversities(fs, warn_fs = TRUE)
fs |
Matrix of marker allele frequencies, i.e. the fts in [1].
Specifically, a m by Kmax matrix, where m is the marker
count and Kmax is the maximum cardinality (per-marker allele count)
observed over all m markers. If, for any t = 1,...,m, the
maximum cardinality exceeds that of the t-th marker (i.e. if
Kmax > Kt), then all |
warn_fs |
Logical indicating if the function should return warnings following allele frequency checks. |
Diversities for t = 1,…,m markers.
Taylor, A.R., Jacob, P.E., Neafsey, D.E. and Buckee, C.O., 2019. Estimating relatedness between malaria parasites. Genetics, 212(4), pp.1337-1351.
compute_diversities(fs = frequencies$Colombia)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.