View source: R/hwe_exact_test.R
This just wraps SNPRelate's function and makes it easy to compute Fst for all pairwise combinations. Returns a tidy data frame.
1 | hwe_exact_test(dat012, sample_groups)
|
dat012 |
An 012 matrix. Missing data should be -1. |
sample_groups |
this should be a tibble with a column "sample" and another column "group". The Fst calculations are done pairwise between the groups. You probably don't want individuals in sample_groups that are not in the rownames of dat012. If group is NA for any individuals, they get silently tossed out. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.