apwnd_window_internal: Compute average pairwise nucleotide diversity statistics for...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This is the internal Rcpp function that will be called once for each window.

Usage

1

Arguments

x

an 0,1,2,-1 integer matrix

a

the lowest (base-1) index of the SNPs in the window

b

the highest (base-1) index of the SNPs in the window

Value

This returns a list of vectors. First vector is the average pairwise nucleotide difference for each pair of individuals. Second vector is the fraction of sites missing in the pair.


eriqande/genoscapeRtools documentation built on Dec. 27, 2021, 8:01 a.m.