Description Usage Arguments Value
View source: R/gwscaR_popgen.R
Calculate a sliding window
1 2 | sliding.window(vcf, chr, stat = "pi", width = 250, pop.list = NULL,
nsteps = 50)
|
vcf |
A vcf file |
chr |
The chromosome you want to calculate the sliding window in |
stat |
the population genetics statistic you want to use. choices are "pi" or "rho" |
width |
The width for the sliding window. Default is 250 |
pop.list |
An optional parameter allowing you to specificy the populations you want to include. |
nsteps |
The number of steps in the sliding window |
A vector with the averaged statistic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.