shared_genotypes_relatedness: shared_genotypes_relatedness

View source: R/gt_mix_functions.R

shared_genotypes_relatednessR Documentation

shared_genotypes_relatedness

Description

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)

Usage

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


#' shared_genotypes_relatedness()


bjstewart1/GenotypeMixtures documentation built on Aug. 27, 2022, 2:01 p.m.