kinship.emp.fast: Approximate empirical kinship

Description Usage Arguments Value Examples

View source: R/kinship.emp.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

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

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.