qmatXL: Matrix *Q* for large pedigrees (parallel processing)

View source: R/qmatXL.R

qmatXLR Documentation

Matrix Q for large pedigrees (parallel processing)

Description

Creates the genetic group contribution matrix for large pedigrees, with parallel processing.

Usage

qmatXL(ped2, ncl)

Arguments

ped2

: The output data.frame from gghead (for more details: ?gghead)

ncl

: User defined number of nodes; if the number of user defined nodes is greater than the number of genetic groups, the number genetic groups is considered as the number of nodes.

Details

This function is the parallel version of qmatL. It requires foreach and doParallel packages.

Value

Q matrix

Examples

ped = data.frame(ID=c(3,4,6,5), SIRE=c(1,3,4,1), DAM=c(2,2,5,2))
ped2 = gghead(ped)
qmatXL(ped2, 2)


ggroups documentation built on March 28, 2022, 1:06 a.m.