Learn R Programming

rMVP (version 0.99.14.1)

MVP.K.VanRaden: Calculate Kinship matrix by VanRaden method

Description

Build date: Dec 12, 2016 Last update: Dec 12, 2016

Usage

MVP.K.VanRaden(M, weight = NULL, priority = c("speed", "memory"),
  memo = NULL, SUM = NULL, maxLine = 1000)

Arguments

M

Genotype, m * n, m is marker size, n is population size

weight

vector, the weights for makers

priority

speed or memory

memo

add a character to the name of temporary files

SUM

the scaled value to kinship matrix

maxLine

when the priority is 'memory', users can change this parameter to limit the memory

Value

K, n * n matrix

Examples

Run this code
# NOT RUN {
genoPath <- system.file("extdata", "06_mvp-impute", "mvp.imp.geno.desc", package = "rMVP")
genotype <- attach.big.matrix(genoPath)
print(dim(genotype))
K <- MVP.K.VanRaden(genotype)
# }

Run the code above in your browser using DataLab