Learn R Programming

qtl2convert (version 0.30)

scan_qtl_to_qtl2: Convert R/qtl scanone results to R/qtl2 scan1 format

Description

Convert the results of R/qtl1 qtl::scanone() to the form used by the R/qtl2 qtl2::scan1().

Usage

scan_qtl_to_qtl2(scanone_output)

Value

List with two objects: the LOD scores in qtl2::scan1()

format, and the map (as a list of marker/pseudomarker positions).

Arguments

scanone_output

Data frame as output by the R/qtl1 function qtl::scanone().

See Also

scan_qtl_to_qtl2()

Examples

Run this code
library(qtl)
data(hyper)
hyper <- calc.genoprob(hyper, step=1, error.prob=0.002)
out <- scanone(hyper)
out2 <- scan_qtl_to_qtl2(out)

Run the code above in your browser using DataLab