View source: R/cluster.strains.R
cluster.strains | R Documentation |
Given a set of numeric SNPs, cluster the strains based on allele sharing. This function hierarchically clusters the strains based on the proportion of SNPs that share alleles between each strain. Note: numeric snps, not character snps, are the input to this function.
cluster.strains(variants)
variants |
data.frame, numeric variants as returned by |
data.frame: of numeric variants with the strains clustered.
Daniel Gatti
convert.variants.to.numeric
, variant.plot
data(example.snps)
variants = convert.variants.to.numeric(variants = example.snps[1:100,])
variants = cluster.strains(variants)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.