Description Usage Arguments Value Examples
Generates genotype data for a family of 3 generations
1 | newFamily3generations(familyid, noffspring2 = 2, noffspring3 = c(1, 1))
|
familyid |
What will be the family_id (for example: 100) |
noffspring2 |
Number of offspring in generation 2 |
noffspring3 |
Number of offspring in generation 3 (vector of length noffspring2) |
family structure object
1 2 3 4 5 6 7 8 9 10 11 12 | 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)
ped_line = newFamily3generations(12, 3, c(3,3,2) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.