This requires a working installation of qpF4ratio, which will be called using system
qpf4ratio_wrapper(
pref,
pops,
bin = "~np29/o2bin/qpF4ratio",
outdir = ".",
parfile = NULL,
blgsize = 0.05,
fancyf4 = "YES",
printonly = FALSE,
env = "",
verbose = TRUE
)
Path to and prefix of the packedancestrymap genotype files
A vector of five populations, or a 5 x n matrix with population names. For each line alpha
will be computed as f4(1,2; 3,4)/f4(1,2; 5,4)
Path to the qpF4ratio binary file
Output directory. files out
, parfile
, poplistname
,
popfilename
may be overwritten
qpF4ratio parameter file. If this is specified, pops
will be ignored.
blgsize
fancyf4
Should the command be printed or executed?
Export environmental variables. See examples.
Print progress updates
If printonly
, the qpF4ratio
command, otherwise a data frame with parsed qpF4ratio
output
if (FALSE) {
pops = c('Denisova.DG', 'Altai_Neanderthal.DG', 'Vindija.DG', 'Chimp.REF', 'Mbuti.DG')
qpf4ratio_wrapper('genotype_prefix', pops, bin = 'path/to/qpDstat')
}