powered by
Convert R/qtl genotype probabilities to R/qtl2 format
probs_qtl_to_qtl2(cross)
A list with two components:
"probs" - the genotype probabilities in the form produced by qtl2::calc_genoprob()
"probs"
qtl2::calc_genoprob()
"map" - Map of marker/pseudomarker positions (a list of vectors of positions)
"map"
An R/qtl "cross" object (see qtl::read.cross() for details.) Must contain genotype probabilities as calculated by qtl::calc.genoprob().
"cross"
qtl::read.cross()
qtl::calc.genoprob()
library(qtl) data(hyper) hyper <- calc.genoprob(hyper, step=1, error.prob=0.002) result <- probs_qtl_to_qtl2(hyper) pr <- result$probs map <- result$map
Run the code above in your browser using DataLab