genoprob_to_alleleprob: Convert genotype probabilities to allele probabilities

Description Usage Arguments Value Examples

Description

Reduce genotype probabilities (as calculated by calc_genoprob()) to allele probabilities.

Usage

1
genoprob_to_alleleprob(probs, quiet = TRUE, cores = 1)

Arguments

probs

Genotype probabilities, as calculated from calc_genoprob().

quiet

IF FALSE, print progress messages.

cores

Number of CPU cores to use, for parallel calculations. (If 0, use parallel::detectCores().) Alternatively, this can be links to a set of cluster sockets, as produced by parallel::makeCluster().

Value

The probs input with probabilities collapsed to alleles rather than genotypes.

Examples

1
2
3
4
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2geno"))
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)

rqtl/qtl2geno documentation built on May 28, 2019, 2:36 a.m.