Description Usage Arguments Details Value Examples
View source: R/S4-Klasse-Methode-PROSPER.R
The creation method for PROSPER objects.
1 2 3 4 5 6 7 | prosper(
Call = match.call(definition = sys.function(sys.parent(n = 2)), call =
sys.call(sys.parent(n = 2))),
simstruc = numeric(),
loci = numeric(),
simData = as.data.table()
)
|
Call |
|
simstruc |
|
loci |
|
simData |
|
The genotypes are described by their relevant loci (up to 4). Each locus can have 0, 1 or 2 alleles in a diploid genome. So a genotype for two loci is coded like that: 00 (no relevant alleles), 21 (2 alleles at the first locus, and 1 at the second). For this coding loci
must be "2".
An object of class "prosper".
1 2 3 4 5 6 7 8 9 | require(data.table)
struc_preparation2(Rmx=10, af=c(0.01,0.8), epis=0, dom=c(1,0.3))
simdata <- as.data.table(dfgenotype)
simdata[,"repetition":=1]
simdata[,"simcycle":=1]
setcolorder(simdata, c(c("repetition", "simcycle"),
colnames(simdata)[!(colnames(simdata) %in%
c("simulation_run", "repetition", "simcycle"))]))
prosper(simstruc = c(5,10), loci=2, simData = simdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.