GenAnno: Generate Genotype Annotations

View source: R/generate_data.R

GenAnnoR Documentation

Generate Genotype Annotations

Description

Returns a vector of length = the number of columns (SNPs) in the genotype matrix. Each SNP is categorized into one of L categories, where L is determined by the length of prop_anno.

Usage

GenAnno(snps, prop_anno = c(0.5, 0.4, 0.1))

Arguments

snps

Number of SNPs in the gene.

prop_anno

Proportions of annotations in each category. Length should equal the number of annotation categories. Default of c(0.5, 0.4, 0.1) is based on the approximate empirical frequencies of BMVs, DMVs, and PTVs.

Value

(snps x 1) integer vector.


AllelicSeries documentation built on April 3, 2025, 7:46 p.m.