calculatePopAlleleFreq: Calculate Allele Frequencies for SNPs from Genotype Data

Description Usage Arguments

Description

calculatePopAlleleFreq calculates reference allele frequencies for each SNP given genotype data.

Usage

1
calculatePopAlleleFreq(genotypes, moi)

Arguments

genotypes

An integer matrix of genotype data of the form -1, 0, 1 and 2 representing missing genotypes, homozygous reference, heterozygous and homozygous alternative respectively. Each column of genotypes represents a unique isolate and each row of genotypes represents a unique SNP.

moi

An integer vector of multiplicity of infection (MOI) estimates for each isoalte. Isolate MOI estimates should be ordered such that value n of moi corresponds to column n of genotypes.


bahlolab/isoRelate documentation built on May 11, 2019, 5:25 p.m.