View source: R/predict_snpgeno.R
predict_snpgeno | R Documentation |
Predict SNP genotypes in a multiparent population from inferred genotypes plus founder strains' SNP alleles.
predict_snpgeno(cross, geno, cores = 1)
cross |
Object of class |
geno |
Imputed genotypes, as a list of matrices, as from |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
A list of matrices with inferred SNP genotypes, coded 1/2/3.
maxmarg()
, viterbi()
, calc_errorlod()
## Not run:
# load example data and calculate genotype probabilities
file <- paste0("https://raw.githubusercontent.com/rqtl/",
"qtl2data/main/DOex/DOex.zip")
DOex <- read_cross2(file)
probs <- calc_genoprob(DOex, error_prob=0.002)
# inferred genotypes
m <- maxmarg(probs, minprob=0.5)
# inferred SNP genotypes
inferg <- predict_snpgeno(DOex, m)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.