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

convert2riself

Convert a cross to RIL by selfing


Description

Convert a cross to type "riself" (RIL by selfing).

Usage

convert2riself(cross)

Arguments

cross

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

Details

If there are more genotypes with code 3 (BB) than code 2 (AB), we omit the genotypes with code==2 and call those with code==3 the BB genotypes.

If, instead, there are more genotypes with code 2 than code 3, we omit the genotypes with code==3 and call those with code==2 the BB genotypes.

Any chromosomes with class "X" (X chromosome) are changed to class "A" (autosomal).

Value

The input cross object, with genotype codes possibly changed and cross type changed to "riself".

Author(s)

Karl W Broman, broman@wisc.edu

See Also

Examples

data(hyper)
hyper.as.riself <- convert2riself(hyper)

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.