Description Usage Arguments See Also Examples
This function analyses data using Structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | run.Structure(x, NUMRUNS, MAXPOPS, BURNIN, NUMREPS, NOADMIX, ADMBURNIN,
FREQSCORR, UPDATEFREQ, M, W, S, REPEATS, dir, clean, verbose, threads, SEED)
## S3 method for class 'StructureData'
run.Structure(x, NUMRUNS = 2, MAXPOPS = 1:10,
BURNIN = 10000, NUMREPS = 20000, NOADMIX = FALSE, ADMBURNIN = 500,
FREQSCORR = TRUE, UPDATEFREQ = max(floor(BURNIN + NUMREPS)/1000, 1),
M = "Greedy", W = TRUE, S = FALSE, REPEATS = 1000, dir = tempdir(),
clean = TRUE, verbose = FALSE, threads = 1, SEED = sample.int(1e+05,
NUMRUNS * length(MAXPOPS)))
## S3 method for class 'list'
run.Structure(x, NUMRUNS = 2, MAXPOPS = 1:10,
BURNIN = 10000, NUMREPS = 20000, NOADMIX = FALSE, ADMBURNIN = 500,
FREQSCORR = TRUE, UPDATEFREQ = max(floor(BURNIN + NUMREPS)/1000, 1),
M = "Greedy", W = TRUE, S = FALSE, REPEATS = 1000,
dir = file.path(tempdir(), seq_along(x)), clean = TRUE, verbose = FALSE,
threads = 1, SEED = sample.int(1e+05, NUMRUNS * length(MAXPOPS) *
length(x)))
|
x |
|
NUMRUNS |
|
MAXPOPS |
|
BURNIN |
|
NUMREPS |
|
NOADMIX |
|
ADMBURNIN |
|
FREQSCORR |
|
UPDATEFREQ |
|
M |
|
W |
|
S |
|
REPEATS |
|
dir |
|
clean |
|
verbose |
|
threads |
|
SEED |
|
1 2 3 4 5 6 7 | # run Structure using low number of iterations
dat <- read.StructureData(system.file('extdata', 'example_fstat_aflp.dat', package='structurer'))
x <- run.Structure(dat, NUMRUNS=2, MAXPOPS=1:3, BURNIN=10, NUMREPS=10, NOADMIX=FALSE, ADMBURNIN=10)
# run Structure for a list of two StructureData objects
x2 <- run.Structure(list(dat, dat), NUMRUNS=2, MAXPOPS=1:3, BURNIN=10, NUMREPS=10, NOADMIX=FALSE,
ADMBURNIN=10)
print(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.