Learn R Programming

qtl (version 1.66)

pull.draws: Pull out the genotype imputations from a cross

Description

Pull out the results of sim.geno from a cross as an array.

Usage

pull.draws(cross, chr)

Value

An array containing numeric indicators of the imputed genotypes. Multiple chromosomes are pasted together. The dimensions are individuals by positions by imputations

Arguments

cross

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

chr

Optional vector indicating the chromosomes to consider. This should be a vector of character strings referring to chromosomes by name; numeric values are converted to strings. Refer to chromosomes with a preceding - to have all chromosomes but those considered. A logical (TRUE/FALSE) vector may also be used.

Author

Karl W Broman, broman@wisc.edu

See Also

pull.geno, pull.genoprob, pull.argmaxgeno, sim.geno

Examples

Run this code
data(listeria)
listeria <- sim.geno(listeria, step=5, stepwidth="max", n.draws=8)
dr <- pull.draws(listeria, chr=c(5,13))
dr[1:20,1:10,1]

Run the code above in your browser using DataLab