sample1: The name of the first sample in the pair.
sample2: The name of the second sample in the pair.
%_matching_genotypes: The percentage of compatible genotypes between the two samples.
%_missing_genotypes: The percentage of missing genotypes in the comparison.
Arguments
path.vcf
A string specifying the path to the VCF file containing genotype data.
select_samples
An optional character vector of sample names to be selected for comparison. If NULL (default), all samples in the VCF file are used.
verbose
A logical value indicating whether to print the number of combinations tested. Default is TRUE.
Details
The function removes reciprocal comparisons (e.g., A vs. B and B vs. A) and self-comparisons (e.g., A vs. A) to avoid redundancy. Compatibility is calculated as the percentage of matching genotypes between two samples, excluding missing values. The percentage of missing genotypes is also reported for each pair.