Description Usage Arguments Value Examples
Computes pairwise IBD1/2 for a specific pair of individuals
1 | computePairIBD12(i, j)
|
i |
Index of first individual |
j |
Index of second individual |
Mean IBD1 and IBD2 as computed from shared haplotypes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library("sim1000G")
examples_dir = system.file("examples", package = "sim1000G")
vcf_file = file.path(examples_dir, "region.vcf.gz")
vcf = readVCF( vcf_file, maxNumberOfVariants = 100 ,
min_maf = 0.12 ,max_maf = NA)
generateUniformGeneticMap()
startSimulation(vcf, totalNumberOfIndividuals = 200)
ped1 = newNuclearFamily(1)
v = computePairIBD12(1, 3)
cat("IBD1 of pair = ", v[1], "\n");
cat("IBD2 of pair = ", v[2], "\n");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.