Description Usage Arguments Examples
Calculates the expected pairwise genetic distance (number of SNPs) between two randomly sampled genomes in a population.
1 | meansnps(strain.log, freq.log, libr, nuc, key)
|
strain.log |
Vector of unique genotype IDs in population |
freq.log |
Vector of counts of genotypes in population, corresponding to |
libr |
Library object from simulation functions. A list in which each entry represents a unique genotype, and is a vector of mutated nucleotide positions relative to the reference seqeunce. |
nuc |
Nucleotide database from simulation functions. A list (corresponding to |
key |
Vector of genotype IDs corresponding to the |
1 2 3 | data(withinhost)
meansnps(withinhost$obs.strain, rep(1, 10), withinhost$libr, withinhost$nuc,
withinhost$librstrains)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.