Learn R Programming

linkim (version 0.1)

link.im: Linkage information based genotype imputation method

Description

A linkage information based method for imputing missing diploid genotypes

Usage

link.im(data, r, char = NULL, oneside = NULL, twoside = NULL, trace = NULL,...)

Arguments

data
A data frame of genotypes. The type of genotype for each marker should be consistent.
r
Vector of recombination fraction or genetic distance.
char
Types of genotypes in the input data.
oneside
One flanking marker? Default TRUE.
twoside
Two flanking markers? Default TRUE.
trace
Show computation trace? Default FALSE.
...
Other arguments for future methods

Value

It returns a matrix of inputed genotype data frame.

References

Yi Xu, Yajun Wu, Michael G. Gonda and Jixiang Wu. A Linkage Based Imputation Method for Missing SNP Markers in Association Mapping (To be submitted)

Examples

Run this code
data(barley)
dat <- barley[,-1]
r <- as.numeric(dat[1,])
data <- dat[-1,]
new.data <- link.im(data,r)

Run the code above in your browser using DataLab