calc_runif_phenotype_values: Calculate the phenotypic values for a trait that is random...

View source: R/calc_runif_phenotype_values.R

calc_runif_phenotype_valuesR Documentation

Calculate the phenotypic values for a trait that is random and uniform.

Description

Calculate the phenotypic values for a trait that is random and uniform, as produced by runif.

Usage

calc_runif_phenotype_values(snvs)

Arguments

snvs

a tibble that contains the two nucleotide calls for multiple individuals. Each column is a haplotype, hence, for a diploid organism, there are two columns. Each individual is represented by a row. Nucleotides are in uppercase. Per SNV table, there can be only two different nucleotides, as this is how a SNP works; a SNP from A to C is a different one (and has a different SNP ID) than a SNP that encodes a mutation for A to G. Use create_snvs to create a snvs.

Author(s)

Richèl J.C. Bilderbeek

Examples

t <- tibble::tibble(
  snv_1a = c("A", "A", "C", "C"),
  snv_1b = c("A", "C", "A", "C")
)
calc_runif_phenotype_values(t)

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