Skip to contents

Simulate sample genotype

Usage

simulate_sample_genotype(sample_cois, locus_allele_dist, internal_relatedness)

Arguments

sample_cois

Numeric vector indicating the multiplicity of infection for each biological sample

locus_allele_dist

Allele frequencies – simplex parameter of a multinomial distribution

internal_relatedness

numeric 0-1 indicating the probability for a strain's allele to come from an existing lineage within host

Details

Simulates sampling the genetics at a single locus given an allele frequency distribution and a vector of sample COIs