Description Usage Arguments Value
haplotypeToGenotype
transforms PLINK haplotype data into genotype data of the form -1, 0, 1 and 2 representing missing genotypes,
homozygous reference, heterozygous and homozygous alternative respectively. Haploid isolates are coded as diploid although will not have
heterozygous genotypes.
1 | haplotypeToGenotype(haplotypes, moi)
|
haplotypes |
An integer matrix of haplotype data in PLINK format. A allele is denoted 1, B allele is denoted 2 and missing data is denoted 0 |
moi |
An integer vector of multiplicity of infection (MOI) estimates for each isoalte. Isolate MOI estimates should be ordered such that value |
A matrix with genotype calls where columns correspond to isolates and rows correspond to SNPs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.