Learn R Programming

QTL.gCIMapping (version 3.0)

markerinsert: To insert marker in genotype.

Description

a method that can insert marker in genotype.

Usage

markerinsert(mp,geno,map,cl,gg1,gg2,gg0,flagRIL)

Arguments

mp

linkage map matrix after insert.

geno

genotype matrix.

map

linkage map matrix.

cl

walk speed.

gg1

raw covariate matrix.

gg2

code for type 1.

gg0

code for missing.

flagRIL

RIL population or not.

Examples

Run this code
# NOT RUN {
mp=matrix(c(197.9196,198.7536,199.5876,200.4216,201.2453,
202.0691,202.8928,203.7521,204.6113,205.4706,206.3298,207.1891,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,3,3,3,
1,1,1,2,2,2,3,3,3,3,3,3,1,2,3,4,5,6,7,8,9,10,11,12),12,5)
map=matrix(c(1,1,1,1,197.9196,200.4216,202.8928,207.1891),4,2)
geno=matrix(c(1,99,99,99),1,4)
QTL.gCIMapping::markerinsert(mp,geno,map,cl=1,gg1=1,gg2=-1,gg0=99,flagRIL=1)

# }

Run the code above in your browser using DataLab