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

View source: R/create_rnorm_trait.R

create_rnorm_traitR Documentation

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

Description

Create a trait with no relation between genotype and phenotype and a known minor allele frequency. The phenotypes are random and uniform, as produced by rnorm.

Usage

create_rnorm_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_rnorm_trait()
create_rnorm_trait(maf = 0.01)

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