Identifies identical samples within SNP blocks.

check.identical.samples.by.block(genotypes, blcsize, threshold = 0)

Arguments

genotypes

Genotype matrix.

blcsize

Block size (number of SNPs).

threshold

Distance threshold. Default 0.

Value

List of identical sample pairs.

Examples

set.seed(1)
mat <- matrix(sample(1:3, 40, TRUE), nrow = 4)
rownames(mat) <- paste0("S", 1:4)
check.identical.samples.by.block(mat, blcsize = 5, threshold = 0)
#> Analyzing block 1-5
#> [1] Sample1  Sample2  Distance
#> <0 rows> (or 0-length row.names)