View source: R/analysis_diversity_functions.R
seqDiversity | R Documentation |
This performs basic diversity analyses on genetic data,
specifically, average pairwise divergence (\pi
), segregating sites,
estimated mutation rate (\theta
, or 4N\mu
), and Tajima's D can
be calculated, as well as sliding windows of diversity.
seqDiversity(
tasObj,
startSite = 0,
endSite = NULL,
slidingWindowAnalysis = FALSE,
stepSize = 100,
windowSize = 500
)
tasObj |
An object of class |
startSite |
Start site. |
endSite |
End site. Defaults to the maximum index of markers. |
slidingWindowAnalysis |
Do you want to analyze diversity in a sliding
window? Defaults to |
stepSize |
Step size. |
windowSize |
Window size. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.