retrieveGenotypes: Retrieve a matrix of simulated genotypes for a specific set...

Description Usage Arguments Examples

View source: R/simulation.R

Description

Retrieve a matrix of simulated genotypes for a specific set of individual IDs

Usage

1

Arguments

ids

Vector of ids of individuals to retrieve.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

# For realistic data use the function downloadGeneticMap
generateUniformGeneticMap()

startSimulation(vcf, totalNumberOfIndividuals = 200)

ped1 = newNuclearFamily(1)

retrieveGenotypes(ped1$gtindex)

adimitromanolakis/sim1000G documentation built on Sept. 29, 2021, 3:44 a.m.