| utils.structure.run {dartR} | R Documentation |
Utility function to run Structure
Description
These functions were copied from package strataG, which is no longer on CRAN (maintained by Eric Archer)
Usage
utils.structure.run(
g,
k.range = NULL,
num.k.rep = 1,
label = NULL,
delete.files = TRUE,
exec = "structure",
...
)
Arguments
g |
a gtypes object [see |
k.range |
vector of values to for |
num.k.rep |
number of replicates for each value in |
label |
label to use for input and output files |
delete.files |
logical. Delete all files when STRUCTURE is finished? |
exec |
name of executable for STRUCTURE. Defaults to "structure". |
... |
arguments to be passed to |
Value
structureRuna list where each element is a list with results from
structureReadand a vector of the filenames usedstructureWritea vector of the filenames used by STRUCTURE
structureReada list containing:
summarynew locus name, which is a combination of loci in group
q.matdata.frame of assignment probabilities for each id
prior.anclist of prior ancestry estimates for each individual where population priors were used
filesvector of input and output files used by STRUCTURE
labellabel for the run
Author(s)
Bernd Gruber (bugs? Post to https://groups.google.com/d/forum/dartr); original implementation of Eric Archer https://github.com/EricArcher/strataG