Fij_core_i_cpp {purgeR}R 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.


[Package purgeR version 1.8.2 Index]