Description Usage Arguments Value Author(s) References See Also Examples
Simulate new phenotypes with a given number of QTL and creates new object with the same structure of class qtlpoly.data
from an existing genetic map.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
data |
an object of class |
mu |
simulated phenotype mean, e.g. 0 (default). |
h2.qtl |
vector with QTL heritabilities, e.g. |
var.error |
simulated error variance, e.g. 1 (default). |
linked |
if |
n.sim |
number of simulations, e.g. 1000 (default). |
missing |
if |
w.size |
the window size (in centiMorgans) between two (linked) QTL, e.g. 20 (default). |
seed |
integer for the |
verbose |
if |
x |
an object of class |
detailed |
if |
An object of class qtlpoly.sim
which contains a list of results
with the same structure of class qtlpoly.data
.
Guilherme da Silva Pereira, gdasilv@ncsu.edu
Pereira GS, Gemenet DC, Mollinari M, Olukolu BA, Wood JC, Mosquera V, Gruneberg WJ, Khan A, Buell CR, Yencho GC, Zeng ZB (2020) Multiple QTL mapping in autopolyploids: a random-effect model approach with application in a hexaploid sweetpotato full-sib population, Genetics 215 (3): 579-595. http://doi.org/10.1534/genetics.120.303080.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# load raw data
data(maps)
data(pheno)
# estimate conditional probabilities using mappoly package
library(mappoly)
genoprob <- lapply(maps, calc_genoprob)
# prepare data
data <- read_data(ploidy = 6, geno.prob = genoprob, pheno = pheno, step = 1)
# simulate new phenotypes
sim.dat <- simulate_qtl(data = data, n.sim = 1000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.