convertSim: Convert simulated data into form for R/qtl

View source: R/util.R

convertSimR Documentation

Convert simulated data into form for R/qtl

Description

Convert data simulated with simbc() into the form used by R/qtl.

Usage

convertSim(object, n.chr=9, chr.len=100)

Arguments

object

A list with two components: the genotype data as a matrix, and the phenotype data as a vector.

n.chr

Number of chromosomes in the data.

chr.len

Length of the chromosomes, in cM.

Value

An object of class cross. See read.cross for details.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

read.cross, simbc

Examples

dat <- simbc()
cross <- convertSim(dat, 9, chr.len=100)

kbroman/qtlsim documentation built on May 17, 2023, 11:53 p.m.