Learn R Programming

AllelicSeries (version 0.1.1.5)

GenAnno: 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))

Value

(snps x 1) integer vector.

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.