Identifies sample pairs considered identical based on genotype distances.
check.identical.samples(genotypes, threshold = 0)
Arguments
- genotypes
Genotype matrix (samples x SNPs) or SnpMatrix.
- threshold
Numeric distance threshold. Default 0.
Value
Data frame of identical sample pairs.
Examples
mat <- matrix(sample(0:2, 20, TRUE), nrow = 5)
rownames(mat) <- paste0("S", 1:5)
check.identical.samples(mat, 0.5)
#> Warning: Identical samples: S1 - S4
#> Sample1 Sample2 Distance
#> 1 S1 S4 0