compute_F4fromF2: compute_F4fromF2
Description
Compute all F4 from overall F2 and Q2 values
Usage
.compute_F4fromF2(F2val, npops)
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
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)