cache_counts_twopt | R Documentation |
Returns the frequency of each genotype for two-point reduction of dimensionality. The frequency is calculated for all pairwise combinations and for all possible linkage phase configurations.
cache_counts_twopt(
input.seq,
cached = FALSE,
cache.prev = NULL,
ncpus = 1L,
verbose = TRUE,
joint.prob = FALSE
)
input.seq |
an object of class |
cached |
If |
cache.prev |
an object of class |
ncpus |
Number of parallel processes to spawn (default = 1) |
verbose |
If |
joint.prob |
If |
An object of class cache.info
which contains one (conditional probabilities)
or two (both conditional and joint probabilities) lists. Each list
contains all pairs of dosages between parents for all markers
in the sequence. The names in each list are of the form 'A-B-C-D', where: A
represents the dosage in parent 1, marker k; B represents the dosage in parent
1, marker k+1; C represents the dosage in parent 2, marker k;
and D represents the dosage in parent 2, marker k+1. For each
list, the frequencies were computed for all possible linkage
phase configurations. The frequencies for each linkage phase
configuration are distributed in matrices whose names
represents the number of homologous chromosomes that share
alleles. The rows on these matrices represents the dosages in markers k
and k+1 for an individual in the offspring. See Table 3 of
S3 Appendix in Mollinari and Garcia (2019) for an example.
Marcelo Mollinari, mmollin@ncsu.edu with updates by Gabriel Gesteira, gdesiqu@ncsu.edu
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_. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1534/g3.119.400378")}
all.mrk <- make_seq_mappoly(tetra.solcap, 1:20)
## local computation
counts <- cache_counts_twopt(all.mrk, ncpus = 1)
## load from internal file or web-stored counts (especially important for high ploidy levels)
counts.cached <- cache_counts_twopt(all.mrk, cached = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.