qp3pop_wrapper | R Documentation |
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
)
pref |
Path to and prefix of the packedancestrymap genotype files |
source1 |
One of the following four:
|
source2 |
A vector of population labels |
target |
A vector of population labels |
bin |
Path to the qp3Pop binary file |
outdir |
Output directory. files |
parfile |
qp3Pop parameter file. If this is specified, |
inbreed |
inbreed |
outgroupmode |
outgroupmode |
printonly |
Should the command be printed or executed? |
env |
Export environmental variables. See examples. |
verbose |
Print progress updates |
If printonly
, the qp3Pop
command, otherwise a data frame with parsed qp3Pop
output
## Not run:
source1 = c('Altai_Neanderthal.DG', 'Vindija.DG')
source2 = c('Chimp.REF', 'Mbuti.DG', 'Russia_Ust_Ishim.DG')
target = 'Denisova.DG'
qp3pop_wrapper('genotype_prefix', source1, source2, target,
bin = 'path/to/qp3Pop')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.