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.

Author

Roberto Higa, adapted by Vinicius Junqueira

Examples

mat <- matrix(sample(0:2, 20, TRUE), nrow = 5)
rownames(mat) <- paste0("S", 1:5)
check.identical.samples(mat, 0.5)
#> [1] Sample1  Sample2  Distance
#> <0 rows> (or 0-length row.names)