create_snvs: Create a table with single nucleotide variants (SNVs)

View source: R/create_snvs.R

create_snvsR Documentation

Create a table with single nucleotide variants (SNVs)

Description

Create a table with single nucleotide variants (SNVs), in the form of a tibble that contains the two nucleotide calls for multiple individuals. Each individual is represented by a row. 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. In general, nucleotides are in uppercase.

Usage

create_snvs(n_snps = 1, n_individuals = 1)

Arguments

n_snps

the number of SNPs, as can be checked by check_n_snps

n_individuals

the number of individuals. Use check_n_individuals to check if this is a valid value

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.