Skip to contents

Simulate Genotypes Based on UK Biobank

Usage

sim_geno_UKB(n, file_path, min_maf = 0.01, scale = FALSE)

Arguments

n

Sample size.

file_path

Path to the UK Biobank file.

min_maf

Minimum minor allele frequency.

scale

Logical, whether to scale the data.

Value

A matrix of genotypes.

Examples

sim_geno_UKB(n = 100, file_path = "path/to/UKB/file", min_maf = 0.01, scale = TRUE)
#> Error in sim_geno_UKB(n = 100, file_path = "path/to/UKB/file", min_maf = 0.01,     scale = TRUE): Please provide plink bfiles!