kinship.emp.fast {MoBPS}R Documentation

Approximate empirical kinship

Description

Function to compute empirical kinship for a set of individuals (not all pairs of individuals are evaluated)

Usage

kinship.emp.fast(
  animals = NULL,
  population = NULL,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  sym = FALSE,
  ibd.obs = 50,
  hbd.obs = 10
)

Arguments

animals

List of animals to compute kinship for

population

Population list

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

sym

If True derive matrix entries below principle-diagonal

ibd.obs

Number of Individual pairs to sample for IBD estimation

hbd.obs

Number of Individuals to sample for HBD estimation

Value

Empirical kinship matrix (IBD-based since Founders) per gen/database/cohort

Examples

data(ex_pop)
kinship.emp.fast(population=ex_pop,gen=2)

[Package MoBPS version 1.6.64 Index]