compile_related_pairs {CKMRpop}R Documentation

compile pairwise relationships from the samples

Description

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

Usage

compile_related_pairs(S)

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

C <- compile_related_pairs(three_pops_with_mig_slurped_results$samples)

[Package CKMRpop version 0.1.3 Index]