Function that compares genotype calls across two experiments and calculates a "relatedness" score as a reimplementation of the Somalier approach Pedersen et al. 2020 (10.1186/s13073-020-00761-2)

shared_genotypes_relatedness(
  vcf1,
  vcf2,
  shared,
  experiment_1_name,
  experiment_2_name
)

Arguments

vcf1

the first vcf

vcf2

the second vcf

shared

numeric- the number of shared genotypes between the experiments

experiment_1_name

the name of experiment 1

experiment_2_name

the name of experiment 2

Value

a data frame of the shared genotype clusters between the two experiments, returning the relatedness score.

Examples

# \donttest{
#' shared_genotypes_relatedness()
# }