check_calc_phenotype_function: Check if the 'calc_phenotype_function' is valid. Check if the...

View source: R/check_calc_phenotype_function.R

check_calc_phenotype_functionR Documentation

Check if the calc_phenotype_function is valid. Check if the calc_phenotype_function is valid.

Description

Will stop if not

Usage

check_calc_phenotype_function(calc_phenotype_function)

Arguments

calc_phenotype_function

a function that calculate the phenotypes from genotypes. The input is the genetic data as a tibble, in which each row is an individual and the columns are the SNVs. The first two columns are named snv_1a, snv_1b and hold the genetic data for the first SNV of a diploid organism. If there are more SNVs, columns continue with names, snv_2a, snv_2b, snv_3a, snv_3b, etc. Nucleotides are in uppercase. The output must be the phenotypic values, as a numeric vector, which has the same length as the number of individuals. Use check_calc_phenotype_function to check a calc_phenotype_function.

Value

Nothing. Will stop if the input calc_phenotype_function is invalid

Author(s)

Richèl J.C. Bilderbeek


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