Calculates the percentage of SNP matches. The number of complete and matching SNP loci is the numerator and the number of SNPs non-missing for both samples is the denominator

1 | ```
calculateDistance(snp_matrix)
``` |

`snp_matrix` |
Matrix containing SNP calls Matrix containing genetic distance between all samples |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.