shared_genotypes_relatedness.RdFunction 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
)the first vcf
the second vcf
numeric- the number of shared genotypes between the experiments
the name of experiment 1
the name of experiment 2
a data frame of the shared genotype clusters between the two experiments, returning the relatedness score.
# \donttest{
#' shared_genotypes_relatedness()
# }