Description Usage Arguments Value Examples
Simulate a S4 GBS.array object with true_parents, gbs_parents, true_kids, gbs_kids and pedigree.
1 2 3 4 5 6 7 8 9 10 11 12 |
size.array |
Size of the progeny array. |
numloci |
Number of loci to simulate. |
hom.error |
Homozygous error rate, default=0.02. |
het.error |
Heterozygous error rate, default=0.8. |
rec |
Recombination rate, default=0.25. |
selfing |
Proportion of selfed progeny, default=0.5. |
imiss |
Individual missing rate, default=0.5. |
misscode |
Missing code, default=3. |
p1 |
first parent (a list) |
p2 |
second parent (a list) |
p |
a vector of allele freq with length numloci. |
diploid |
a vector of diploid genotype, for example, c(0, 1, 1, 0, 2, 2). |
mom |
a list of mom's haplotype. |
co_mean |
mean number of crossovers per chromosome. |
numloci |
number of loci. |
hom.error |
homozygous error rate. |
het.error |
heterozygous error rate. |
Return GBS.array object.
Slot1: true_parents, a list of data.frame(hap1, hap2). Slot2: gbs_parents, a list of genotypes. For example, c(1, 2, 2, 0, 3). Slot3: true_kids, a list of data.frame(hap1, hap2). Slot4: gbs_kids, a list of kid genotypes. For example, c(1, 1, 3, 1, 2). Slot5: pedigree, a data.frame (kid, p1, p2). Note, p1 is the focal parent. Slot6: freq, a vector of reference allele freq for all SNPs.
See https://github.com/yangjl/imputeR/blob/master/vignettes/imputeR-vignette.pdf for more details.
a list of true [[1]] and observed [[2]] kid
a vector of genotype,
a vector of diploid genotype.
a vector of diploid genotype.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.