compile_related_pairs: compile pairwise relationships from the samples

Description Usage Arguments Value Examples

View source: R/compile_related_pairs.R

Description

Run this on some of the output from slurp_spip().

Usage

1

Arguments

S

a tibble. In the context of this package this tibble is typically going to often be the samples component of the output slurped up from spip with slurp_spip(). More generally, it is a tibble that must have the columns:

  • ID: the id of the sample

  • ancestors: a list column of the ancestor vectors of each individual

  • relatives: a list column of the vectors of individual samples (including self) that each individual is related to.

Value

a tibble with columns id_1 and id_2 for each pair. Any additional columns outside of relatives will be joined with _1 and _2 suffixes. In a typical run slurped up from spip this leads to the following columns:

Examples

1

CKMRpop documentation built on July 17, 2021, 5:07 p.m.