#Example with a diploid vcf
# Example vcf
vcf_file <- system.file("diploid_example.vcf.gz", package = "castgen")
#Estimate the number of samples required to capture 95% of the population's genomic diversity
result <- capture_diversity.VCF(vcf_file,
ploidy = 2,
r2_threshold = 0.95,
iterations = 10,
save.result = FALSE,
parallel=FALSE,
verbose=FALSE)
#View results
print(result)
Run the code above in your browser using DataLab