generateUnrelatedIndividuals {sim1000G}R Documentation

Generates variant data for n unrelated individuals

Description

Generates variant data for n unrelated individuals

Usage

generateUnrelatedIndividuals(N = 1)

Arguments

N

how many individuals to generate

Value

IDs of the generated individuals

Examples


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)

genetic_map_of_region =
   system.file("examples",
     "chr4-geneticmap.txt",
     package = "sim1000G")

readGeneticMapFromFile(genetic_map_of_region)

startSimulation(vcf, totalNumberOfIndividuals = 1200)
ids = generateUnrelatedIndividuals(20)

# See also the documentation on our github page


[Package sim1000G version 1.40 Index]