compute_F4fromF2: compute_F4fromF2

compute_F4fromF2R Documentation

compute_F4fromF2

Description

Compute all F4 from overall F2 and Q2 values

Usage

.compute_F4fromF2(F2val, npops)

Arguments

F2val

Numeric vector of length nF2=(npop*(npop-1))/2 with all pairwise F2 estimates

npops

Integer giving the number of populations

Details

Compute F4 from F2 (and heterozygosities)

Value

Return a vector of length nF4=(npops*(npops-1)/2) * ((npops-2)*(npops-3)/2) / 2 rows corresponding to all the F4 estimates for all possible configurations

Examples

#

poolfstat documentation built on Sept. 8, 2023, 5:49 p.m.