# load SNP genotypes in 0 (homozygous), 1 (heterozygous), NA (missing) format.
# low number of bootstraps and permutations for computational reasons.
data(mouse_snps)
(g2_mouse <- g2_snps(mouse_snps, nperm = 10, nboot = 10, CI = 0.95))
# parallelized version for more bootstraps or permutations
(g2_mouse <- g2_snps(mouse_snps, nperm = 1000, nboot = 1000,
CI = 0.95, parallel = TRUE, ncores = 4))
Run the code above in your browser using DataCamp Workspace