Learn R Programming

MoBPS (version 1.13.1)

kinship.emp.fast.between: 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.between(
  population = NULL,
  gen1 = NULL,
  database1 = NULL,
  cohorts1 = NULL,
  gen2 = NULL,
  database2 = NULL,
  cohorts2 = NULL,
  ibd.obs = 50
)

Value

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

Arguments

population

Population list

gen1

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

database1

First Groups of individuals to consider for the export

cohorts1

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

gen2

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

database2

Second Groups of individuals to consider for the export

cohorts2

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

ibd.obs

Number of Individual pairs to sample for IBD estimation

Examples

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

Run the code above in your browser using DataLab