betabin_sim_helper: beta bin sim helper

Description Usage Arguments Value

Description

Helper function to simulate beta binomial data. This takes in one loci. the data frame should have 2 rows (one for each allele.) Essentially this takes the frequency of the variant allele, and bottleneck size and simulates the found column.

Usage

1
betabin_sim_helper(data, Nb, threshold, acc)

Arguments

data

a data frame with with freq1 and pair_id columns and 2 rows

Nb

the bottleneck size

threshold

limit of variant calling detection

acc

a data frame with accuracy metrics

Value

data frame the same as data but with a simulated found column


jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.