View source: R/genoprob_to_alleleprob.R
genoprob_to_alleleprob | R Documentation |
Reduce genotype probabilities (as calculated by
calc_genoprob()
) to allele probabilities.
genoprob_to_alleleprob(probs, quiet = TRUE, cores = 1)
probs |
Genotype probabilities, as calculated from
|
quiet |
IF |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
An object of class "calc_genoprob"
, like the input probs
,
but with probabilities collapsed to alleles rather than genotypes. See calc_genoprob()
.
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
gmap_w_pmar <- insert_pseudomarkers(iron, step=1)
probs <- calc_genoprob(iron, gmap_w_pmar, error_prob=0.002)
allele_probs <- genoprob_to_alleleprob(probs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.