probs_qtl_to_qtl2: Convert R/qtl genotype probabilities to R/qtl2 format

View source: R/probs_qtl_to_qtl2.R

probs_qtl_to_qtl2R Documentation

Convert R/qtl genotype probabilities to R/qtl2 format

Description

Convert R/qtl genotype probabilities to R/qtl2 format

Usage

probs_qtl_to_qtl2(cross)

Arguments

cross

An R/qtl "cross" object (see qtl::read.cross() for details.) Must contain genotype probabilities as calculated by qtl::calc.genoprob().

Value

A list with two components:

  • "probs" - the genotype probabilities in the form produced by qtl2::calc_genoprob()

  • "map" - Map of marker/pseudomarker positions (a list of vectors of positions)

Examples

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


qtl2convert documentation built on July 11, 2022, 5:08 p.m.