Learn R Programming

netgwas (version 1.14.3)

simRIL: Generate genotype data of RIL

Description

Generating genotype data from a recombinant inbred line (RIL) population.

Usage

simRIL( d = 25, n = 200, g = 5, cM = 100, selfing=2 )

Value

data

The generated RIL genotype data as an n by (d x g) matrix.

map

The genetic map of the data.

Arguments

d

The number of markers per chromosome. The default value is 25.

n

The number of sample size (observations). The default value is 200.

g

The number of linkage groups (chromosomes). The default value is 5.

cM

The length of each chromosome based on centiMorgan.

selfing

The number of selfing in RIL population.

Author

Pariya Behrouzi
Maintainer: Pariya Behrouzi <pariya.behrouzi@gmail.com>

See Also

netmap, netsnp, and netgwas-package

Examples

Run this code
#genome-like graph structure
ril <- simRIL(g = 5, d = 25, cM = 100, n = 200, selfing = 2)
geno <- ril$data; image(geno, xlab= "individuals", ylab="markers")
map <- ril$map 

Run the code above in your browser using DataLab