View source: R/create_dominant_trait.R
create_dominant_trait | R Documentation |
Create a trait in which the phenotype is dominant and the minor allele frequency is known. The phenotype is fully and perfectly determined by the genotype, see calc_dominant_phenotype_values for the exact phenotypic values
create_dominant_trait(
mafs = 0.25,
n_snps = 1,
phenotype_value_recessive = 10,
phenotype_value_dominant = 11
)
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 |
n_snps |
the number of SNPs, as can be checked by check_n_snps |
phenotype_value_recessive |
phenotypic value for the recessive variant, i.e. that genotype that is homozygous for the rare allele |
phenotype_value_dominant |
phenotypic value for the dominant variant, i.e. that genotype that has at least one version of the common common allele |
Richèl J.C. Bilderbeek
create_dominant_trait()
create_dominant_trait(maf = 0.01)
create_dominant_trait(n_snps = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.