Wrapper function around the original qpGraph program
qpgraph_wrapper(
pref,
graph,
bin = "~np29/o2bin/qpGraph",
parfile = NULL,
outdir = ".",
printonly = FALSE,
badsnps = NULL,
lambdascale = -1,
inbreed = "NO",
diag = 1e-04,
blgsize = 0.05,
outpop = "NULL",
loadf3 = NULL,
lsqmode = "NO",
fstdmode = "NO",
hires = "NO",
forcezmode = "NO",
zthresh = 0,
allsnps = "NO",
oldallsnps = "NO",
doanalysis = "YES",
bigiter = 100,
initmix = 0,
env = "",
verbose = TRUE
)
Prefix of the packedancestrymap format genotype files.
An admixture graph or qpGraph graph file
Location of the qpGraph binary
qpGraph parameter file
Output directory
Should output be executed or the command just be printed?
badsnps
lambdascale
inbreed
diag
blgsize
outgroup population
loadf3
least-squares mode. sets the offdiagonal elements of the block-jackknife covariance matrix to zero.
fstdmode
hires
forcezmode
zthresh
allsnps
oldallsnps
doanalysis
bigiter
initmix
Export environmental variables. See examples.
Print progress updates
A list with parsed qpGraph output
edges
: data frame
score
: scalar
f2
: data frame
if (FALSE) {
qpgraph_wrapper('genotype_prefix', example_graph,
bin = 'path/to/qpGraph')
}