Learn R Programming

AllelicSeries (version 0.0.4.1)

GenAnno: Generate Genotype Annotations

Description

Returns a vector of length = the number of columns (SNPs) in the genotype matrix. Each SNP is classified as a benign missense variant (0), a deleterious missense variant (1), or a protein truncating variant (2).

Usage

GenAnno(snps, p_dmv = 0.33, p_ptv = 0.33)

Value

(snps x 1) integer vector.

Arguments

snps

Number of SNPs in the gene.

p_dmv

Frequency of deleterious missense variants.

p_ptv

Frequency of protein truncating variants.