get_vaf: Calculate VAF

Description Usage Arguments Value Examples

View source: R/get_vaf.r

Description

Calculate VAF

Usage

1
get_vaf(ref, alt)

Arguments

ref

A numeric vector with number of reference reads for a set of loci

alt

A numeric vector with numer of variant reads for a set of loci

Value

The Variant Allele Frequency of a locus given reference and altered (variant) reads for a given locus

Examples

1
2
3
alt <- sample(10:1000, 5)
ref <- sample(10:1000, 5)
vaf <- get_vaf(ref, alt)

paularstrpo/GeTalleleR documentation built on Aug. 8, 2020, 12:51 p.m.