sliding.window: Calculate a sliding window

Description Usage Arguments Value

View source: R/gwscaR_popgen.R

Description

Calculate a sliding window

Usage

1
2
sliding.window(vcf, chr, stat = "pi", width = 250, pop.list = NULL,
  nsteps = 50)

Arguments

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

Value

A vector with the averaged statistic


spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.