Simulate two homology groups (one for each parent) and their linkage phase configuration.
sim_homologous(ploidy, n.mrk, prob.dose = NULL, seed = NULL)
a list containing the following components:
a list of vectors containing linkage phase configurations. Each vector contains the numbers of the homologous chromosomes in which the alleles are located. For instance, a vector containing \((1,3,4)\) means that the marker has three doses located in the chromosomes 1, 3 and 4. For zero doses, use 0
contains the indices of the starting positions of the
dosages, considering that the vectors contained in p
are
concatenated. Markers with no doses (zero doses are also
considered)
Analogously to hom.allele.p
Analogously to p
ploidy level
ploidy level. Must be an even number
number of markers
a vector indicating the proportion of markers for different dosage to be simulated (default = NULL)
random number generator seed
Marcelo Mollinari, mmollin@ncsu.edu
This function prevents the simulation of linkage phase configurations which are impossible to estimate via two point methods
Mollinari, M., and Garcia, A. A. F. (2019) Linkage analysis and haplotype phasing in experimental autopolyploid populations with high ploidy level using hidden Markov models, _G3: Genes, Genomes, Genetics_. tools:::Rd_expr_doi("10.1534/g3.119.400378")
h.temp <- sim_homologous(ploidy = 6, n.mrk = 20)
Run the code above in your browser using DataLab