pull.geno {qtl}R Documentation

Pull out the genotype data from a cross

Description

Pull out the genotype data from a cross object, as a single big matrix.

Usage

pull.geno(cross, chr)

Arguments

cross An object of class cross. See read.cross for details.
chr An optional vector specifying which chromosomes to keep or discard. This may be a logical vector, a numeric vector, or a vector of character strings.

Value

A matrix of size n.ind x tot.mar. The raw genotype data in the input cross object, with the chromosomes pasted together.

Author(s)

Karl W Broman, kbroman@biostat.wisc.edu

See Also

pull.map

Examples

data(listeria)
dat <- pull.geno(listeria)

# image of the genotype data
image(1:ncol(dat),1:nrow(dat),t(dat),ylab="Individuals",xlab="Markers",
      col=c("red","yellow","blue","green","violet"))
abline(v=cumsum(c(0,nmar(listeria)))+0.5)
abline(h=nrow(dat)+0.5)

[Package qtl version 1.06-43 Index]