Computes f3 statistics of the form \(f3(A; B, C)\). Equivalent to \((f2(A, B) + f2(A, C) - f2(B, C)) / 2\)
and to \(f4(A, B; A, C)\). Requires a working installation of qp3Pop, which will be called
using system
qp3pop_wrapper(
pref,
source1,
source2 = NULL,
target = NULL,
bin = "~np29/o2bin/qp3Pop",
outdir = ".",
parfile = NULL,
inbreed = "NO",
outgroupmode = "NO",
printonly = FALSE,
env = "",
verbose = TRUE
)Path to and prefix of the packedancestrymap genotype files
One of the following four:
NULL: Populations will be read from poplistname or popfilename specified in parfile
A vector of population labels
A data frame in which the first four columns specify the population triples to be tested.
source2, target will be ignored.
The location of a file (poplistname or popfilename) which specifies the populations or
population combinations to be tested. source2 and target will be ignored.
A vector of population labels
A vector of population labels
Path to the qp3Pop binary file
Output directory. files out, parfile, poplistname,
popfilename may be overwritten
qp3Pop parameter file. If this is specified, source1, source2,
target will be ignored.
inbreed
outgroupmode
Should the command be printed or executed?
Export environmental variables. See examples.
Print progress updates
If printonly, the qp3Pop command, otherwise a data frame with parsed qp3Pop output