Learn R Programming

ggroups (version 2.1.2)

qmatXL: 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.

Value

Q matrix

Details

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

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab