pa_sim_helper: PA sim helper

Description Usage Arguments Value

Description

Helper function to simulate presence absence data. This takes in one loci. the data frame should have 2 rows (one for each allele.) Simulate the transmission of alleles using the presence absence model. Essentially this takes the frequency of the variant allele, and bottleneck size and simulates the found column.

Usage

1

Arguments

data

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

Nb

the bottleneck size

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.