Learn R Programming

qtl (version 1.66)

convert2riself: Convert a cross to RIL by selfing

Description

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

Usage

convert2riself(cross)

Value

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

Arguments

cross

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

Author

Karl W Broman, broman@wisc.edu

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).

See Also

convert2risib

Examples

Run this code
data(hyper)
hyper.as.riself <- convert2riself(hyper)

Run the code above in your browser using DataLab