create_random_trait: Create a trait with no relation between genotype and...

View source: R/create_random_trait.R

create_random_traitR Documentation

Create a trait with no relation between genotype and phenotype and a known minor allele frequency.

Description

Create a trait with no relation between genotype and phenotype and a known minor allele frequency.

Usage

create_random_trait(mafs = 0.25, n_snps = 1)

Arguments

mafs

one or more minor allele frequencies. These allele frequencies must be ordered decreasingly, i.e. the MAF is at the first position, where the even rarer alleles are at the second and third positions.

Note that PLINK cannot handle triallelic nor quadallelic SNPs: PLINK will give a warning that it is setting the rarest alleles to missing.

n_snps

the number of SNPs, as can be checked by check_n_snps

Author(s)

Richèl J.C. Bilderbeek

Examples

create_random_trait()
create_random_trait(maf = 0.01)

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.