Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

geno.crosstab

Create table of two-locus genotypes


Description

Create a cross tabulation of the genotypes at a pair of markers.

Usage

geno.crosstab(cross, mname1, mname2, eliminate.zeros=TRUE)

Arguments

cross

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

mname1

The name of the first marker (as a character string). (Alternatively, a vector with the two character strings, in which case mname2 should not be given.)

mname2

The name of the second marker (as a character string).

eliminate.zeros

If TRUE, don't show the rows and columns that have no data.

Value

A matrix containing the number of individuals having each possible pair of genotypes. Genotypes for the first marker are in the rows; genotypes for the second marker are in the columns.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

Examples

data(hyper)
geno.crosstab(hyper, "D1Mit123", "D1Mit156")
geno.crosstab(hyper, "DXMit22", "DXMit16")
geno.crosstab(hyper, c("DXMit22", "DXMit16"))

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.