Fij_core_i_cpp: Partial inbreeding coefficient (core function)

View source: R/RcppExports.R

Fij_core_i_cppR Documentation

Partial inbreeding coefficient (core function)

Description

Computes partial inbreeding coefficients, Fi(j). A coefficient Fi(j) can be read as the probability of individual i being homozygous for alleles derived from ancestor j

Usage

Fij_core_i_cpp(dam, sire, anc_idx, mapa, Fi, genedrop = 0L, seed = NULL)

Arguments

dam

Vector of dam ids.

sire

Vector of sire ids.

anc_idx

Index of ancestors.

mapa

Map of ancestors

Fi

Vector of inbreeding coefficients.

genedrop

Enable genedrop simulation

seed

Sets a seed for the random number generator.

Value

A matrix of partial inbreeding coefficients. Fi(j) values can thus be read from row i and column j.


purgeR documentation built on Aug. 16, 2023, 9:07 a.m.